Skip to content

Fix auth fallback and shutdown completions#207

Merged
cbusillo merged 1 commit into
mainfrom
fix/session-shutdown-auth-fallback
May 29, 2026
Merged

Fix auth fallback and shutdown completions#207
cbusillo merged 1 commit into
mainfrom
fix/session-shutdown-auth-fallback

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • fall back to cached ChatGPT access tokens when proactive refresh fails but the token is still unexpired
  • keep expired tokens failing when refresh cannot complete
  • mark replaced/shutting-down sessions inactive so late background completions cannot enqueue hidden follow-up turns

Validation

  • cargo test -p code-core proactive_refresh --lib
  • cargo test -p code-core auth_for_stored_account --lib
  • cargo test -p code-core agent_completion_wake --lib
  • ./build-fast.sh

@cbusillo cbusillo merged commit 33a63c6 into main May 29, 2026
1 check passed
@cbusillo cbusillo deleted the fix/session-shutdown-auth-fallback branch May 29, 2026 16:55
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