Skip to content

Minimax M2.5 experience is weird #15092

Closed as not planned
Closed as not planned

Description

@mindplay-dk

Description

Basically, this is the Minimax M2.5 experience with OpenCode:

Image

As you can see, it's not a context limit issue (<10%) and it often gets permanently stuck in these loops.

I'm using the first-party provider/model minimax/fp8 via openrouter:

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "read": "allow",
    "write": "allow",
    "bash": {
      "*": "ask",
      "git *": "deny"
    }
  },
  "agent": {
    // as recommended here:
    // https://huggingface.co/MiniMaxAI/MiniMax-M2.5#inference-parameters
    "build": {
      "temperature": 1.0,
      "top_p": 0.95,
      "top_k": 40,
    },
    "plan": {
      "temperature": 1.0,
      "top_p": 0.95,
      "top_k": 40,
    }
  },
  "provider": {
    "openrouter": {
      "models": {
        "minimax/minimax-m2.5": {
          "name": "Minimax M2.5 (official)",
          "options": {
            "provider": {
              "only": [
                "minimax/fp8"
              ]
            }
          }
        },
      }
    }
  }
}

I suspect the default model parameters aren't suitable, so I tried to apply the officially recommended ones, but I'm not at all confident that these options are being applied and sent - adding them didn't change anything.

How can I tell? opencode debug agent build just shows whatever I put in the JSON file, it doesn't look like anything gets validated.

I have similar problems with Kimi K2.5, also from the first-party provider. I haven't attempted to change it's configuration.

I've been told on the Discord that there may be "something wrong with my setup", but I have no idea what that would even mean? I have OpenCode on 3 different systems (two Windows 11 systems, one Linux) and no plugins or configuration beyond what you saw here, and it's the same everywhere.

Is it possible that openrouter itself is broken?

Kimi and Minimax combined are getting the same amount of traffic on openrouter as Claude Opus:

Image

So it's hard to believe these models are completely useless?

But I'm at my wits end.

I've spent so many hours on this. It's impossible to tell if any config options are actually doing anything.

I wanted to see what the agent is actually doing, but /export only exports the conversation - I can't even see which files it's reading from the project, and the TUI doesn't display this information either. In general, OpenCode is not very generous with this type of information.

Plugins

none

OpenCode version

1.2.14

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Zorin 18, Windows 11

Terminal

VS Code terminal

Activity

  1. added
    bug
    on Feb 25, 2026
  2. added
    core
    on Feb 25, 2026
  3. github-actions commented on Feb 25, 2026

    @github-actions
    Contributor

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

    If your issue is distinct (e.g., specifically about config options not being validated/applied, or about the lack of visibility into agent file reads), please clarify that so it can be tracked separately.

  4. mindplay-dk commented on Feb 25, 2026

    @mindplay-dk
    Author

    Possible clue here:

    https://www.reddit.com/r/LocalLLaMA/comments/1qnblrd/comment/o1shz83/

    Same thing happened to me after the latest llama.cpp update - my models went completely bonkers and started giving me responses to questions I never even asked. Had to rollback to fix it, seems like something got broken in the recent commits

    Supposedly was fixed here:

    ggml-org/llama.cpp#19115

    But I guess there's no saying what version of llama.cpp providers use, if in deed that's what they're using...

  5. artrixdotdev commented on Feb 26, 2026

    @artrixdotdev

    Also experiencing this!

  6. mindplay-dk commented on Feb 26, 2026

    @mindplay-dk
    Author

    It seems unlikely this issue is caused by OpenCode - there are reports from other users experiencing the same with other tools via OpenRouter.

    Since these issues affect both providers on two different platforms (OpenRouter and OpenCode) I have reached out to both Moonshot and MiniMax to try to get to the bottom of this.

  7. ankushbhatiya commented on Mar 2, 2026

    @ankushbhatiya

    Same experience. M2.5 going in loop with Opencode.

  8. watermelon0guy commented on Mar 2, 2026

    @watermelon0guy

    Zed with Open Router, same problem. Strangely Open WEB UI is immune to this

  9. mindplay-dk commented on Mar 8, 2026

    @mindplay-dk
    Author

    I gave Minimax M2.5 another shot today - first-party provider via openrouter. (EDIT: not the first-party provider because this is still broken. So all random providers... dangit.)

    It completed two fairly long sessions - I watched the entire output both times, the longest task ran up to 130K tokens without problems, where previously I had problems already at 10-20K tokens.

    I haven't been able to get a response from either OpenRouter or Minimax regarding this issue, on any channel, but I wonder if something has been fixed upstream somewhere?

    There's been no update to OpenCode since I had this issue, I don't think anything changed here.

    Is anyone else still having these issues?

  10. kesor commented on Mar 10, 2026

    @kesor

    Had a problem of "duplicate telegram message" happen to me with OpenClaw. Some investigation showed that my setup of OpenClaw -> Cloudflare AI Gateway -> OpenRouter -> MiniMax got resolved with removing OpenRouter from the chain. A plausible cause might be the added delay/latency. In OpenClaw the PR that explains it in full and addresses the issue is in openclaw/openclaw#41662 and it is likely that OpenCode has a similar problem that gets triggered due to latency of the llm responses.

  11. tgwfc1012-cyber commented on Mar 11, 2026

    @tgwfc1012-cyber

    I am also experiencing this exact issue when using minimax M2.5 from openrouter and Opencode Go. One pattern i've observed is that it commonly starts this behavior when the context reaches around 20k~50k. I haven't changed the temp of the modal, just default one.

    Strangely, Kimi k2.5 with opencode go have no such issue, but the first party provider on open router still has these exact issues. So, either it is provider's issue as described above, or an unique issue from open code.

    would like to seek comments maybe from the Opencode Zen Team for the minimax M2.5 provided by them. Haven't got a chance to check out the one through open code Zen, since I heard the model on Go uses a Quantized Version(lite) than the one provided on the pay-as-you-go Zen.

  12. rschultz-hron commented on Mar 12, 2026

    @rschultz-hron

    @kesor @tgwfc1012-cyber just to be clear, have either of you had this issue after March 8th?

    A plausible cause might be the added delay/latency.

    Is that plausible? how/why would that matter?

  13. kesor commented on Mar 12, 2026

    @kesor

    @kesor @tgwfc1012-cyber just to be clear, have either of you had this issue after March 8th?

    Did anything change on March 8th? I had that issue when I commented here, didn't check since, moved away from OpenRouter to more direct comm.

    A plausible cause might be the added delay/latency.
    Is that plausible? how/why would that matter?

    If I dug through the code to know why this happens in the first place, I could have answered you. But it seems as good a reason as any as a suspect to look into. OpenRouter was showing MiniMaxM2.5 intial latency at 5s+ ; It was much faster with M2.5 via Fireworks (on OpenRouter) for example, at 1s or less.

  14. mindplay-dk commented on Mar 13, 2026

    @mindplay-dk
    Author

    It was much faster with M2.5 via Fireworks (on OpenRouter) for example, at 1s or less.

    I am generally suspicious of "much faster" on OpenRouter - there is no guarantee they're running the full model, is there? 🤔

    at least, when I'm evaluating a new model, I always lock-in the first-party provider to make fair I'm giving them a fair shot.

    Did anything change on March 8th?

    that's what I'm trying to establish - that was the last time I had the problem.

    I had that issue when I commented here

    so march 10? probably nothing is fixed then, I might have been just having more luck that day. 😌

  15. yangqi-su commented on Mar 28, 2026

    @yangqi-su

    Coming over here on March 28th to say that minimax 2.5 via openrouter's first party provider (minimax) still has this issue. the newest model minimax 2.7 also does but less so. One thing I noticed is that when using opencode's free minimax 2.5, this issue almost never happens, not sure about using it from minimax directly. This could point to some kind of model configuration problem when using via openrouter.

  16. assigned and unassigned on Apr 26, 2026
  17. removed
    bug
    core
    on May 3, 2026
  18. github-actions commented on Jul 4, 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions