Skip to content

FEAT: add Plan tab to right panel picker - #5549

Open
sgottschlich wants to merge 1 commit into
pingdotgg:mainfrom
sgottschlich:t3code/add-task-panel-sidebar-tab
Open

FEAT: add Plan tab to right panel picker#5549
sgottschlich wants to merge 1 commit into
pingdotgg:mainfrom
sgottschlich:t3code/add-task-panel-sidebar-tab

Conversation

@sgottschlich

@sgottschlich sgottschlich commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • Add a "Plan" entry to the right panel's empty-state card grid and the "+" add-surface menu, alongside Diff/Browser/Files/Terminal/Agents.
  • Wires a new onAddPlan handler through ChatView.tsx that opens the existing plan right-panel surface (PlanSidebar.tsx) for the active thread.
  • Previously the plan/task panel only appeared automatically when plan steps arrived, with no manual way to open it as a tab.

Test plan

  • pnpm --filter web typecheck
  • Manually open a thread, open the right panel with no surfaces active, confirm the "Plan" card appears and opens the plan/task panel
  • Confirm "Plan" appears in the "+" add-surface menu when other tabs are already open

Note

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.

ChatView adds addPlanSurface, which calls useRightPanelStore.open(activeThreadRef, "plan")—the same surface used by existing plan sidebar toggles and auto-open logic. That handler is passed as onAddPlan to both desktop and sheet RightPanelTabs.

RightPanelTabs exposes Plan in the empty-state “Open a surface” grid and in the + add-surface menu (with ClipboardList icon), 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 ClipboardList icon) to both the Add Surface menu in RightPanelTabs and the right panel empty state. A new onAddPlan callback is wired from ChatViewContent down to RightPanelTabs and RightPanelEmptyState, opening the plan surface for the active thread when clicked.

Macroscope summarized be79ea4.

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.
@coderabbitai

coderabbitai Bot commented Aug 6, 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: 356db925-3561-4457-93e2-be893d5e1898

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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ 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]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit be79ea4. Configure here.

@macroscopeapp

macroscopeapp Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

This PR adds a Plan tab to the right panel picker. An unresolved review comment identifies a potential bug: the new addPlanSurface function doesn't clear the dismissal flag, which could prevent auto-opening behavior. This substantive issue warrants human review.

You can customize Macroscope's approvability policy. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant