Files
splinter/tests
lotherk e0825c04b7 sse: index-less parallel tool calls are separate calls
A bridge that replays a completed non-streaming message in one SSE delta sends
tool_calls without an index (the non-stream shape has none). Splinter put every
index-less call of such a delta into the last slot, so junction's reviewed
answers arrived as one call whose arguments were several JSON objects:
mcp_tasksd__task_scopes with "{}{"state":"pending",...}{...}". The model was
then told its own arguments were malformed and repeated them.

Several entries in one index-less delta are now distinct calls (index = position);
a lone entry stays the next fragment of the last call, which the piecewise
streaming shape needs.

test_sse: one delta with three index-less calls yields three calls with their own
names and arguments; with the old fallback the test fails (ncalls is 1).
make check: all tests passed. make check-asan: all 41 binaries clean.
2026-11-19 09:29:11 +00:00
..