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
fix(codex): extract last JSON object from streamed structured output
Codex streams multiple intermediate JSON objects as progress updates
during a turn. The accumulated text is a concatenation of all of them,
which isn't valid JSON. When JSON.parse fails on the full text, we now
extract the last complete top-level JSON object using brace-depth
tracking — that's the authoritative final answer.
Without this, structuredOutput was undefined for multi-message turns,
causing downstream condition evaluators ($node.output.field) to fail
with condition_json_parse_failed and skip conditional nodes.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments