Skip to content

Bug: /model provider counts wrap onto separate lines #571

@dennisonbertram

Description

@dennisonbertram

Summary
The /model provider list became jagged after the expanded model catalog because provider count labels like (4) and (8) wrapped onto their own lines at 80 columns.

Impact
The first model-picker screen is harder to scan and feels much longer than it should, even though it is still provider-grouped.

Steps to reproduce

  1. Open the TUI.
  2. Run /model in an 80-column terminal.
  3. Observe provider count labels wrapping below provider names.

Expected vs actual behavior
Expected: each provider row stays on one line with the count aligned on that row.
Actual: count labels can wrap to a separate line.

Suspected root cause
The model switcher padded rows to the full box width without subtracting the box left/right padding, causing Lip Gloss wrapping.

Proposed fix direction
Account for box padding in highlighted rows and right-aligned provider-count rows.

Test plan / regression coverage
Add a model-switcher regression that fails when provider counts appear on count-only rows or any line exceeds 80 columns.

Related docs/log entries
See docs/logs/engineering-log.md and docs/logs/long-term-thinking-log.md entries dated 2026-04-30.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions