Repository navigation
chore: sync upstream 4b5c058a - #13
Merged
Merged
Conversation
When Codex keeps finishing a turn with no output, the proxy already retries up to 10 times (~3 min) before answering 503. Claude Code then retries that 503 itself, up to 10 more times, and each of those repeats the proxy's full retry loop. A deterministic empty completion therefore holds the request for roughly half an hour (~100 upstream calls) before it fails. This reproduces reliably with background subagents: after a subagent hands its report back, GPT models often have nothing left to say, so the follow-up turn completes empty every time and the agent stays "running" until it is killed. Mark the exhausted-empty 503 with `x-should-retry: false`, the same signal usage_limit_response already uses. Claude Code's shouldRetry honors it, so the request fails once, after the proxy's own retries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ient-retry fix(codex): stop client retries after empty-completion exhaustion
# Conflicts: # CHANGELOG.md
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
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.
Merges
raine/claude-code-proxyat4b5c058a(v0.1.44) intomain. Done by hand after the 10-08 automated sync stopped on aCHANGELOG.mdconflict.Conflicts:
CHANGELOG.mdonly. Kept the forkUnreleasedsection above upstream'sv0.1.44section.Fork decisions: no upstream change touched them. I checked the
srcdiff forfable,astra,kiro,sonnet,opus,speed, andservice_tier: no matches.Checks:
just check-cipasses locally on Rust 1.99.Upstream commits
0ea44cafix(codex): stop client retries after empty-completion exhaustiond0e8902Merge pull request fix(codex): stop client retries after empty-completion exhaustion raine/claude-code-proxy#1754b5c058release v0.1.44Closes #12