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
{{ message }}
Repository navigation
fix unterminated string errors in workflow edit tool args #20757
GitLab Duo workflow edit-writing flows can fail with unterminated string errors when tool arguments are wrapped in fenced JSON or surrounding prose instead of being emitted as a strict JSON object.
Reproduction
Use a GitLab workflow-backed model in opencode.
Trigger an edit-writing flow that emits a tool call with multiline arguments.
Observe the tool execution path fail before the tool runs when the arguments are wrapped or malformed.
Expected
The workflow tool executor should tolerate common wrapper formats around object-shaped JSON tool args, while still rejecting malformed inputs cleanly.
Actual
The executor calls JSON.parse directly on the raw args string, which surfaces parser failures like unterminated string during edit-writing flows.
This issue might be a duplicate of existing issues. Please check:
Tool call arguments may contain invalid JSON #17750: Tool call arguments may contain invalid JSON (same root cause — tool args not validated before JSON.parse, affecting streaming and non-streaming modes)
Activity
github-actions commentedon Apr 2, 2026
This issue might be a duplicate of existing issues. Please check:
Error message: JSON Parse error: Unterminated stringerrors #10755: JSON Parse error: Unterminated string errors during tool callsIf your issue is distinct (specifically about GitLab Duo workflow wrapping args in fenced JSON/prose), please clarify the difference in a comment.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.