anomalyco / anomalyco/opencode
[FEATURE/BUG] OpenCode Zen disabled models still appear in TUI picker (config drift risk)
@fwang is already working on this.
Since Aug 5, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
When models are disabled in the OpenCode Zen workspace/admin dashboard, they continue to appear in the TUI model picker (/models). Selecting a disabled model results in a gateway error when initiating a prompt, but the TUI model picker provides no indication that the model is disabled or blocked.
Configuration Drift Risk & Developer Experience
Currently, the workaround suggested in closed issues (e.g. #18149) is for users to manually configure a whitelist or blacklist in their local ~/.config/opencode/opencode.json under the opencode provider key.
However, this approach introduces significant configuration drift risks:
- Double Maintenance: Workspace admins / users must manage model availability in two separate places (Zen Web Dashboard and local
opencode.jsonfiles). - Configuration Drift: Whenever workspace admins disable or enable models on the Zen backend, every team member's local
opencode.jsonwhitelist/blacklist becomes stale immediately. Users have no automated way to know when their local config is out of sync with workspace policies. - Inconsistent UX: Other integrated providers (e.g., GitHub Copilot) dynamically filter available models according to account/org policies.
Expected Behavior
- The OpenCode Zen model catalog endpoint should filter out models disabled for the workspace (or return model metadata with a
disabled: trueflag). - The TUI model picker should respect the workspace status and automatically omit or disable blocked models without requiring manual sync via local
opencode.json.
Steps to Reproduce
- Disable specific models in the OpenCode Zen dashboard.
- Launch OpenCode TUI and check
/models. - Disabled models still show up in the TUI picker.
- Selecting and querying a disabled model fails with a gateway error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.