Skip to content

AH: use plan widget instead of questions carousel when exiting plan mode#322495

Open
justschen wants to merge 3 commits into
mainfrom
justin/tapu-fini
Open

AH: use plan widget instead of questions carousel when exiting plan mode#322495
justschen wants to merge 3 commits into
mainfrom
justin/tapu-fini

Conversation

@justschen

@justschen justschen commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

uses plan mode widget that let's users inspect plan before letting it continue with implementation.
Screenshot 2026-06-22 at 8 59 35 PM
Screenshot 2026-06-23 at 11 15 05 AM

Copilot AI review requested due to automatic review settings June 23, 2026 04:01

Copilot AI 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.

Pull request overview

This PR updates the Agent Host “exit plan mode” flow to use the existing chat plan review widget (instead of the questions carousel), enabling users to inspect the plan (and optionally open the full plan file) before continuing with implementation.

Changes:

  • Introduces an optional planReview payload on ChatInputRequest (via a typed extension) and emits it from the Copilot agent session for exitPlanMode.request.
  • Updates the workbench Agent Host session handler to render ChatPlanReviewData for plan-review input requests, and adds coverage for dispatch/clearing behavior.
  • Adjusts plan review widget styling (borders/focus styling/background behavior) and updates associated tests.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostChatContribution.test.ts Adds browser-side tests ensuring plan-review requests render the plan widget (not the carousel), dispatch completion correctly, and clear docked UI on remote completion.
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css Updates plan review widget border/background/focus styling and adapts surface background for agents window/editor contexts.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.ts Adds plan-review input request handling to produce ChatPlanReviewData, translate completions to protocol answers, and clear the input’s docked plan review widget.
src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts Updates plan-mode tests to validate the new plan-review payload and ensures no separate markdown “plan summary” part is emitted.
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts Changes exitPlanMode.request to emit a plan-review input request (with actions + optional plan URI) rather than a markdown+question carousel flow.
src/vs/platform/agentHost/common/agentHostPlanReview.ts Adds shared types for the plan-review payload attached to chat input requests.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 1

@justschen justschen requested a review from DonJayamanne June 23, 2026 18:24
@justschen justschen marked this pull request as ready for review June 23, 2026 18:24
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.

2 participants