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
[Bug] TUI crashes with "Unknown data message" when parsing concurrent tool calls from MiniMax-M2.7 #19463
When using MiniMax-M2.7 as the main Plan agent, attempting to spawn multiple subagents concurrently results in a parsing error and a TUI crash. OpenCode seems unable to parse the parallel tool call response from the MiniMax API.
Steps to Reproduce
Set the Plan agent model to MiniMax-M2.7.
Provide a prompt that forces the agent to use multiple subagents at the same time (e.g., "Critique this plan from 4 different angles using 4 agents concurrently").
The model attempts to dispatch the tasks (Architecture, Performance, Data Integrity, Frontend/UX).
The TUI crashes and throws an Unknown data message error from the worker.
Expected Behavior
OpenCode should correctly parse the parallel tool calls/JSON returned by the MiniMax-M2.7 API, spawn the subagent sessions in the background, and allow the user to navigate them using the leader key (Ctrl + X).
Actual Behavior
The model catches the parsing issue internally, outputting: Thinking: El equipo tuvo errores de parsing. Voy a intentar una aproximación diferente...
Immediately after, the OpenCode TUI crashes with the following error related to the worker payload:
Unknown data message
at createUserMessage (/$bunfs/root/src/cli/cmd/tui/worker.js:235457:27)
The issue seems strictly related to how the OpenCode parser handles the specific JSON structure or tool-call array format returned by the MiniMax M2.7 endpoint when dealing with parallel execution. Forcing the model to execute agents sequentially (one by one) via prompt engineering temporarily mitigates the crash.
Plugins
None (Core OpenCode TUI only)
OpenCode version
1.3.3
Steps to reproduce
Set the main Plan agent model to MiniMax-M2.7.
Give the agent a prompt that forces concurrent/parallel execution of multiple subagents (e.g., "Critique this plan using 4 agents in parallel: architecture, performance, data, and UX").
The model will attempt to dispatch the 4 tasks simultaneously.
The TUI immediately crashes with an Unknown data message error in the worker.js file because it fails to parse the parallel tool-call JSON from the MiniMax API.
If your crash is distinct from those (e.g. specifically the Unknown data message worker error on concurrent tool calls rather than an infinite loop), feel free to clarify and this can stay open as a separate issue.
Activity
github-actions commentedon Mar 27, 2026
This issue might be a duplicate of existing issues. Please check:
finishReason: "unknown"— related root cause where unexpected provider response structures cause the agent loop to misbehaveIf your crash is distinct from those (e.g. specifically the
Unknown data messageworker error on concurrent tool calls rather than an infinite loop), feel free to clarify and this can stay open as a separate issue.github-actions commentedon Jul 5, 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.