Skip to content

feat(composer): shorten model and effort labels in narrow toolbars - #1473

Merged
nixuuu merged 6 commits into
devfrom
fix/mobile-model-labels
Nov 29, 2026
Merged

nixuuu merged 6 commits into
devfrom
fix/mobile-model-labels

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

A long model name and reasoning effort can crowd the composer when context usage, speed or send controls take up space. On mobile, the toolbar can scroll the start of the model name out of view.

The web and desktop composers use shorter labels when less than 22 rem remains for model and effort after reserving room for speed and the advisor. On native mobile, the composer measures the full row against the space between the pinned actions. New, existing and side threads share the compact model formatter already used in the reasoning picker.

Copy audit

GPT-6.2-Astra → 6.2 Astra and Extra high → XHigh leave more room for the selected values. Full names are available in the pickers and accessibility labels. The effort bars preference is preserved.

Verification

  • In Chromium, checked the composer at 320 and 390 px, and at a desktop viewport with the chat column resized between 280 and 650 px. Checked the model and effort popovers, the 94% context indicator, speed control, bars preference, and short and long custom labels.
  • On an Android emulator with a sample model catalog, a 328 dp composer showed 6.2 Astra and XHigh; widening to 450 dp restored the full labels. Also checked a long custom model, bars, Steer, a scrollable row with speed, accessibility names and opening both pickers.
  • With Advisor and speed visible, verified both short labels in a 390 px browser and a 650 px desktop column, full labels in a 950 px column, and opening the advisor picker. The Android emulator showed both short labels at 450 dp with Advisor and restored full labels at 650 dp.
  • Web and mobile typechecks and scoped lint passed. An iOS simulator was unavailable. Repository-wide checks run in CI.

@nixuuu
nixuuu marked this pull request as ready for review November 29, 2026 15:26
@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 15:26
# Conflicts:
#	apps/mobile/src/features/new-thread/NewThreadScreen.tsx
#	apps/web/src/lib/features/models/ModelPicker.svelte
#	docs/mobile.md
@nixuuu
nixuuu merged commit 1a35cc0 into dev Nov 29, 2026
25 checks passed
@nixuuu
nixuuu deleted the fix/mobile-model-labels branch November 29, 2026 15:51
nixuuu added a commit that referenced this pull request Nov 29, 2026
## Summary

- Use the short model and reasoning effort labels whenever the composer
renders text in its picker buttons on web, desktop, and native mobile.
- Preserve full names in the picker panels and accessibility labels. The
toolbar can still use icons or bars in tight layouts.

## Verification

- Chromium rendered the shared web/desktop composer at 390, 720, and
1280 px with both Stop and Queue visible in their respective states. The
labels matched at 351 and 353 px of picker space, on either side of the
former 22 rem threshold.
- Checked full accessible names, full names inside the pickers, model
selection, and truncation.
- Web and mobile typechecks passed. Scoped lint and `git diff --check`
passed.
- The native runtime check could not reserve the Android emulator.
Repository-wide checks run in CI.

## Copy audit

`GPT-6.2-Astra` → `6.2 Astra` and `Extra high` → `XHigh` on the composer
buttons at every text width. These are the existing short value labels.
Verified short, typical, and long model names and full accessible names.

Fixes: #1473
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.

1 participant