Skip to content

Improvement: the chat model picker barely shows which provider serves a model, and its panel changes width while scrolling #5140

Closed

Description

@yannickmonney

Summary

The pilot's organization offers models from more than one provider, OpenRouter among them. In the chat composer's model picker, the provider is a small, faded suffix after each model's name. The list is not grouped or filterable by provider, and the trigger names the model without its provider, so the same model from two providers is hard to tell apart. Separately, the model list's panel has no width of its own. The list renders only the rows in view, and the panel sizes itself to them, so it widens and narrows while scrolling. Both follow from the code below; neither was reproduced in a browser for this issue.

The report

Anbieterauswahl der LLMs nicht optimal sichtbar bzw. die Unterscheidung mit den anderen vorhandenen LLMs von Openrouter z. B. im Model picker im Chat. Zudem hat der Picker keine fixe Breite, was dazu führt, dass die Breite sich ständig ändert beim Durchscrollen.

"The choice of LLM provider is not clearly visible, nor is the distinction from the other LLMs available from OpenRouter, e.g. in the chat model picker. Also the picker has no fixed width, so its width keeps changing while scrolling."

What the repository says (main at b2560c2d7)

The provider in the composer's picker (services/platform/app/features/chat/components/composer-selection-picker.tsx, used by composer.tsx:725):

  • Each row is the model's label followed by the provider's display name in text-muted-foreground/70 text-xs (:114-121). The rows form one flat list in the order the catalog arrives in; the client does not sort it, and the server's order was not examined. Search matches the model's name and id and the provider's name and slug (:113).
  • The trigger and the Model section's trailing text show the model's label only (:226, :353-358).
  • Contrast, computed from the design tokens rather than measured: the muted foreground at 70% on the submenu's bg-card comes to about 2.8:1 in the light theme (packages/ui/src/globals.css:223, :238) and 4.2:1 in the dark theme (:374, :390). WCAG 2.1 AA asks 4.5:1 for text of this size.

The same question is answered three ways elsewhere.

  • The arena's picker puts each provider in its own labelled section (services/platform/app/features/chat/components/composer-model-picker.tsx:140-186, used by arena/arena-model-picker.tsx:41).
  • An automation's llm step lists each model id once, with the providers that serve it as its description (services/platform/app/features/automations/hooks/use-llm-model-options.ts:24-49). An agent node shows the provider as the description (services/platform/app/features/automations/components/agent-node-fields.tsx:172-187).
  • Manual box CHAT-F38 still expects the composer's picker to show "each provider is its own section headed by its display name" (services/platform/tests/manual/suites/chat.md:513-519). Only the arena picker does.

The width.

  • The Model section is a submenu whose content class is min-w-60, with no width and no maximum width (composer-selection-picker.tsx:207-219). The shared submenu adds min-w-[8rem] (packages/ui/src/components/overlays/dropdown-menu.tsx:321-335). The panel therefore takes the width of its content.
  • The list inside is virtualized (services/platform/app/features/chat/components/picker-search-list.tsx:88-94). Only the rows in view, plus overscan, are in the DOM (:178-226), in a box four rows tall (:141-146). Every row is w-full with a truncating label (:213-219). So the widest rendered row sets the panel's width, and that row changes as the list scrolls.
  • Virtualization arrived with dac9bf2 (2026-10-06, "keep large collections responsive", first released in v0.5.75). Its browser test puts the list in a fixed 240px box (picker-search-list.browser.test.tsx:13, :24), where a change of width cannot show.
  • The same list serves the Skills section (composer-selection-picker.tsx:305-333), whose rows carry two-line descriptions.

What was not examined

  • A browser at the pilot's catalog size, and the order the server lists models in.
  • How OpenRouter's model labels read next to a direct provider's, for example whether they carry a vendor prefix.

Options (no preference stated)

For the provider:

  1. Group the composer's list by provider, as the arena picker already does.
  2. A provider filter or tabs above the list.
  3. Keep the flat list, give the provider a full-contrast badge or logo, and show the provider in the trigger when more than one provider offers the picked model's id.

For the width:

  1. A fixed width for the section panels, with truncated labels and the full name on hover and focus.
  2. Measure the widest label across the whole list once, not just the rendered rows, and keep that width.

Related

#5063 (OpenRouter models without tools in chat), #5033 (who made a skill, in the same picker), #4765 (an automation's model picker), #5064 (labels of a custom gateway provider), #5044 (pilot findings).

Activity

  1. added
    priority: medium
    improvement
    service: platform
    on Oct 30, 2026
  2. added
    agent-ready
    on Nov 1, 2026
  3. added
    bug
    and removed
    improvement
    on Nov 1, 2026
  4. added a commit that references this issue on Nov 1, 2026
    2165375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions