FEAT: add Plan tab to right panel picker - #5549
Conversation
Add an entry point for the task/plan panel in the right panel's empty state and the "+" add-surface menu, alongside Diff/Browser/Files/ Terminal/Agents. Previously the plan panel could only appear automatically when steps arrived, with no manual way to open it.
|
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 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit be79ea4. Configure here.
| const addPlanSurface = useCallback(() => { | ||
| if (!activeThreadRef) return; | ||
| useRightPanelStore.getState().open(activeThreadRef, "plan"); | ||
| }, [activeThreadRef]); |
There was a problem hiding this comment.
Plan picker skips dismissal clear
Medium Severity
The addPlanSurface function opens the plan panel but doesn't call clearPlanSidebarDismissal. If the plan was previously dismissed, manually opening it from the empty state or "+" menu won't clear the dismissal flag, which can prevent the panel from auto-opening for new plan steps later in the turn.
Reviewed by Cursor Bugbot for commit be79ea4. Configure here.
ApprovabilityVerdict: Needs human review This PR adds a Plan tab to the right panel picker. An unresolved review comment identifies a potential bug: the new You can customize Macroscope's approvability policy. Learn more. |


Summary
onAddPlanhandler throughChatView.tsxthat opens the existingplanright-panel surface (PlanSidebar.tsx) for the active thread.Test plan
pnpm --filter web typecheckNote
Low Risk
Small UI wiring to an existing right-panel surface with no auth, data, or API changes.
Overview
Users can now open the plan/tasks panel on demand from the right panel, instead of relying only on auto-open when plan steps arrive.
ChatViewaddsaddPlanSurface, which callsuseRightPanelStore.open(activeThreadRef, "plan")—the same surface used by existing plan sidebar toggles and auto-open logic. That handler is passed asonAddPlanto both desktop and sheetRightPanelTabs.RightPanelTabsexposes Plan in the empty-state “Open a surface” grid and in the + add-surface menu (withClipboardListicon), matching Browser, Terminal, Files, Diff, and Agents.Reviewed by Cursor Bugbot for commit be79ea4. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add 'Plan' tab to the right panel picker and empty state
Adds a 'Plan' entry (with
ClipboardListicon) to both the Add Surface menu inRightPanelTabsand the right panel empty state. A newonAddPlancallback is wired fromChatViewContentdown toRightPanelTabsandRightPanelEmptyState, opening theplansurface for the active thread when clicked.Macroscope summarized be79ea4.