Skip to content

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

Closed as not planned

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]

Activity

  1. github-actions commented on Feb 24, 2026

    @github-actions
    Contributor

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

    These issues describe the same core problem (text rendered twice in the GUI/desktop UI but not in CLI). The root cause may already be identified or in progress. Please review those issues and consider whether this is the same bug before proceeding.

  2. github-actions commented on Apr 26, 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

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