You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixes
Prevent duplicate MFA notifications: Added atomic cross-process lock so only one auto-login runs system-wide, regardless of how many CC sessions are open
Cross-platform sleep: Replaced execSync("sleep 3") with Atomics.wait (works on all platforms without shell dependency)
STS fallback in wait loop: Sessions waiting for another's auto-login now also check via STS when expirationField metadata is unavailable
Lock directory creation: Ensure ~/.config/cc-aws-keepalive/ exists before attempting lock acquisition
Tests
46 unit tests (11 new), 98.76% statement coverage via c8
Tests cover lock acquisition, stale lock cleanup, lock contention, release, and sleepSync timing
Added loadConfig validation branch coverage (unknown keys, type coercion, warnings)