You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cross-reference: while diagnosing the same reported symptom I found a second,
independent defect in the replay path.
prependCachedThinking on the adapter path only inserted a thinking block for
assistant turns containing tool_use, so a conversation whose earlier assistant
turn was plain text reached the provider bare and was rejected with The content[].thinking in the thinking mode must be passed back to the API.
Every retry re-sent the same body, so the session died rather than recovering.
Replaying a captured failing request against the provider confirmed it: the body
returns 400 as-is, and 200 once the plain assistant turn gains a thinking block
(empty or filled).
Filed as #110, fix in #111, based on main independently of this PR.
This PR is still needed for the reasoning summary lifecycle; the replay gap only
shows up once a session contains a mix of tool-call and text-only assistant
turns, which is why a short probe passes while longer sessions fail.
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
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.
Summary
Fixes the Anthropic-to-Responses reasoning stream lifecycle used by Codex before tool-call continuations.
summary_textpart before emitting deltas.signature_deltarather than treating it as a generic thinking delta.Fixes #102
Refs #63
Refs #101
Validation
The complete tagged E2E suite has unrelated existing failures tracked in #101.