Files
oh-my-pi/packages/coding-agent/test/tools
roboomp ce60b6626b fix(coding-agent): harden todo renderer against malformed streaming args
The todo tool's renderCall ran args?.ops?.map(...) directly, which throws
TypeError on any non-array ops value. parseStreamingJson surfaces such
shapes mid-stream: a partial Anthropic input_json_delta buffer like
'{"ops":"[{' becomes { ops: '[{' }, and intermediate states can hand back
null entries before object fields arrive. Each crash spammed Tool
renderer failed warnings and starved the TUI render loop.

Guard against:
- ops being any non-array (string, object, primitive)
- entries being null / non-object
- entry.items being a non-array

The fix is in the TUI renderer only — schema validation in the agent
loop is unchanged, so any genuinely malformed model output still
surfaces an invalid-args tool error to the model.

Fixes #2005
2026-06-06 18:11:42 +00:00
..
2026-05-31 13:22:50 +02:00
2026-05-25 12:22:43 +02:00
2026-05-25 12:22:43 +02:00
2026-05-30 18:08:51 +02:00
2026-05-27 19:00:49 +02:00
2026-06-05 18:14:45 +00:00
2026-05-25 18:01:45 +00:00