Skip to content

Keep selected mobile options visible while locked - #31628

Merged
AmethystLiang merged 1 commit into
mainfrom
fix-grayed-out-mobile-picker
Oct 21, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
fix-grayed-out-mobile-picker

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​54 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​35

Problem

When an agent is working, locked mobile settings looked grayed out—including the selected option—making it hard to see the active choice.

Solution

Keep selected settings visually clear while preventing changes, and show an “Agent is working” notice explaining when model settings unlock. The notice clears when opening Permissions.

ELI5

Locked choices now stay readable, so you can still tell what is selected while the agent finishes its turn.

What Changed

Selected disabled rows and segmented-control options retain their selected appearance. Unselected disabled labels are muted instead of fading the whole control. Added a lock notice for locked model settings.

Why

This fixes the mobile picker visibility issue without allowing changes during an active agent turn.

Linked Issue

If you do not have one and are an outside contributors, your PR wiil be ignored. Refs is not sufficient. Link an actual issue

Fixes #

Visual Proof

Captured from the real mobile web UI in a hidden Electron renderer at 430 × 932, using demo session data with an active agent turn.

Before After
Before: dimmed model choices After: readable choices, highlighted current model, and working notice

Rendered checks confirmed that model choices remain disabled during the turn, Permissions remains available, and model choices unlock and the notice clears when the turn completes.

Testing

Updated MobileNativeChatSessionOptionPickers.test.ts to verify the working notice appears while settings are locked and clears when opening Permissions.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

Option rows now apply disabled styling to labels rather than the entire row, and selected choice rows use the composer-control background. The segmented control track no longer applies disabled opacity. The option picker displays an “Agent is working” lock notice outside the Permissions page while the agent is working. A test checks that the notice disappears after navigation to Permissions.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 0af84

VoiceOver users may not hear why model settings became locked while the picker is open.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the problem, solution, user-visible changes, testing update, and visual proof. However, the required Linked Issue section is incomplete because it contains only "Fixes #" with… Add the actual linked issue reference in the Linked Issue section, such as "Fixes #12345". Confirm the remaining unchecked checklist items or explain why they do not apply.
Docstring Coverage Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: preserving selected mobile options while they are locked.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, solution, user-visible changes, testing update, and visual proof. However, the required Linked Issue section is incomplete because it contains only "Fixes #" without an issue number or link.

Resolution

Add the actual linked issue reference in the Linked Issue section, such as "Fixes #12345". Confirm the remaining unchecked checklist items or explain why they do not apply.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12bbab83-9f1f-4ddc-a5b9-155dfd012c59
📥 Commits

Reviewing files that changed from the base of the PR and between 47bb876 and 0af842c.

📒 Files selected for processing: 4
  • mobile/src/components/MobileSegmentedControl.tsx
  • mobile/src/session/MobileNativeChatSessionOptionPickers.test.ts
  • mobile/src/session/MobileNativeChatSessionOptionPickers.tsx
  • mobile/src/session/MobileNativeChatSessionOptionRows.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@AmethystLiang
AmethystLiang merged commit 78bc1e5 into main Oct 21, 2026
22 checks passed
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