Skip to content

fix(web): make fallback model visible in model selector#23246

Open
shadowabi wants to merge 2 commits intoanomalyco:devfrom
shadowabi:fix/default-model-visibility
Open

fix(web): make fallback model visible in model selector#23246
shadowabi wants to merge 2 commits intoanomalyco:devfrom
shadowabi:fix/default-model-visibility

Conversation

@shadowabi
Copy link
Copy Markdown

@shadowabi shadowabi commented Apr 18, 2026

Issue for this PR

Fixes #23247

Type of change

  • Bug fix

What does this PR do?

The model selector hides models with valid release_date that are not the latest in their family. The default model (from providers.default()) was never marked as visible, so it appeared as selected but was missing from the selector list. Switching away meant you couldn't switch back.

Added a createEffect that marks the fallback model (configuredModel ?? recentModel ?? defaultModel) as visible, matching the existing behavior for the configured model.

How did you verify your code works?

Started backend on :4097 and frontend dev server on :4444. Default model (glm-5.1) appeared in selector, switched to another model, switched back successfully.

Screenshots / recordings

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

The default model (selected via providers.default()) was not being
marked as visible in the model selector. This caused users to be unable
to switch back to the default model after selecting a different one,
because the visible() function hides models with valid release dates
that are not the latest in their family.

Add a createEffect that ensures the fallback model is always visible,
matching the existing behavior for the configured model.
@shadowabi shadowabi requested a review from adamdotdevin as a code owner April 18, 2026 04:16
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions bot added needs:issue and removed needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Default model not visible in model selector after switching

1 participant