You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): adapt model picker width and show catalog counts - #1290
The Web composer model list is fixed at 264px, which truncates similar model names even when the screen has enough room. Size the model card to its content, open it on the side with more available space, and wrap names when that space is exhausted. Keep the existing Thinking card and narrow-screen replacement/back behavior.
- Model card: fixed 264px; long names ellipsized+ Model card: content width, bounded by available viewport space; long names wrap- 模型+ 模型 (13) / 模型 (4 / 13) while searching
The count covers the current model catalog, with matching / total counts during search. No catalog, selection protocol, or Host changes.
Evidence
Screenshots use the actual ModelSelect and shared primitives in an isolated browser preview with synthetic catalog data. No user conversations, credentials, or account data are included.
Before
After
Filtered count
Narrow screen with an unbroken long name
Validation performed:
Reproduced the baseline: 9 of 13 sample names clipped at 264px; the same catalog has no clipped names after the change.
Exercised 768px and 1298px layouts, both left/right placement, short catalogs (264px minimum), and a 390px narrow layout with an unusually long name; no model-card horizontal overflow.
Checked total, filtered, and zero-match counts; search clearing, ArrowDown + Enter selection, favorite toggling, and narrow-screen Back.
Bundled the isolated preview successfully; staged-file Prettier hook and git diff --check passed.
No automated Web page tests added, per repository guidance. Full application/Host integration and full-repository checks were not run for this local UI change.
Merge Danger
Door: Two-way; revert this commit to restore the previous layout.
Blast Radius: Web model-picker presentation and placement only.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Applicability reference: AGENTS.md: # Repository Guidelines `npm start` / `npm start web` rebuild and relaunch the user's Desktop / Web and may restart the shared Host; `npm stop` stops all local codexhost services across worktrees.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Web composer model list is fixed at 264px, which truncates similar model names even when the screen has enough room. Size the model card to its content, open it on the side with more available space, and wrap names when that space is exhausted. Keep the existing Thinking card and narrow-screen replacement/back behavior.
The count covers the current model catalog, with matching / total counts during search. No catalog, selection protocol, or Host changes.
Evidence
Screenshots use the actual
ModelSelectand shared primitives in an isolated browser preview with synthetic catalog data. No user conversations, credentials, or account data are included.Validation performed:
git diff --checkpassed.Merge Danger
Door: Two-way; revert this commit to restore the previous layout.
Blast Radius: Web model-picker presentation and placement only.