Skip to content

MiniMax rejects existing sessions with tool history #32614

@megamen32

Description

@megamen32

Description

Switching an existing tool-heavy session to opencode-go/minimax-m3 can fail with a provider 400:

invalid params, tool call result does not follow tool call (2013)

The same model works in a fresh session, so the failure appears to be triggered by historical tool-call/tool-result parts from the existing session.

Plugins

None required to reproduce.

OpenCode version

Current dev branch behavior.

Steps to reproduce

  1. Create a session with a model that uses tools and run a few tool calls.
  2. Continue the same session using opencode-go/minimax-m3.
  3. Send another message.
  4. MiniMax rejects the request with tool call result does not follow tool call (2013).

Screenshot and/or share link

Provider error observed from https://opencode.ai/zen/go/v1/messages:

{"type":"error","error":{"type":"bad_request_error","message":"invalid params, tool call result does not follow tool call (2013)","http_code":"400"}}

Operating System

Linux

Terminal

Web UI / OpenCode server

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions