Commit Graph
1 Commits
Author SHA1 Message Date
Euraxluo 915f14324e qoder 0.2.20: keep unnamed native tool deltas out of history (#256, Euraxluo)
A Qoder reply's native tool-call deltas no longer become a tool with an empty name. An empty or null placeholder is skipped; an id or arguments that arrive before the name are held until it comes; each upstream index keeps its own output index, so interleaved parallel calls get their own arguments (streamed and non-streamed). A native call that ends without a name ends the turn as a 502 instead of being sent on, since clients persist the empty name and Responses providers then reject the history. Qoder and Qoder CN share this parser.

Run at the reviewed head 9c755fd62cfd11cb80a9d960862aad25c32fb97d:
- bun test packages/qoder: 150 pass, 0 fail
- bun scripts/check.mjs qoder: ok
- native-tools.test.mjs on origin/main 5b68df0 (old parser): 0 pass, 11 fail
- PR CI (test, on-npm): green
Not tried against a live Qoder account; the frames are synthetic.
2026-10-20 15:56:06 +08:00