Skip to content

clean up chat copilot session handling by removing unused agent options#307307

Merged
DonJayamanne merged 1 commit intomainfrom
don/significant-marlin
Apr 2, 2026
Merged

clean up chat copilot session handling by removing unused agent options#307307
DonJayamanne merged 1 commit intomainfrom
don/significant-marlin

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 01:26
@DonJayamanne DonJayamanne self-assigned this Apr 2, 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

This PR simplifies chat session state handling by removing the legacy “agent” session option plumbing and an experimental extension-point flag for populating built-in pickers, consolidating restoration behavior around request history / transferred input state.

Changes:

  • Remove useRequestToPopulateBuiltInPickers from IChatSessionsExtensionPoint and delete the exported agentOptionId constant.
  • Always derive initial remote-session input state (mode/model) from the last request’s modelId / modeInstructions when present (no longer gated by an extension-point flag).
  • Delete ChatInputPart logic that synchronized the current mode to a session option and restored mode from the 'agent' session option.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/common/chatSessionsService.ts Removes the experimental extension option and the shared 'agent' option ID constant.
src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts Removes conditional gating and always uses request history to seed remote session input state when possible.
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Removes reading/writing the agent selection via session options.

@DonJayamanne DonJayamanne marked this pull request as ready for review April 2, 2026 01:44
@DonJayamanne DonJayamanne enabled auto-merge (squash) April 2, 2026 01:44
@DonJayamanne DonJayamanne merged commit 559cb3e into main Apr 2, 2026
33 of 34 checks passed
@DonJayamanne DonJayamanne deleted the don/significant-marlin branch April 2, 2026 02:02
@vs-code-engineering vs-code-engineering bot added this to the 1.115.0 milestone Apr 2, 2026
@DonJayamanne
Copy link
Copy Markdown
Contributor Author

@mjbvz /cc

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