fix(web): make local/new worktree a real toggle#891
fix(web): make local/new worktree a real toggle#891binbandit wants to merge 4 commits intopingdotgg:mainfrom
Conversation
|
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 Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can scan for known vulnerabilities in your dependencies using OSV Scanner.OSV Scanner will automatically detect and report security vulnerabilities in your project's dependencies. No additional configuration is required. |
|
Closing in favour of #1001 |


Summary
Validation
Before and After
Before
After
Note
Replace environment mode button with a segmented 'Local'/'New worktree' toggle in
BranchToolbarToggleGroupcontaining 'Local' and 'New worktree' options, making the environment mode selection a true two-way toggle.effectiveEnvMode; clicking the other option callsonEnvModeChange('local' | 'worktree'). When a worktree is already active, the label changes to 'Worktree' and both toggles are disabled.extendReplacementRangeForTrailingSpaceis extracted fromChatView.tsxintoChatView.logic.tsand re-exported to avoid duplication.Macroscope summarized 837abe6.