Repository navigation
Studio: Keep Codex reasoning between tool calls on /v1/responses - #11726
Merged
Merged
Conversation
Collaborator
|
Pushed one small follow-up commit on top of this PR:
|
Collaborator
|
Codex review and CI on a staging copy with the same head (
|
Lyxot
approved these changes
Sep 24, 2026
Lyxot
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Codex now gets its own reasoning back between tool calls, and each reply is folded into a single assistant turn, the same way llama.cpp's own /v1/responses handles it. Codex review and CI passed on the same head, and the change still passes its tests when merged with the latest main.
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
…lothai#11726) * Studio: replay Responses reasoning and fold each turn into one assistant message * refactor(studio): clarify responses reasoning replay and cover content over summary --------- Co-authored-by: Lyxot <[email protected]>
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.
With
unsloth start codex, Codex sends the model's earlier reasoning back with each request, but Studio threw it away. The model lost its plan after every tool call. One reply was also split into several messages whenever the model made more than one tool call.Studio now keeps the reasoning and joins each reply back into a single message.