Skip to content

fix(exec): cancel usage lock waits after auto-pick timeout - #38

Merged
jiunbae merged 1 commit into
mainfrom
fix/cancel-auto-pick-usage
Nov 23, 2026
Merged

jiunbae merged 1 commit into
mainfrom
fix/cancel-auto-pick-usage

Conversation

@jiunbae

@jiunbae jiunbae commented Nov 23, 2026

Copy link
Copy Markdown
Member

Changes

  • Let async callers cancel the waits for usage and credential lifecycle locks while preserving cross-process locking.
  • Tie usage fetch tasks to the snapshot that owns them so a timed-out auto-pick cancels background fetches. Keep a started credential rotation under its lifecycle lock.
  • Add a CLI regression test that keeps usage locks held and checks that fallback launches the active account and AAS exits.

Verification

  • 268 local Rust 1.100 tests passed with the legacy-state fixture omitted locally. CI runs the complete suite.
  • Clippy, formatting, and dependency policy passed.
  • In a release build with usage locks held for six seconds, the agent still started at 4.01 s and AAS exited by 4.03 s while the locks remained held. Before the change, AAS exited only at lock release.

@jiunbae
jiunbae merged commit c3b5033 into main Nov 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant