You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --json-schema flag does not enforce JSON output when used with
--output-format stream-json, causing the model to return plain text
instead of valid JSON. The Result field in StreamEvent was also typed
as string, which fails to unmarshal when the CLI returns a JSON object.
Added explicit JSON output instructions to the planner prompt and
changed the Result field to json.RawMessage with a StructuredOutput
fallback. Implemented a multi-strategy JSON extraction pipeline that
tries direct parse, brace-depth extraction from result text, and
assistant text as a last resort. The frontend now displays planner
errors instead of silently swallowing them in console.error.
0 commit comments