Repository navigation
Claude: retry transient failures in place, and confirm before a cold resume - #2023
Merged
currentbits merged 3 commits intoNov 13, 2026
Merged
Conversation
When a Claude turn fails with a transient upstream error (529 overloaded,
API 5xx, a Cloudflare 403/5xx HTML page), Solenta now resends the same
turn on the same live Claude session up to three times, waiting 5s, 15s
and 45s. A single status line ("Claude is overloaded, retrying in 15s…")
shows while it waits, and the CLI's raw "API Error" bubble no longer
lands in the transcript. Stop cancels a pending retry. If every retry
fails, the turn fails with a plain-language message plus the original
error detail.
Auth errors, quota and rate limits (left to quota wait), lost sessions
and cancels never retry. Failed attempts still record their usage but
do not count as extra turns.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sending into a Claude thread idle for over an hour with 50k+ tokens of context re-reads the whole context without the prompt cache. The send now waits on a small inline confirm in the composer: Compact first (the existing /compact action, draft kept), Send anyway, Send and don't ask again, or Cancel. It uses the same conditions as the existing "Compact first" chip, which stays as it was. Pressing send again while the confirm is up asks again instead of sending twice. "Don't ask again" persists a new confirmColdClaudeResume setting (default on), which can be turned back on in Settings > General. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 97b0ecb0f5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Launch argv was built once, before a first turn had a session, so a CLI that exited during the retry backoff came back as a fresh conversation. The argv is now rebuilt with the session the failed result reported before the retry tries the live process, so both the retry's own spawn and the exit handler's respawn resume it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
currentbits
deleted the
coder/claude-retry-transient-failures-and-conf-ad6453
branch
November 13, 2026 18:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two Claude-provider improvements.
classifyClaudeTransientis narrow. It never matches auth errors, quota or rate limits (the existing quota-wait handles those), a lost session, or a cancel.confirmColdClaudeResumesetting, on by default, turns it off.Known tradeoffs:
Tests: new
electron/test/claude-transient-retry.test.js, which uses fake timers to cover stop during backoff, non-transient errors never retrying, and one user message in the transcript. Plus confirm tests intest/composerSlashActions.test.tsx. 72 of 72 pass.🤖 Generated with Claude Code