Skip to content

[Bug]: Model picker paints blank rows and skips their jump shortcuts #31579

Closed

Description

@kaovilai

Description

In the composer model picker, some model entries render as completely blank rows: a gap about one row tall between two visible models, with no name, no shortcut hint, no badge. The hidden entries still hold jump shortcuts, so the visible rows are numbered non-contiguously (I saw ⌘1, ⌘2, ⌘4, ⌘6 on four visible rows for an instance that reported six models). Pressing the missing shortcut selects something the user cannot see.

This is not intentional spacing: each gap is exactly one list-item slot, and the surrounding rows keep the slot's jump number.

Steps to reproduce (best guess; needs confirmation)

  1. Configure a provider instance (I saw this with a Claude Code instance backed by an Anthropic-compatible gateway with model discovery on) whose reported model list mixes several current models with legacy/unavailable entries. Around six entries was enough.
  2. Open the model picker for that instance: single provider tab, shortcuts/rail visible, search box focused with an empty query.
  3. Two of the entries do not paint. The model list shows blank ~40px slots and the jump hints skip the numbers that belong to them (⌘1, ⌘2, ⌘4, ⌘6).

If that does not reproduce, it may need the specific list shape that yields legacy/unavailable entries alongside current ones for the same instance.

Expected

Either the model renders as a normal row, or it is absent from the list entirely, and the displayed jump numbers are contiguous across the visible rows.

Evidence

  • Pixel scan of the screenshot: both gap bands are pure list background (RGB ~19,19,19) across the whole list pane. No text, icon, badge, or shortcut hint is drawn. Each gap is the height of one normal row slot (~38-40px), not extra padding.
  • The four visible rows carry ⌘1, ⌘2, ⌘4, ⌘6, so two entries that paint nothing were still assigned ⌘3 and ⌘5.
  • There is no intentional spacer in this list: an item is either a ModelListRow or the "Legacy models" toggle (apps/web/src/components/chat/ModelPickerContent.tsx, apps/web/src/components/chat/ModelListRow.tsx). An empty item slot therefore means a row that failed to paint, not layout.
  • Two plausible paths, both leave the entry in the item data while painting nothing:
    • the disabled/unavailable row path, where ModelListRow is wrapped in a Tooltip render prop (apps/web/src/components/chat/ModelListRow.tsx, around the disabledReason branch);
    • recycled cells in the LegendList virtualizer (recycleItems in ModelPickerContent.tsx).
  • The jump numbers being assigned to entries that do not paint rhymes with [Bug]: Project picker jump shortcuts keep their unfiltered numbers after typing #31153 / fix(web): project picker jump shortcuts follow the filtered rows #31159 (project picker numbered rows before filtering) and [Bug]: Model picker assigns duplicate keyboard shortcuts #4432 (shortcut labels computed separately from the rows).

Screenshots

Reported screenshot, annotated. Red boxes mark the two dead slots; the amber box marks the shortcut-hint column. The four visible rows read ⌘1 ⌘2 ⌘4 ⌘6.

Annotated model picker screenshot: two blank one-row slots between visible models, jump hints reading cmd-1, cmd-2, cmd-4, cmd-6

Minimal schematic. Same six entries on both sides: expected contiguous numbering, versus the observed dead slots.

Expected vs actual: six model entries numbered cmd-1 to cmd-6, versus two empty row slots holding cmd-3 and cmd-5

Notes

Environment

  • Desktop client (macOS), empty search query, a single provider instance tab.

Note

Responses generated with Claude (model: DeepSeek-V4.1-Flash-1017)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions