fix(llm): cover the malformed tool-call path and correct its records

The `MALFORMED_TOOL_CALL` JSDoc claimed nothing durable is written, but the loop appends an `assistant/chunk` for every yielded chunk; only the assistant messag

Fix

The `MALFORMED_TOOL_CALL` JSDoc claimed nothing durable is written, but the loop appends an `assistant/chunk` for every yielded chunk; only the assistant message and tool result are withheld. The bounded-recovery Note still listed a five-code transient set, and neither Note linked the other. A keyless `malformed-tool-call-retry` scenario now records the refusal, the retry, and the absence of a `t

Date
2026-09-02
Version
master@e91c28d
commit
e91c28d

View commit on GitHub

The MALFORMED_TOOL_CALL JSDoc claimed nothing durable is written, but the loop appends an assistant/chunk for every yielded chunk; only the assistant message and tool result are withheld. The bounded-recovery Note still listed a five-code transient set, and neither Note linked the other. A keyless malformed-tool-call-retry scenario now records the refusal, the retry, and the absence of a `t