Skip to content

Fix model search for provider-qualified IDs - #191

Merged
kingsword09 merged 2 commits into
kingsword09:mainfrom
kevingatera:fix/model-search
Oct 6, 2026
Merged

kingsword09 merged 2 commits into
kingsword09:mainfrom
kevingatera:fix/model-search

Conversation

@kevingatera

Copy link
Copy Markdown
Contributor

Problem

Searching for glm in the model picker returns no results even when GLM models are available. The filter only matches the start of the label, but model IDs start with a provider name, such as opencode-go/glm-5.3.

Changes

Both the session-model picker and default-model picker now match text anywhere in model IDs, names, and aliases, ignoring case. Other menus keep their existing prefix filtering.

Verification

Reproduced on Linux before the fix, then verified that both glm and GLM show matching models after deployment. Regression tests cover aliases, clearing the filter, no matches, and selecting the correct model. The terminal test searches for a provider-qualified model, selects it, and verifies it survives session resume.

@kevingatera
kevingatera marked this pull request as ready for review October 5, 2026 16:53
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

pkg-pr-new preview for commit 5916be2a4d4284b40206b1b4a734aeec015a87ae.

npx --yes https://pkg.pr.new/zcode-app-cli@5916be2

Full repository URL

This preview uses the selected commit. PR updates publish automatically after CI succeeds; kingsword09 can also request a preview with /pkg-pr-new.

Workflow logs

@kingsword09
kingsword09 merged commit a11f6b3 into kingsword09:main Oct 6, 2026
6 checks 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.

2 participants