Skip to content

train 1121071521: #4144 #4157 (CI only) - #4331

Closed
ashhart wants to merge 6 commits into
mainfrom
lead/train-1121071521
Closed

ashhart wants to merge 6 commits into
mainfrom
lead/train-1121071521

Conversation

@ashhart

@ashhart ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #4144 #4157 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

plotarmordev and others added 6 commits November 21, 2026 07:15
The net change of #4144 at a57d9c2 over its merge base f35bfa4, as one commit: merge a57d9c2 carries its own change to zig/src/core/contract/registry_joins.zig.
…for the call

tool_choice required and named functions now set a thinking budget of
max_tokens minus max(256, max_tokens/4), capped by any requested budget,
so a think block that never ends cannot use the whole reply. Requests
without tools and tool_choice auto are unchanged.
The fixture called tool_think.apply itself, so it still passed with the
call in chat.prepare removed. It now turns thinking on, gives the fake
server its close markers and the thinking_budget capability, and builds
the request with chat.prepare, so the wiring is what the lane and reply
assertions check. Without the call the named case fails (expected 44,
found 0).
… off by default

Closing the think block early changes the reply of a required or named
call whose thinking would have ended between the cap and max_tokens,
including calls that already succeed. The close is now opt-in through
--tool-think-close, as --loop-guard-stop is; without it every request is
prepared as before.

The thinking tests move to tool_think_test.zig. With the flag, a think
block that never ends closes at the cap and the call follows. Without
it, a call whose thinking ends past the cap (at 200 of 300 tokens) keeps
main's request and emits the same tokens. The docs, run guide and
changelog name the flag.
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Landed: #4144 #4157 as main dcc29d9. This PR only carried their CI.

@ashhart ashhart closed this Nov 21, 2026
@ashhart
ashhart deleted the lead/train-1121071521 branch November 21, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants