Skip to content

Add customizable Agents chat backgrounds - #332435

Merged
TylerLeonhardt merged 3 commits into
mainfrom
tyler/agents-chat-backgrounds
Aug 24, 2026
Merged

TylerLeonhardt merged 3 commits into
mainfrom
tyler/agents-chat-backgrounds

Conversation

@TylerLeonhardt

@TylerLeonhardt TylerLeonhardt commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add experimental, theme-specific image settings for Agents window chat backgrounds
  • support repeat, stretch, centered, edge, and corner image layouts
  • add Change Background... to the Command Palette and empty-chat-space context menus
  • keep regular editor Chat and no-background Agents chats visually unchanged
  • add background-gated frosted response/composer surfaces and opaque metadata controls
  • suppress decorative backgrounds and their action while a high-contrast theme is active

Screenshots

New and active chat in light and dark themes

Light and dark Agents chat backgrounds

Response and control treatment

Background-aware response and controls

Testing

  • npm run eslint -- <affected TypeScript files>
  • npm run stylelint -- src/vs/sessions/contrib/chat/browser/media/chatView.css
  • scripts\\test.bat --run src/vs/sessions/contrib/chat/test/browser/chatView.test.ts --run src/vs/sessions/services/chatBackground/test/browser/chatBackgroundService.test.ts — 19 passing
  • npm run typecheck-client
  • npm run valid-layers-check
  • real Agents window validation across Light 2026, Dark 2026, Dark Modern, Solarized Light/Dark, Kimbie Dark, and Tomorrow Night Blue
  • verified regular editor Chat is unaffected

TylerLeonhardt and others added 2 commits August 24, 2026 13:49
Add experimental theme-specific chat background settings, layout controls, and background-aware surfaces for the Agents window. Keep configuration state in a service while views own DOM application and context-menu behavior.

Co-authored-by: Copilot <[email protected]>
Keep top-level transcript rows transparent across themes, match lower input controls to the opaque chat-pill treatment, and add response-card bottom spacing without affecting pending divider rows.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings August 24, 2026 22:07

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 customizable, theme-specific chat backgrounds to the Agents window.

Changes:

  • Adds background settings, layouts, service, and selection command.
  • Applies background-aware chat styling with high-contrast gating.
  • Adds accessibility guidance and focused service/UI tests.
Show a summary per file
File Description
services/chatBackground/test/browser/chatBackgroundService.test.ts Tests themes, layouts, and persistence.
services/chatBackground/browser/chatBackgroundService.ts Implements background resolution and state.
contrib/chat/test/browser/newChatWidget.fixture.ts Mocks the new service.
contrib/chat/test/browser/chatView.test.ts Tests background CSS behavior.
contrib/chat/browser/sessionsChatAccessibilityHelp.ts Documents the feature accessibly.
contrib/chat/browser/newChatWidget.ts Adds the background context-menu action.
contrib/chat/browser/media/chatView.css Adds background-aware surfaces and controls.
contrib/chat/browser/chatView.ts Applies backgrounds and handles context menus.
contrib/chat/browser/chat.contribution.ts Registers commands, settings, and service.
common/contextkeys.ts Adds background availability state.
browser/menus.ts Registers the context-menu identifier.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Suppressed comments (2)

src/vs/sessions/contrib/chat/browser/chat.contribution.ts:218

  • The light-theme image has the same Settings Sync issue as the dark-theme image: the selected file remains local, while this application setting is synchronized by default. Exclude this path from sync so another machine is not configured with an unavailable URI.
			scope: ConfigurationScope.APPLICATION,

src/vs/sessions/contrib/chat/browser/chat.contribution.ts:219

  • This description likewise claims the image is always repeated even though the selected layout may disable repetition. Use layout-neutral wording here.
			markdownDescription: localize('chat.agentSessions.preferredLightBackgroundImage', "Specifies an absolute file path or `file` URI for the image repeated behind chat content in the Agents Window when using a light color theme. The image is hidden in high contrast themes."),
  • Files reviewed: 11/11 changed files
  • Comments generated: 4
  • Review effort level: Balanced

Keep machine-local image settings out of Settings Sync, rename the tiling layout to repeat, use layout-neutral setting text, and preserve high-contrast transcript row states.

Co-authored-by: Copilot <[email protected]>
@TylerLeonhardt
TylerLeonhardt marked this pull request as ready for review August 24, 2026 22:33
@TylerLeonhardt
TylerLeonhardt enabled auto-merge (squash) August 24, 2026 22:33
@TylerLeonhardt
TylerLeonhardt merged commit c78059f into main Aug 24, 2026
27 checks passed
@TylerLeonhardt
TylerLeonhardt deleted the tyler/agents-chat-backgrounds branch August 24, 2026 22:49

@roblourens roblourens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Experimental performance review bot]

Human-approved experimental performance review.

(Written by Copilot)

@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 24, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 8, 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.

5 participants