Skip to content

feat(mobile): add Plan Mode to new task settings - #7266

Open
tomhhealy wants to merge 1 commit into
pingdotgg:mainfrom
tomhhealy:feat/mobile-plan-mode
Open

feat(mobile): add Plan Mode to new task settings#7266
tomhhealy wants to merge 1 commit into
pingdotgg:mainfrom
tomhhealy:feat/mobile-plan-mode

Conversation

@tomhhealy

@tomhhealy tomhhealy commented Aug 16, 2026

Copy link
Copy Markdown

What Changed

  • Added a Plan Mode toggle to the mobile new-task settings to improve user experience.
  • Positioned the toggle after Fast Mode when available, or at the end of the provider options otherwise.
  • Persisted explicit Build/Plan selections in the draft, including offline queued tasks.
  • Reset interaction mode after submission so the next task starts in Build mode.
  • Kept existing-thread settings unchanged.

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).

BeforeAfter
Thread settings before Thread settings after

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.ts
  • 4 test files passed, 21 tests passed.

Checklist

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

Note

Add Plan Mode toggle to new task settings on mobile

  • Adds a "Plan Mode" switch to the new task thread settings sheet, placed immediately after the "Fast Mode" option, allowing users to toggle ProviderInteractionMode between default and plan per task.
  • Introduces resolveNewTaskInteractionMode and interactionModeFromPlanToggle helpers in new-task-interaction-mode.ts to centralize mode resolution and UI toggle mapping.
  • Removes the legacy planModePreferenceLoaded flag from NewTaskFlowProvider; interaction mode is now derived solely from the draft or queued task value.
  • After task submission, clearComposerDraftContent now clears interactionMode from the draft so subsequent tasks revert to the default mode.

Macroscope summarized c54c744.

- Persist explicit interaction mode selections
- Reset one-task settings after sending a draft
- Cover mode resolution and settings ordering with tests
@github-actions github-actions Bot added the vouch:unvouched PR author is not yet trusted in the VOUCHED list. label Aug 16, 2026
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

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: 8b8a6e8b-58c0-4fb4-b83a-54ea9b71504c

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.

@github-actions github-actions Bot added the size:L 100-499 changed lines (additions + deletions). label Aug 16, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: 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.

@tomhhealy tomhhealy mentioned this pull request Aug 16, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant