Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): hide inapplicable model settings in the picker #6426

ClosedSergeSerb2(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/6426/headopened View on GitHub

What Changed

The mobile model picker sheet no longer keeps a union of every provider setting on screen. It now shows only the options the selected (or staged) model actually supports, and renders short catalogs — reasoning, context window, service tier, optimize-for, and runtime — as inline chips instead of extra disclosure rows.

Unsupported controls are omitted rather than greyed out. Switching models animates the settings cluster so rows appear and disappear without a jump. Catalogs longer than six choices still open the stacked submenu.

This is the same picker cleanup we shipped in T3 Pretty, re-implemented on current pingdotgg/t3code main. The iOS composer menu already skipped empty select catalogs; this brings the sheet (Android, new-task draft, and the fallback sheet) in line.

Why

Greyed-out Reasoning, Context Window, Fast Mode, and Service Tier rows made the sheet feel cluttered, especially on models like Cursor Auto that only expose Optimize For. Hiding inapplicable settings and putting the remaining choices on chips keeps the panel compact without removing any capability.

UI Changes

Before: Every possible setting stayed visible. Unsupported rows were dimmed with a chevron or a dead toggle, so picking Auto still showed Reasoning / Context Window / Fast Mode / Service Tier as disabled chrome. Runtime opened a second panel.

After: Only advertised settings render. Reasoning and similar short selects are chip rows on the main sheet (no extra panel). Runtime uses the existing short labels (Approve / Edits / Auto / Full). A model with no extra options shows just Runtime and Done.

Screenshots were not captured in this pass.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Test plan

  • vp test run on apps/mobile/src/features/threads/thread-settings-sheet-state.test.ts and thread-settings-menu.test.ts (16 tests)
  • vp run --filter @t3tools/mobile typecheck
  • iOS: open the new-task model sheet, pick Cursor Auto, confirm only Optimize For + Runtime chips appear
  • iOS: switch to a Claude/Codex model and confirm reasoning/context chips appear without a layout jump
  • Android: same sheet from an existing thread composer

Model: grok-4.6

Made with Cursor

Note

Hide inapplicable model settings and render short select options as inline chips in thread settings

  • The settings sheet now filters visible options using visibleSheetOptionDescriptors, showing only descriptors the selected model advertises; empty select catalogs and unsupported options are hidden.
  • Select descriptors with 6 or fewer choices render as inline ChoiceChipRow chips with immediate selection instead of navigating to a submenu; longer catalogs still use DisclosureRow.
  • The Runtime setting is converted from a submenu to an inline chip row that applies the change immediately.
  • Switching models triggers a LayoutAnimation (180ms easeInEaseOut) so the settings area transitions smoothly.
  • Behavioral Change: disabled visual states are removed from DisclosureRow and SwitchRow; unsupported rows are now suppressed upstream rather than shown as disabled.
Macroscope summarized 1780a8a.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 04ed932e-553e-47ae-ab4c-b97505a7fa5d

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. 💡 Codex Review

      Here are some automated review suggestions for this pull request.

      Reviewed commit: 1780a8adca

      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review".

      If Codex has suggestions, it will comment; otherwise it will react with 👍.

      Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

      @@ -556,7 +571,15 @@
      556571
      557- <View style={{ paddingBottom: insets.bottom + 12 }}>
      558- {descriptorTemplate.map((entry) => {
      559- const live = displayedDescriptors.find(
      560- (descriptor) => descriptor.label === entry.label,
      561- );
      562- if ((live?.type ?? entry.type) === "select") {
      572+ <View className="pt-1" style={{ paddingBottom: insets.bottom + 12 }}>
      573+ {visibleDescriptors.map((descriptor) => {
      574+ if (descriptor.type === "select") {
      575+ if (usesInlineSelectChoices(descriptor)) {
      576+ const currentValue = getProviderOptionCurrentValue(descriptor);
      577+ return (
      578+ <ChoiceChipRow
      579+ key={descriptor.id}
      580+ label={descriptor.label}
      581+ selectedId={typeof currentValue === "string" ? currentValue : undefined}
      582+ choices={selectableChoices(descriptor).map((choice) => ({
      583+ id: choice.id,
      584+ label: choice.label,
      585+ }))}

      P2 Badge Preserve the display of hidden active choices

      When the current reasoning value was set elsewhere to ultracode, selectedId remains ultracode while selectableChoices() intentionally removes that choice. The new chip row therefore renders with no selected option, whereas the previous disclosure row still displayed “Ultracode”; preserve a read-only indication or fallback disclosure for an active filtered value so the picker accurately shows the current state.

      AGENTS.md reference: AGENTS.md:L73-L73

      Useful? React with 👍 / 👎.

    4. Approvability

      Verdict: Needs human review

      This PR changes runtime UI behavior (hiding inapplicable settings instead of showing them disabled, adding inline chip selection). An unresolved review comment identifies an edge case where filtered-out active values won't be displayed in the new chip UI. The scope of behavior changes and the identified issue warrant human review.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. Note

      🤖 GPT-5.6 Sol responding on behalf of Theo

      We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

      Filtering out inapplicable settings already landed in #6224. This branch's remaining changes are inline choice chips and a layout animation without screenshots or a recorded mobile test, so we are not keeping that separate visual change.

      If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.

Sign in to join this conversation.