Skip to content

sessions: add chat background management actions - #332569

Merged
TylerLeonhardt merged 1 commit into
mainfrom
tyler/agents-chat-background-controls
Aug 25, 2026
Merged

TylerLeonhardt merged 1 commit into
mainfrom
tyler/agents-chat-background-controls

Conversation

@TylerLeonhardt

Copy link
Copy Markdown
Member

Summary

  • add Change Background Layout... to the Agents chat empty-space context menu and Command Palette
  • add Clear Background Image for the current color theme, visible only while that theme has a valid configured image
  • keep menu visibility reactive across image-setting and color-theme changes
  • derive layout IDs and picker ordering from the background style map so Settings metadata and the quick pick cannot drift
  • document both management workflows in Agents accessibility help

Testing

  • npm run compile
  • .\scripts\test.bat --run src\vs\sessions\services\chatBackground\test\browser\chatBackgroundService.test.ts --run src\vs\sessions\contrib\chat\test\browser\chatView.test.ts (20 passing)
  • npm run typecheck-client
  • targeted hygiene for all five changed files
  • real Agents-window validation of context-menu visibility, Command Palette visibility, layout selection, current-layout focus, and clearing the active theme setting

Notes

The full npm run hygiene wrapper currently hits the existing Windows C:\C:\... path-resolution issue before checking source. Running the same hygiene engine directly against every changed file passes.

Expose layout selection and current-theme image clearing from the Agents chat context menu and Command Palette. Keep action visibility reactive to the configured theme image and derive layout IDs from the style map so Settings and picker metadata cannot drift.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings August 25, 2026 15:27

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

Adds background management actions to Agents chats with reactive visibility and accessibility guidance.

Changes:

  • Adds layout selection and theme-specific image clearing commands.
  • Derives layout options and Settings metadata from shared definitions.
  • Tracks configured-image state across setting and theme changes.
Show a summary per file
File Description
src/vs/sessions/common/contextkeys.ts Adds configured-image context state.
src/vs/sessions/contrib/chat/browser/chat.contribution.ts Registers actions, menus, picker, and metadata.
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts Documents background workflows.
src/vs/sessions/services/chatBackground/browser/chatBackgroundService.ts Implements clearing, layout updates, and reactive state.
src/vs/sessions/services/chatBackground/test/browser/chatBackgroundService.test.ts Tests new service behavior and context state.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@TylerLeonhardt
TylerLeonhardt marked this pull request as ready for review August 25, 2026 15:43
@TylerLeonhardt
TylerLeonhardt enabled auto-merge (squash) August 25, 2026 15:43
@TylerLeonhardt
TylerLeonhardt merged commit 153573d into main Aug 25, 2026
28 checks passed
@TylerLeonhardt
TylerLeonhardt deleted the tyler/agents-chat-background-controls branch August 25, 2026 16:45
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 25, 2026
@TylerLeonhardt TylerLeonhardt mentioned this pull request Aug 28, 2026
3 tasks done
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants