Streaming drops XML tool-call output that non-streaming parses correctly Streaming must…
- User
Streaming drops XML tool-call output that non-streaming parses correctly
Streaming must emit the same recovered XML tool calls as non-streaming, including calls split across chunks and multiple calls, and finish with
tool_calls. Reasoning mode and request tool selection must not alter recovery. Plain text or malformed markup must not create calls or abort the stream.Interface
No new interfaces are introduced.
- Assistant
Now let me check existing tests that exercise
finalize()with a parser that finds nothing, to make sure my change won't break them: - Assistant
Now I'll implement the fix in the postprocessor. First check which tests call
finalize()so I don't regress them: - Assistant
Now implement the fix:
- Assistant
Now the
finalize()rewrite: - Assistant
Now verify the new behavior end-to-end at the postprocessor level:
- Assistant
All checks pass. Now run the broader test suites that can execute in this environment:
- Assistant
Many failures/errors — I need to check whether they're pre-existing (this Linux box lacks
mlx). Compare against the clean tree: - Assistant
No regressions. Now add regression tests to the repo pinning the new behavior:
- Assistant
All 82 pass (74 existing + 8 new). Let me also check the route-level leak/streaming tests that can run here:
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.