Skip to content

Research: fit long model names in the model selector and name Kimi K3 - #1275

Merged
AnthonyRonning merged 2 commits into
masterfrom
codex-modelsel-maple
Oct 25, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
codex-modelsel-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Long model names broke the Research model selector. On phones, the composer's model button pushed the other composer buttons onto a second row. In the More models list, "DeepSeek V4.1 Flash Uncensored" wrapped onto two lines, with its badge and check mark pushed to the edge. This PR keeps both on one line. A second commit replaces the retired Kimi K2.6 with Kimi K3 in the plan and upgrade copy.

Changes

  • Model button (ModelSelector.tsx):
    • The button counts as 5rem when the composer row wraps (grow basis-20 max-w-max min-w-0).
    • It grows to the full name when there is room and truncates with an ellipsis otherwise.
    • Short labels such as Quick and GPT-OSS keep their natural width.
    • The full name stays in the aria-label and in the open menu.
  • Thinking level (ThinkingLevelSelector.tsx):
    • Below sm, the button shows only its icon, which is already tinted when the level isn't Default.
    • Without this, a non-default level left a small phone almost no room for the model name.
    • The label is also hidden at phone widths where it used to fit, e.g. "High" next to GPT-OSS at 402px.
  • More models list:
    • The menu is w-80 (320px, was 256px).
    • Names stay on one line; truncation is only a fallback.
    • Badges, lock and check never shrink.
    • Badges use leading-4, so rows with a badge are no longer 4px taller than the rest.
  • Kimi K3: 9 strings in UpgradePromptDialog.tsx, pricingConfig.tsx and PromoDialog.tsx. Unchanged on purpose: Agent Mode's migration of a saved kimi-k2-6 preference, and the tests that check K2.6 is rejected.

Verification

Setup:

  • Local mde stack (OpenSecret, billing and flags at master) with Research web in headless Chrome.
  • mde Free and Pro fixture accounts.
  • The flag-gated DeepSeek V4.1 Flash Uncensored model was turned on through a local uncensored_deepseek override.
  • Viewports: 375×667, 402×874 and 1920×1080. Each was checked in a new chat and an existing conversation.
Scenario Before After
Pro, DeepSeek Uncensored or DeepSeek V4.1 Flash, new chat, 375 and 402 Controls on 2 rows 1 row; name truncates ("DeepSee…" at 375, "DeepSeek Unc…" at 402)
Pro, GLM-5.3 Flash, new chat, 375 2 rows 1 row, truncated
Pro, DeepSeek Uncensored + Extra high, new chat, 375 and 402 2 rows; at 375 the name sits alone on the first row 1 row, tinted thinking icon
Pro, DeepSeek Uncensored, conversation, 375 and 402 2 rows 1 row
Free, GPT-OSS + High, new chat, 375 2 rows 1 row
Every composer at 1920 1 row, full names Unchanged
More models list, every viewport Uncensored row on 2 lines (52px); badge rows 36px Every row on 1 line, 32px; no truncation with the check or lock shown

All 51 measured composer states are on one row after the change. The 320px menu stays on screen at 375px.

Checks: the pre-commit hook passed on both commits: Research format, lint (0 errors), typecheck, and 1371 tests.

Not tested:

  • The desktop-only Agent Mode composer, which uses the same model button in the same wrapping row.
  • Dark mode, and a real iPhone.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

AnthonyRonning and others added 2 commits October 25, 2026 08:52
The composer's model chip now grows to the full name when the row has room
and truncates otherwise, so long names such as DeepSeek V4.1 Flash, DeepSeek
Uncensored and GLM-5.3 Flash no longer push the composer controls onto a
second row on phones. Phones show the thinking level as its tinted icon only.

The More models menu is 320px wide and keeps each row on one line, with the
badges, lock and check inline and every row the same height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The upgrade prompts, pricing plans and promo dialog still listed Kimi K2.6,
which is no longer served. They now name Kimi K3, the current Kimi model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Maple development preview: https://ceeabc60.maple-ca8.pages.dev

Commit: 76bd7ae47792607e7f51b4d631dfc63cf704d2ca

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning
AnthonyRonning merged commit 91e8ff5 into master Oct 25, 2026
39 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-modelsel-maple branch October 25, 2026 18:08

This branch was successfully deployed

1 active deployment
pages-pr-1275 — 76bd7ae4 Deployed Oct 25, 2026 by github-actions[bot]
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