Repository navigation
fix(roadmap): show the 400 body and resend a failed stream once - #2797
Merged
Merged
Conversation
…ailed model call (#2794)
The budget of a resend counted for the whole turn. A second failure later in the same turn found it used and stopped the step. A send that gets a reply now gives the next failed request its own resend. The failed request counts in the usage that the resend carries, so the model gets no more requests than the limit.
…ody (#2794) A provider can echo the output of the model in its error text. The reason of a stop is public text, and the masker finds a secret only by its form. The error text of a body now keeps its first line, hides quoted text, and stops at the first equals sign or semicolon, as the reason of other errors does. The comment of the resend limit states the real bound on the sends of one call.
…ailed model call (#2794)
Owner
Author
|
Test results
Review findings fixed
Residual risk
|
…dy-and-retry # Conflicts: # openspec/specs/roadmap-implement-step/spec.md
dan-petty
marked this pull request as ready for review
October 30, 2026 19:58
dan-petty
pushed a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.22.7](v0.22.6...v0.22.7) (2026-10-30) ### Bug Fixes * **roadmap:** a failed ruff or mypy check gets one repair turn ([#2796](#2796)) ([77e7f7c](77e7f7c)), closes [#2795](#2795) * **roadmap:** show the 400 body and resend a failed stream once ([#2797](#2797)) ([034aa0e](034aa0e)), closes [#2794](#2794) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
A step now shows why the provider refused a model call, and it sends a request again once when the provider fails it inside an open stream.
=or;, so an echo of the model output stays out.ModelHTTPErrorwith the status 400 inside an open stream (not a context window error) is sent again with the same history, at mostCONST_ROADMAP_IMPLEMENT_MODEL_RESENDStimes in a row. A send that gets a reply gives the next failed request its own resends.ai.max_retries) * (1 +CONST_ROADMAP_IMPLEMENT_MODEL_RESENDS) sends.Closes #2794