If a chat of yours ever started failing on every turn after one bad tool call, this release is about that chat.
The transcript stays honest. A length-capped or malformed generation is saved verbatim, and running it
already failed cleanly. The trouble is replay. An engine that parses the arguments of every stored call
(Basalt and Strata are two of them) answers the whole request 400 Expecting ',' delimiter: line 1
column N. So one unparseable entry made every later turn in that chat fail on a local engine, while
the same chat went on working against a hosted API that is lenient about it. The provider view now
repairs such a call into a stable handle (character count, SHA-256, 160-character preview) and keeps
its id, type and name, so assistant-to-tool pairing and the prompt prefix cache stay valid.
Persisted history is never rewritten. scripts/repair_tool_args.py, released with the Rust edition,
does the same job on chat files already on disk.
That script learned its main rule the hard way. The desktop app holds every chat it has opened in
memory and writes that copy back on save and on exit. On 2026-11-10 the repair ran at 19:31, the GUI
exited at 19:43, and the app restored the byte-identical poisoned string; the next turn failed with the
same 400. So --apply now exits 3 with instructions (quit Pengy, repair, start it again) when the app
is running, --force overrides, and a running pengy-web or pengy-cli is reported as a warning.
The other fix is a vision detection. Fireworks' GLM router answers any image part, a 1x1 PNG included,
with 400 Invalid image or video input, while text-only requests on the same route succeed. That
phrase means "no vision on this route", not "your image is corrupt", and it is now handled like the
other unsupported-input signals: the turn continues with images suppressed and the model told only file
metadata is available. Corpus-image errors ("Invalid image URL", "Unsupported image format") still fail
loudly, and a corrupt image still surfaces its real error.
Full suite green: 1149 passed, 8 skipped.