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
- Create a session with a model that uses tools and run a few tool calls.
- Continue the same session using
opencode-go/minimax-m3.
- Send another message.
- 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
Description
Switching an existing tool-heavy session to
opencode-go/minimax-m3can fail with a provider 400: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
devbranch behavior.Steps to reproduce
opencode-go/minimax-m3.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