Files
CLIProxyAPI/internal/auth
Luis Pater 38fe929502 fix(auth): defer OAuth token refresh during Windows Modern Standby wakes
- Add a shared Windows power readiness tracker using powrprof.dll suspend/resume, console display state, and AoAc capability checks to defer refreshes during Modern Standby maintenance wakes and apply a 15-second post-resume settle delay.
- Wire Windows refresh readiness into Claude and Codex/SIWC OAuth renewal paths so single-use refresh tokens defer cleanly with ErrRefreshDeferred without HTTP retries.
- Add cross-platform power state machine tests and Windows callback/deferral regression tests covering S0 and non-S0 wake sequences.

Closes: #8120
2026-11-25 21:47:50 +08:00
..
…