anomalyco / anomalyco/opencode

Whitelist model unchecked by default — LongCat 2.0 not appearing in model picker

Open
#47,748 0 comments 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Sep 7, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Hi opencode team,

I found a bug with the provider whitelist configuration. When I set a whitelist for the openrouter provider, all 3 models were visible in the model picker, but one of them (meituan/longcat-2.0) was unchecked by default, while the other 2 were checked. Because it was unchecked, it did not appear in the model selection menu.

Config used:

{
"provider": {
"openrouter": {
"whitelist": [
"xiaomi/mimo-v2.5",
"deepseek/deepseek-v4-flash-vision-exp",
"meituan/longcat-2.0"
]
}
}
}
Expected behavior: All whitelisted models should be checked/enabled by default, so they all appear in the model selection menu.

Actual behavior: meituan/longcat-2.0 was unchecked by default. The other 2 models (xiaomi/mimo-v2.5 and deepseek/deepseek-v4-flash-vision-exp) were checked. I had to manually check meituan/longcat-2.0 to make it available.

Environment:

OpenCode version: 1.18.29
Platform: macOS
Config file: ~/.config/opencode/opencode.jsonc
All 3 models are valid and confirmed present in models.dev and the OpenRouter API. The issue is purely in the default checked/unchecked state when a whitelist is applied.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.