Skip to content

Conversation

@zerone0x
Copy link
Contributor

@zerone0x zerone0x commented Jan 8, 2026

Summary

Fix custom models not appearing in the web UI model selector.

Problem

Users who configure custom models (e.g., DeepSeek, OpenRouter, Aliyun) in their opencode.json can see and use all models in the TUI, but only a subset appears in the web UI. This inconsistency creates confusion and limits the web UI's usefulness.

Root Cause

The web UI model visibility logic filters models based on whether they belong to a "latest" set, which relies on release_date metadata. Custom models typically don't have a valid release_date, causing them to be filtered out by default.

Solution

Update the visible() function in packages/app/src/context/local.tsx to show models without a valid release_date by default. This ensures custom models are visible in the web UI while preserving the existing behavior for official models with proper metadata.

Before: Models without release_date → hidden by default
After: Models without release_date → shown by default

Testing

  • Configured custom models now appear in web UI model selector
  • Official models with release_date maintain their existing visibility behavior
  • User visibility preferences (show/hide) still take precedence

Fixes #6798

…el selector

Custom models configured by users typically lack a valid release_date,
causing them to be filtered out of the web UI model selector. This fix
makes models without a valid release_date visible by default, aligning
web UI behavior with TUI which shows all configured models.

Fixes anomalyco#6798

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@zerone0x zerone0x requested a review from adamdotdevin as a code owner January 8, 2026 16:46
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@adamdotdevin adamdotdevin merged commit c7b825a into anomalyco:dev Jan 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to choose from all of the custom models in the web UI

2 participants