Repository navigation
Add customizable Agents chat backgrounds - #332435
Merged
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
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
marked this pull request as ready for review
August 24, 2026 22:33
TylerLeonhardt
enabled auto-merge (squash)
August 24, 2026 22:33
Michael Lively (Yoyokrazy)
approved these changes
Aug 24, 2026
joshspicer
approved these changes
Aug 24, 2026
roblourens
approved these changes
Aug 24, 2026
roblourens
reviewed
Aug 24, 2026
roblourens
left a comment
Member
There was a problem hiding this comment.
[Experimental performance review bot]
Human-approved experimental performance review.
(Written by Copilot)
This was referenced Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Screenshots
New and active chat in light and dark themes
Response and control treatment
Testing
npm run eslint -- <affected TypeScript files>npm run stylelint -- src/vs/sessions/contrib/chat/browser/media/chatView.cssscripts\\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 passingnpm run typecheck-clientnpm run valid-layers-check