Skip to content

CopilotCLI: Hide plan when switching sessions#311280

Open
DonJayamanne wants to merge 1 commit intomainfrom
don/wispy-mollusk
Open

CopilotCLI: Hide plan when switching sessions#311280
DonJayamanne wants to merge 1 commit intomainfrom
don/wispy-mollusk

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 20, 2026 00:23
@DonJayamanne DonJayamanne self-assigned this Apr 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 0c576529 Current: 8ff54ea7

Changed (25)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
agentSessionsViewer/WithFileChangesList/Dark
Before After
before after
agentSessionsViewer/WithFileChangesList/Light
Before After
before after
agentSessionsViewer/WithBadge/Dark
Before After
before after
agentSessionsViewer/WithBadge/Light
Before After
before after
agentSessionsViewer/CompletedRead/Dark
Before After
before after
agentSessionsViewer/CompletedRead/Light
Before After
before after
agentSessionsViewer/CompletedUnread/Dark
Before After
before after
agentSessionsViewer/CompletedUnread/Light
Before After
before after
agentSessionsViewer/FailedWithDuration/Dark
Before After
before after
agentSessionsViewer/FailedWithDuration/Light
Before After
before after
agentSessionsViewer/FailedWithoutDuration/Dark
Before After
before after
agentSessionsViewer/FailedWithoutDuration/Light
Before After
before after
agentSessionsViewer/WithDiffChanges/Dark
Before After
before after
agentSessionsViewer/WithDiffChanges/Light
Before After
before after
agentSessionsViewer/WithMarkdownBadge/Dark
Before After
before after
agentSessionsViewer/WithMarkdownBadge/Light
Before After
before after
agentSessionsViewer/WithBadgeAndDiff/Dark
Before After
before after
agentSessionsViewer/WithBadgeAndDiff/Light
Before After
before after
agentSessionsViewer/CloudProvider/Dark
Before After
before after
agentSessionsViewer/CloudProvider/Light
Before After
before after
agentSessionsViewer/BackgroundProvider/Dark
Before After
before after
agentSessionsViewer/BackgroundProvider/Light
Before After
before after
agentSessionsViewer/ClaudeProvider/Dark
Before After
before after
agentSessionsViewer/ClaudeProvider/Light
Before After
before after

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 chat input UI behavior so that plan review widgets are cleared when the user switches to a different chat session, preventing plan content from “leaking” across sessions in the workbench chat widget.

Changes:

  • Detect session changes on onDidChangeViewModel and clear plan review widgets when the current session doesn’t match any tracked plan review session resource.
  • Mirrors existing “question carousel” session-switch cleanup behavior for plan reviews.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Clears plan review UI state when switching to a different session resource, aligning behavior with question carousel cleanup.

Copilot's findings

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

Comment thread src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts
@DonJayamanne DonJayamanne marked this pull request as ready for review April 20, 2026 01:24
@DonJayamanne DonJayamanne enabled auto-merge (squash) April 20, 2026 01: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