Skip to content

Refresh ChatGPT auth before expiry#202

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

Refresh ChatGPT auth before expiry#202
cbusillo merged 1 commit into
mainfrom
fix/upstream-chatgpt-auth-refresh

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • refresh ChatGPT access tokens inside a small pre-expiry window instead of waiting until they are already expired
  • use the OpenAI auth backend's accepted codex_cli_simplified_flow parameter for login
  • add focused regressions for both behaviors

Upstream

  • imports/adapts 15d85ea3ca from just-every/code
  • imports the login auth parameter part of 76937a5ba3 from just-every/code

Validation

  • cargo test -p code-core proactive_refresh_only_triggers_for_stale_chatgpt_auth
  • cargo test -p code-login authorize_url_uses_codex_simplified_flow_parameter
  • ./build-fast.sh

@cbusillo cbusillo merged commit a5d327f into main May 29, 2026
1 check passed
@cbusillo cbusillo deleted the fix/upstream-chatgpt-auth-refresh branch May 29, 2026 13:51
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