Files
opencode/packages/core/test
Kit Langton 98310eb310 fix(core): accept null as omitted for optional tool inputs
The JSON Schema advertised for tools renders optional fields as `X | null`
because JSON cannot express undefined, so callers (models, Code Mode agents)
legitimately pass null meaning "omit" and were rejected with
'Expected string | undefined'. Decode now retries with null-valued object
properties removed when the first attempt fails: schemas that genuinely accept
null succeed on the first attempt, array elements stay positional, and the
original error is reported when the retry cannot help.
2026-08-19 18:31:04 -04:00
..
2026-08-12 19:29:55 +00:00
2026-07-01 17:12:00 -04:00
2026-06-22 22:49:57 -04:00
2026-08-12 20:29:39 +00:00
2026-08-18 00:19:50 +00:00