Repository navigation
Overloads mid-reply hold the provider's pool, an empty reply after a tool call ends the turn, keep the answer a steer came after - #233
Conversation
…y after a tool call, keep the answer a steer came after - An overload or rate limit that Anthropic sends after the stream began is the 529 or 429 it would have been before it, and is retried as one; it failed the turn with provider_error and no retry. - Retries after an overload or a stall start at 2 s instead of 250 ms: a stall resent at once with the same context stalls again. - An empty reply once the model has replied in the turn, as after a reaction with nothing to add, ends the turn; an empty reply to a prompt or an empty summary still fails as empty_completion. - A turn handle's result carries before_steer, the last text the turn wrote before its last steer, when it then ended on a reply to the steer. - read refuses an image or other binary file with file_not_text, naming its kind, instead of putting its bytes in context. - A command whose output reader stops reading (| head) exits quietly instead of panicking. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHW3CCrgg5qbk2KQVA
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHW3CCrgg5qbk2KQVA
Codex Review SummaryThis 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: 0e8dfe5554
ℹ️ 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".
…s reply on resume An overloaded_error inside the stream now closes the model's pool as an HTTP 529 does, and its retry waits on the pool like a rate limit; only a stalled stream keeps its own seconds-long backoff. A turn that parked on a call the model made, or on its pool after one, still counts as having replied when it resumes, so an empty reply then ends it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHW3CCrgg5qbk2KQVA
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGHW3CCrgg5qbk2KQVA
Fixes for turns that failed, or lost their answer, in a day of heavy use.
Changes
overloaded_errorandrate_limit_erroras an SSEerrorevent. Both mapped toprovider_error, which is final, so a busy provider failed the turn with no retry. They now map toprovider_http_529andprovider_rate_limited, the codes the same refusal gets before the stream begins. Like those, they close the model's pool for every bot through the pacer: 1 s, doubling up to 32 s while refusals go on. A 529's retry now waits on the pool the way a rate limit's does. A turn that would wait 250 ms or more parks without its slot and resumes when the pool reopens.empty_completionand showed it as failed.waitreturned only a turn's final text. When a reviewer was steered after writing its review, its final text was its reply to the steer ("already reported in my last reply"), and the review was lost. A turn's result now carriesbefore_steer: the last text it wrote before its last steer, when that differs from the final text.readrefuses binary files. Reading a PNG put its bytes into context.readnow fails withfile_not_textand a detail naming the kind: PNG, JPEG, GIF, WebP, PDF, zip, executable, or binary file. The last is any file with a NUL byte in its first 8 KiB, which is git's rule.agent ls | headno longer panics. CLI output that hits a closed pipe exits quietly with status 0 instead of panicking with status 101.Testing
cargo test --workspace: all pass, except the two sandfs task tests, which fail the same way on main in a container without FUSE.cargo clippy --workspace --all-targetsandcargo fmt --checkare clean.readon an imagebefore_steer.AGENT_TEST_RUNTIME=1against a release build: 396 tests, OK (6 skipped).agent ls --pretty | head -1exits 101 with a panic on main and 0 with this change.No visible UI change, so no screenshots.
🤖 Generated with Claude Code