feat(mobile): add Plan Mode to new task settings - #7266
Conversation
- Persist explicit interaction mode selections - Reset one-task settings after sending a draft - Cover mode resolution and settings ordering with tests
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
ApprovabilityVerdict: Needs human review This PR adds a new Plan Mode toggle feature to new task settings, introducing new user-facing behavior. New capabilities warrant human review even when implementation is straightforward. You can customize Macroscope's approvability policy. Learn more. |
What Changed
Why
Plan Mode was previously available on mobile only through a legacy preference-gated composer shortcut. This made it undiscoverable or unavailable for many users even though new tasks already support an interaction mode.
Putting the control in new-task settings makes Plan Mode consistently accessible while keeping the change scoped to task creation.
UI Changes
Original thread settings on the left, newly introduced "Plan mode" toggle switch on the right (this PR).
Testing
vp test run apps/mobile/src/features/threads/legacy-plan-mode.test.ts apps/mobile/src/features/threads/new-task-interaction-mode.test.ts apps/mobile/src/features/threads/thread-settings-options.test.ts apps/mobile/src/state/use-composer-drafts.test.tsChecklist
Note
Add Plan Mode toggle to new task settings on mobile
ProviderInteractionModebetweendefaultandplanper task.resolveNewTaskInteractionModeandinteractionModeFromPlanTogglehelpers in new-task-interaction-mode.ts to centralize mode resolution and UI toggle mapping.planModePreferenceLoadedflag fromNewTaskFlowProvider; interaction mode is now derived solely from the draft or queued task value.clearComposerDraftContentnow clearsinteractionModefrom the draft so subsequent tasks revert to the default mode.Macroscope summarized c54c744.