Files
opencode/packages
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-17 21:55:57 +00:00
2026-08-17 21:55:57 +00:00
2026-08-10 03:36:24 +00:00
2026-08-10 03:36:24 +00:00