task tool "SyntaxError: Unexpected end of JSON input" #2003

Closed
opened 2026-02-16 17:33:41 -05:00 by yindo · 2 comments
Owner

Originally created by @g4borg on GitHub (Oct 8, 2025).

Originally assigned to: @thdxr on GitHub.

Since a few days, especially using grok-code and code-supernova, task runs seem to constantly fail with JSON Input Errors, basically degrading them entirely when trying to call other agents.

This was working better already.

I am not sure, where they do it wrong. Occasionally, they succeed. But most task calls now fail with this problem.

Originally created by @g4borg on GitHub (Oct 8, 2025). Originally assigned to: @thdxr on GitHub. Since a few days, especially using grok-code and code-supernova, task runs seem to constantly fail with JSON Input Errors, basically degrading them entirely when trying to call other agents. This was working better already. I am not sure, where they do it wrong. Occasionally, they succeed. But most task calls now fail with this problem.
yindo closed this issue 2026-02-16 17:33:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 8, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2188: JSON parsing failed with similar 'Expected }' error message - involved tool arguments with invalid JSON format
  • #1264: Single quotes (') are not allowed in JSON - shows JSON Parse errors with tool calls from certain models
  • #1278: JSON Parse error: Unterminated string with openrouter/kimi-k2 - demonstrates JSON parsing failures in tool calls

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 8, 2025): This issue might be a duplicate of existing issues. Please check: - #2188: JSON parsing failed with similar 'Expected }' error message - involved tool arguments with invalid JSON format - #1264: Single quotes (') are not allowed in JSON - shows JSON Parse errors with tool calls from certain models - #1278: JSON Parse error: Unterminated string with openrouter/kimi-k2 - demonstrates JSON parsing failures in tool calls Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

believe this is model failing to call tool properly

@rekram1-node commented on GitHub (Oct 8, 2025): believe this is model failing to call tool properly
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2003