Repository navigation
[WRONG BRANCH] fix(chat): recover standalone MiMo bare blocks as synthetic freeform calls #7260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
shirruy
wants to merge
12
commits into
lidge-jun:main
Choose a base branch
from
shirruy:fix/mimo-bare-serialized-tool-call-visibility
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6da6d18
fix(chat): recover standalone MiMo bare blocks as synthetic freeform …
shirruy cf502f2
fix(chat): suppress MiMo raw-text echo with stray invoke closer
shirruy 124ec13
fix(chat): suppress MiMo echo on error path and non-freeform raw-text…
shirruy cfc8d82
fix(chat): reconcile MiMo echo blocks on the adapter error path
shirruy 7c06d91
fix(chat): accept MiMo's </function_calls> alternate block close
shirruy 8d55353
fix(chat): reduce MiMo raw-text doubled arguments inside ambiguity gate
shirruy 3eb6136
fix(chat): recover mid-line MiMo echo blocks and <const input> wrapper
shirruy 52dea95
fix(chat): accept the </function_name> alternate block close
shirruy 1622c6e
fix(chat): generalize the <const VAR> wrapper strip to any variable name
shirruy 0caee64
fix(chat): distinguish <const VAR> tag wrappers from stray-bracket co…
shirruy 3011832
fix(chat): hide bare MiMo blocks when no tools are declared (Codex De…
shirruy 9290851
fix(chat): hold and strip mid-line MiMo blocks during streaming
shirruy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Preserve streaming candidates until recovery can decide their fate.
If a qualifying bare block is followed by more than 8 KiB of prose before the terminal frame,
ingestStreamingcan release the held block as visible text. At flush time,toolCallContent.current()no longer contains it. The streaming path then emits no synthetic call, so the requested tool does not run. Preserve eligible candidates across the bounded release, or define and test an explicit fallback that does not promise recovery for this case. Add a streaming regression beside the buffered cases intests/adapters/openai/openai-chat-serialized-tool-call-content.test.ts.🤖 Prompt for AI Agents