Sonic fails to work if a particular combination of tools is setup. #1409

Closed
opened 2026-02-16 17:30:51 -05:00 by yindo · 4 comments
Owner

Originally created by @ucirello on GitHub (Aug 20, 2025).

Originally assigned to: @thdxr on GitHub.

opencode v0.5.12

{
        "$schema": "https://opencode.ai/config.json",
        "mcp": {
                "context7": {
                        "type": "local",
                        "enabled": true,
                        "command": [
                                "npx",
                                "-y",
                                "@upstash/context7-mcp"
                        ]
                },
                "playwright": {
                        "type": "local",
                        "command": [
                                "npx",
                                "@playwright/mcp@latest"
                        ]
                },
                "diff": {
                        "type": "local",
                        "command": [
                                "npx",
                                "-y",
                                "diff-mcp"
                        ]
                },
                "time": {
                        "type": "local",
                        "command": [
                                "uvx",
                                "mcp-server-time"
                        ]
                },
                "memory": {
                        "type": "local",
                        "command": [
                                "npx",
                                "-y",
                                "@modelcontextprotocol/server-memory"
                        ]
                },
                "sequentialthinking": {
                        "type": "local",
                        "command": [
                                "npx",
                                "-y",
                                "@modelcontextprotocol/server-sequential-thinking"
                        ]
                }
        }
}
Originally created by @ucirello on GitHub (Aug 20, 2025). Originally assigned to: @thdxr on GitHub. opencode v0.5.12 ``` { "$schema": "https://opencode.ai/config.json", "mcp": { "context7": { "type": "local", "enabled": true, "command": [ "npx", "-y", "@upstash/context7-mcp" ] }, "playwright": { "type": "local", "command": [ "npx", "@playwright/mcp@latest" ] }, "diff": { "type": "local", "command": [ "npx", "-y", "diff-mcp" ] }, "time": { "type": "local", "command": [ "uvx", "mcp-server-time" ] }, "memory": { "type": "local", "command": [ "npx", "-y", "@modelcontextprotocol/server-memory" ] }, "sequentialthinking": { "type": "local", "command": [ "npx", "-y", "@modelcontextprotocol/server-sequential-thinking" ] } } } ```
yindo closed this issue 2026-02-16 17:30:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 20, 2025):

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

  • #2105: Sonic gets stuck in plan mode - another Sonic-specific issue that may be related to tool configuration
  • #2106: Context Tracker not updating (Sonic) - another issue specifically with Sonic model behavior
  • #1150: AI_APICallError: tool_use ids must be unique - reports tool conflicts when using multiple MCP servers including context7, playwright, and atlassian
  • #731: Critical Stability Issues: App Freezing & Hanging Analysis - comprehensive analysis of MCP server failures causing hangs during startup/operation
  • #504: Big mess in terminal when MCP server fails - issues when MCP server configuration fails

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

@github-actions[bot] commented on GitHub (Aug 20, 2025): This issue might be a duplicate of existing issues. Please check: - #2105: Sonic gets stuck in plan mode - another Sonic-specific issue that may be related to tool configuration - #2106: Context Tracker not updating (Sonic) - another issue specifically with Sonic model behavior - #1150: AI_APICallError: `tool_use` ids must be unique - reports tool conflicts when using multiple MCP servers including context7, playwright, and atlassian - #731: Critical Stability Issues: App Freezing & Hanging Analysis - comprehensive analysis of MCP server failures causing hangs during startup/operation - #504: Big mess in terminal when MCP server fails - issues when MCP server configuration fails Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 20, 2025):

wdym by fails to work? do you see an error?

@rekram1-node commented on GitHub (Aug 20, 2025): wdym by fails to work? do you see an error?
Author
Owner

@ucirello commented on GitHub (Aug 21, 2025):

@rekram1-node I get:

AI_TypeValidationError: Type validation failed: Value: {"code":"Client specified an invalid argument","error":""}.
Error message: [{"code":"invalid_union","errors":[[{"expected":"array","code":"invalid_type","path":["choices"],"message":"Invalid input: expected array, received
undefined"}],[{"expected":"object","code":"invalid_type","path":["error"],"message":"Invalid input: expected object, received string"}]],"path":[],"message":"Invalid input"}]```
@ucirello commented on GitHub (Aug 21, 2025): @rekram1-node I get: ``` AI_TypeValidationError: Type validation failed: Value: {"code":"Client specified an invalid argument","error":""}. Error message: [{"code":"invalid_union","errors":[[{"expected":"array","code":"invalid_type","path":["choices"],"message":"Invalid input: expected array, received undefined"}],[{"expected":"object","code":"invalid_type","path":["error"],"message":"Invalid input: expected object, received string"}]],"path":[],"message":"Invalid input"}]```
Author
Owner

@wanllow commented on GitHub (Aug 22, 2025):

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

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

thank you for your reply, but Can I ask a question: " where can I apply the opencode's api to use sonic?", thank you very much.

@wanllow commented on GitHub (Aug 22, 2025): > This issue might be a duplicate of existing issues. Please check: > > * [BUG: Sonic gets stuck in plan mode. #2105](https://github.com/sst/opencode/issues/2105): Sonic gets stuck in plan mode - another Sonic-specific issue that may be related to tool configuration > * [BUG: Context Tracker not updating (Sonic) #2106](https://github.com/sst/opencode/issues/2106): Context Tracker not updating (Sonic) - another issue specifically with Sonic model behavior > * [AI_APICallError: `tool_use` ids must be unique #1150](https://github.com/sst/opencode/issues/1150): AI_APICallError: `tool_use` ids must be unique - reports tool conflicts when using multiple MCP servers including context7, playwright, and atlassian > * [Critical Stability Issues: App Freezing & Hanging Analysis #731](https://github.com/sst/opencode/issues/731): Critical Stability Issues: App Freezing & Hanging Analysis - comprehensive analysis of MCP server failures causing hangs during startup/operation > * [big mess in terminal when MCP server fails #504](https://github.com/sst/opencode/issues/504): Big mess in terminal when MCP server fails - issues when MCP server configuration fails > > Feel free to ignore if none of these address your specific case. thank you for your reply, but Can I ask a question: " where can I apply the opencode's api to use sonic?", thank you very much.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1409