Repository navigation
Keep selected mobile options visible while locked - #31628
Conversation
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
12bbab83-9f1f-4ddc-a5b9-155dfd012c59
📒 Files selected for processing: 4
mobile/src/components/MobileSegmentedControl.tsxmobile/src/session/MobileNativeChatSessionOptionPickers.test.tsmobile/src/session/MobileNativeChatSessionOptionPickers.tsxmobile/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.
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.
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.tsto verify the working notice appears while settings are locked and clears when opening Permissions.AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)