Skip to content

[Bug] MiniMax responses show duplicate text in GUI but not in CLI #14904

Description

@lucasjingcn

Bug Description

When using MiniMax models (M2.5 or M2.1) through a custom gateway proxy, the text response displays twice in the OpenCode GUI, but works correctly (displays once) in the CLI.

Steps to Reproduce

  1. Set up a proxy gateway that forwards requests to MiniMax API (Anthropic-compatible format)
  2. Configure OpenCode to use this gateway as the provider
  3. Send a message to MiniMax model
  4. Observe the response in GUI vs CLI

Expected Behavior

The text should display only once, regardless of whether using GUI or CLI.

Actual Behavior

  • CLI: Text displays correctly (once)
  • GUI: Text displays twice (duplicate)

Additional Info

  • Tested with both MiniMax-M2.5 and MiniMax-M2.1 models
  • The gateway returns correct JSON response (verified with curl)
  • Direct API calls to MiniMax work correctly
  • The issue only occurs when going through the gateway in GUI mode

Environment

  • OpenCode version: [latest]
  • OS: macOS
  • Provider: MiniMax via custom gateway

Screenshots

GUI showing duplicate text:
[attach screenshot here]

CLI showing correct single text:
[attach screenshot here]

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions