XcodeFish's two leaks on 0.2.6, still on 0.2.8: glm-5.3-flash wrote
<toolcall></toolcall>, and a reply ended at "<tool_call name". Both went
out as the answer with a 200.
- The opener, close, leftovers and held marks take <toolcall> and
</toolcall> too; an empty block is dropped as <tool_call></tool_call>
is, one with JSON or parameters is a call, one that can't be read is
the error it is for <tool_call>.
- At the end of a reply, an opener still open (<tool_call, <tool_call
name) outside backticks or a fence ends the turn with the cut-short
error.
Run: the issue's repro (A-G) on main and on this; the new test fails on
the old index.mjs (1 fail) and passes here; HOME=$(mktemp -d) bun test
for the repo, 1153 pass 0 fail; bun scripts/check.mjs green.