Skip to content

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

Closed
sgottschlich wants to merge 3 commits into
pingdotgg:mainfrom
sgottschlich:t3code/add-task-panel-sidebar-tab
Closed

FEAT: add Plan tab to right panel picker#5549
sgottschlich wants to merge 3 commits 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
UI-only wiring to an existing plan surface and dismissal helper; no auth, data, or backend changes.

Overview
Users can now open the plan/task panel on demand from the right panel, instead of relying only on automatic appearance when plan steps arrive.

ChatView adds addPlanSurface, which clears any per-thread plan sidebar dismissal and opens the existing "plan" right-panel surface for the active thread. RightPanelTabs wires this through a new onAddPlan prop in both the empty-state action cards and the "+" add-surface menu (desktop and sheet layouts), with a Plan entry using the clipboard-list icon.

Reviewed by Cursor Bugbot for commit a121143. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add Plan tab to the right panel picker

Adds a 'Plan' entry to both the right panel tab bar menu and the empty state action cards in RightPanelTabs.tsx. When selected, ChatViewContent clears any per-thread plan sidebar dismissal and opens the plan surface in the right panel.

Macroscope summarized a121143.

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: 032f9a8c-e07e-47fb-bc01-d53981611dd4

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.

Comment thread apps/web/src/components/ChatView.tsx Outdated
@macroscopeapp

macroscopeapp Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved d73fc48

This PR adds a UI entry point for an existing 'Plan' panel feature, following the exact same pattern used for other panel types (browser, terminal, diff, files, agents). The changes are purely additive, self-contained, and don't introduce new runtime behavior.

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

addPlanSurface opened the plan panel without clearing the dismissal
flag, so if the plan had been dismissed earlier in the turn, opening
it manually from the empty state or "+" menu wouldn't clear it and
could block the panel from auto-opening for later plan steps.
@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 7, 2026

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

Reviewed by Cursor Bugbot for commit a121143. Configure here.

clearPlanSidebarDismissal(activeThreadKey);
}
useRightPanelStore.getState().open(activeThreadRef, "plan");
}, [activeThreadKey, 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 tab opens removed surface

High Severity

addPlanSurface opens the plan right-panel kind and clears dismissal via clearPlanSidebarDismissal, but that surface was removed in rightPanelStore v9. Plans now render inline, migration still drops plan surfaces, rightPanelContent has no plan branch, and PlanSidebar / the dismissal helper are gone—so the new Plan picker entry cannot open a working plan tab.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a121143. Configure here.

@sgottschlich

Copy link
Copy Markdown
Author

Superseded by #5558, which deliberately removed the Plan right-panel surface and replaced it with inline, collapsible plan rows in the transcript. After that merge, this PR's picker entry targets a surface kind that no longer exists, so restoring it would undo the current UX architecture. Closing rather than reintroducing the removed sidebar.

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

Labels

size:S 10-29 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