Skip to content

Fix enter/exit plan mode not reflecting in UI#312487

Merged
TylerLeonhardt merged 2 commits intomainfrom
tyler/violent-planarian
Apr 25, 2026
Merged

Fix enter/exit plan mode not reflecting in UI#312487
TylerLeonhardt merged 2 commits intomainfrom
tyler/violent-planarian

Conversation

@TylerLeonhardt
Copy link
Copy Markdown
Member

The pipeline wasn't hooked up properly for certain input states.

The pipeline wasn't hooked up properly for certain input states.
Copilot AI review requested due to automatic review settings April 25, 2026 05:43
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) April 25, 2026 05:43
@TylerLeonhardt TylerLeonhardt self-assigned this Apr 25, 2026
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

Fixes a UI sync issue where EnterPlanMode/ExitPlanMode-driven permission-mode changes were not reflected when VS Code rebuilt the chat input state from previousInputState.

Changes:

  • Refactors getChatSessionInputState to always wire the “external permission mode” reactive subscription (both fresh and previousInputState restoration paths).
  • Adds a regression test covering previousInputState restoration + external permission updates.
  • Documents the input-state reactive pipeline architecture and invariants.
Show a summary per file
File Description
extensions/copilot/src/extension/chatSessions/vscode-node/claudeChatSessionContentProvider.ts Ensures external permission mode changes update the input UI even when the state is rebuilt from previousInputState.
extensions/copilot/src/extension/chatSessions/vscode-node/test/claudeChatSessionContentProvider.spec.ts Adds coverage for the restored-pipeline scenario to prevent regression.
extensions/copilot/src/extension/chatSessions/claude/AGENTS.md Adds developer documentation explaining the reactive pipeline and the critical subscription placement invariant.

Copilot's findings

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

Comment thread extensions/copilot/src/extension/chatSessions/claude/AGENTS.md Outdated
justschen
justschen previously approved these changes Apr 25, 2026
@TylerLeonhardt TylerLeonhardt merged commit 8ad1c44 into main Apr 25, 2026
26 checks passed
@TylerLeonhardt TylerLeonhardt deleted the tyler/violent-planarian branch April 25, 2026 06:14
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 25, 2026
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.

3 participants