Skip to content

[Bug] TUI crashes with "Unknown data message" when parsing concurrent tool calls from MiniMax-M2.7 #19463

Closed as not planned

Description

@bjohnmer

Description

Describe the bug

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

  1. Set the Plan agent model to MiniMax-M2.7.
  2. 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").
  3. The model attempts to dispatch the tasks (Architecture, Performance, Data Integrity, Frontend/UX).
  4. 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)

Environment Context

  • OS: macOS Tahoe 26.3.1 (Apple Silicon M4, 16GB RAM)
  • Installation Method: Homebrew
  • OpenCode Version: 1.3.3
  • Model: MiniMax-M2.7

Additional Context

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

  1. Set the main Plan agent model to MiniMax-M2.7.
  2. 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").
  3. The model will attempt to dispatch the 4 tasks simultaneously.
  4. 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.

Screenshot and/or share link

Image

Operating System

macOS Tahoe 26.3.1 (Apple Silicon M4, 16GB RAM)

Terminal

iTerm2 Build 3.6.9

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 27, 2026
  2. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

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

    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.

  3. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions