Skip to content

fix(core): cool down proactive auth refresh fallback#223

Merged
cbusillo merged 1 commit into
mainfrom
fix/auth-refresh-cooldown
May 29, 2026
Merged

fix(core): cool down proactive auth refresh fallback#223
cbusillo merged 1 commit into
mainfrom
fix/auth-refresh-cooldown

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • record a refresh-fallback timestamp when proactive ChatGPT refresh fails but the cached JWT is still valid
  • make JWT-backed proactive refresh respect a short retry cooldown while still forcing refresh for expired JWTs
  • route stored-account refresh checks through the same JWT cooldown logic while preserving legacy refresh behavior for tokens without parseable expirations

Validation

  • cargo test -p code-core auth::tests::
  • ./build-fast.sh

@cbusillo cbusillo force-pushed the fix/auth-refresh-cooldown branch from d4b9afa to 599483f Compare May 29, 2026 23:40
@cbusillo cbusillo merged commit f8a4b77 into main May 29, 2026
1 check passed
@cbusillo cbusillo deleted the fix/auth-refresh-cooldown branch May 29, 2026 23:42
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