Repository navigation
Server: tool calls completed just before the thinking close are returned when no answer follows (#2310) - #2313
Merged
Merged
Conversation
4 tasks done
Keep completed call envelopes at the thinking boundary pending until an empty answer is final. Preserve calls followed by more reasoning or an answer, and remap MiniMax close-token offsets after its existing markup rewrite. Fixes #2310
ashhart
force-pushed
the
lead/tool-call-before-close
branch
from
November 6, 2026 15:11
3fde911 to
5888351
Compare
Owner
Author
|
Thanks @AdrianBinDC for the #2310 report! The fix is in TensorFold 1.2.4, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.4 |
This was referenced Nov 10, 2026
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.
Fixes #2310, reported by @AdrianBinDC.
#60 handled a reply that ends inside a think block that never closes, moving a complete tool call there into the answer. But when the call was followed by the think-close token,
splitThinkingAt(zig/src/server/reply_text.zig) put everything before the close into reasoning. Tools are parsed only from the answer, so the client got the call's markup inreasoning_content, emptycontentand notool_calls. That was seen on Nemotron 3.5 Lightning with thinking on.reply_tool_tail.zig).tool_calls, content and reasoning.tool_minimax.closeAfterRewritenow maps the offset after the rewrite.Tests (
zig build test-thinking-tail-host):Checks:
test-server-cpuandtest-golden: 13 of 13 steps, 1,161 tests passed and 5 skipped;zig build: 255 of 255;zig fmt --check;