Skip to content

feat: apply selected option values to active chat sessions on update#308931

Merged
DonJayamanne merged 1 commit intomainfrom
don/moderate-basilisk
Apr 10, 2026
Merged

feat: apply selected option values to active chat sessions on update#308931
DonJayamanne merged 1 commit intomainfrom
don/moderate-basilisk

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

@DonJayamanne DonJayamanne commented Apr 10, 2026

for #288457 (comment)

Initializing selected property after handling onDidChange doesn't work, I can see the items in the dropdown have change, however the selected value in the UI is still the old value @mjbvz @DonJayamanne
This is a blocker in multi-root workspace or empty workspace

@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: ce9a6650 Current: 40e4bf6a

Changed (4)

agentSessionsViewer/FailedWithoutDuration/Dark
Before After
before after
agentSessionsViewer/FailedWithoutDuration/Light
Before After
before after
agentSessionsViewer/WithBadgeAndDiff/Dark
Before After
before after
agentSessionsViewer/WithBadgeAndDiff/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

Updates the workbench chat sessions option-group handling so that when providers refresh option groups, selected values are propagated into already-active sessions (keeping session option caches in sync with the latest provider state).

Changes:

  • Apply option-group selected values to active sessions of the same session type when option groups are updated.
  • Avoid firing onDidChangeSessionOptions during this sync to prevent extension-host feedback loops.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.ts Propagates updated option-group selections into active session option caches during setOptionGroupsForSessionType.

Copilot's findings

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

@DonJayamanne DonJayamanne marked this pull request as ready for review April 10, 2026 03:35
@DonJayamanne DonJayamanne enabled auto-merge (squash) April 10, 2026 03:37
@DonJayamanne DonJayamanne merged commit 1028f06 into main Apr 10, 2026
30 checks passed
@DonJayamanne DonJayamanne deleted the don/moderate-basilisk branch April 10, 2026 03:40
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 10, 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