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
- Set up a proxy gateway that forwards requests to MiniMax API (Anthropic-compatible format)
- Configure OpenCode to use this gateway as the provider
- Send a message to MiniMax model
- 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]
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
Expected Behavior
The text should display only once, regardless of whether using GUI or CLI.
Actual Behavior
Additional Info
Environment
Screenshots
GUI showing duplicate text:
[attach screenshot here]
CLI showing correct single text:
[attach screenshot here]