trae 0.2.19's sibling. qoder's Splitter read a text-written call only
inside <tool_call>, so a bare Qwen <function=compress><parameter=…> or an
Anthropic <function_calls><invoke name="…"> block (with or without the
namespace prefix) went to the agent as reply text. And parseCall
JSON-parsed every parameter, so a string parameter holding [1, 2] became
an array.
- Splitter takes the request's tools (none under tool_choice none) and
reads both shapes bare (xmlCall), only for a declared tool, never in
backticks or a code fence. A tag split across chunks is held, never
text; the closes and blanks after a call are dropped; one cut short
ends the turn with the CUT_SHORT error, as <tool_call> blocks do.
- A parameter's value is its text where the tool's schema says string,
else JSON, here and in <tool_call>'s <function=…> form.
- README says so.
Run at this commit (base origin/main d248efa), HOME and TMPDIR a sandbox
dir, network at a dead proxy:
- packages/qoder: bun test, 233 pass 0 fail. New xmlcall.test.mjs (8
tests) uses trae's samples (01huadalang's screenshots): whole, in pieces
of 1/2/3/5/7/13/64, split in two at every offset, namespaced, cut short,
undeclared, prose/backticks/fence, and sample 2 through the plugin's
fetch over a fake Qoder SSE, streamed and not (finish tool_calls).
6 of 8 fail on the old index.mjs.
- Broken by hand, each red then restored: the declared-tool check (1
red), XML_HOLD out of the hold (3), leftovers kept (4), schema typing
(1), the backtick check (1).
- Root `bun test` (every package in one process, as CI): 2626 pass 0
fail. bun scripts/check.mjs: qoder ok.
Not tried: a real Qoder model writing these shapes; none has been seen
doing it yet.