Skip to content

fix(summarize): reauthenticate oauth tokens in summarize path - #2807

Merged
andreynering merged 3 commits into
mainfrom
reauth-on-summarize
May 6, 2026
Merged

fix(summarize): reauthenticate oauth tokens in summarize path#2807
andreynering merged 3 commits into
mainfrom
reauth-on-summarize

Conversation

@taciturnaxolotl

Copy link
Copy Markdown
Member

when using hyper or one of the other oauth clients if the user triggers a summarize after being away for a while the token may have expired which before this pr just resulted in an error like below and left the summarization block in a bad state where it stayed spinning. Now it auto refreshes and if something did go wrong it sends the error state to the summarize block.

image

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request May 6, 2026
gemini-cli/qwen-code/crush/goose coverage:
- google-gemini/gemini-cli#26551 externalize https-proxy-agent (man)
- QwenLM/qwen-code#3865 persist channel sessions across restarts (man)
- charmbracelet/crush#2807 oauth refresh in summarize path (man)
- aaif-goose/goose#9047 settings moved into app shell with URL state (man)
…ation

Extract `refreshTokenIfExpired` and `retryAfterUnauthorized` functions
to eliminate duplicated OAuth/API key refresh logic in both `Run` and
`Summarize`.

💘 Generated with Crush

Assisted-by: Kimi K2.6 via Crush <crush@charm.land>
@andreynering
andreynering force-pushed the reauth-on-summarize branch from 2456e7c to 57b8309 Compare May 6, 2026 20:34
@andreynering
andreynering enabled auto-merge (rebase) May 6, 2026 20:37
@andreynering
andreynering merged commit 8cd4786 into main May 6, 2026
15 checks passed
@andreynering
andreynering deleted the reauth-on-summarize branch May 6, 2026 20:38
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.

2 participants