Skip to content

sessions: layer aquarium over chat background - #333061

Merged
TylerLeonhardt merged 2 commits into
mainfrom
tyleonha/fix-aquarium-background-layering
Aug 27, 2026
Merged

TylerLeonhardt merged 2 commits into
mainfrom
tyleonha/fix-aquarium-background-layering

Conversation

@TylerLeonhardt

Copy link
Copy Markdown
Member

Summary

  • render the selected chat background once on the Sessions Part so it persists across chat view transitions
  • keep the aquarium as an independent transparent overlay between the background and session content
  • preserve background-aware transcript and composer styling using the Sessions Part state

Validation

  • npm run compile
  • npm run hygiene
  • npm run typecheck-client
  • npm run valid-layers-check
  • focused Sessions unit tests (25 passing)
  • ESLint and stylelint for changed files
  • manually verified the Codicons background before and after sending a message, with the aquarium disabled
  • manually verified layer order with the aquarium enabled: background 0, aquarium 1, content 2

Render the selected chat background once on the Sessions Part so it persists across chat view transitions. Keep the aquarium as an independent transparent layer between the background and session content.

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

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.

Copilot review overview

Review tier: Balanced
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity src/​vs/​sessions/​contrib/​chat/​test/​browser/​chatView.test.ts — This assertion still reads the Sessions Part's inline style, but the renderer now writes…
What changed in this PR

Moves chat background rendering to the Sessions Part, establishing persistent background, aquarium, and content layers.

Changes:

  • Renders chat backgrounds once at the Sessions Part level.
  • Layers aquarium between background and session content.
  • Updates background-aware styles and tests.
File Description
src/​vs/​sessions/​services/​chatBackground/​browser/​media/​chatBackground.css Defines the persistent background layer.
src/​vs/​sessions/​services/​chatBackground/​browser/​chatBackgroundRenderer.ts Renders backgrounds into the Sessions Part.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​chatView.test.ts Updates background styling tests.
src/​vs/​sessions/​contrib/​chat/​browser/​media/​chatView.css Applies background-aware chat styling from part state.
src/​vs/​sessions/​contrib/​chat/​browser/​chatView.ts Removes per-chat background renderers.
src/​vs/​sessions/​contrib/​aquarium/​test/​browser/​aquariumOverlay.test.ts Tests aquarium/content layer ordering.
src/​vs/​sessions/​contrib/​aquarium/​browser/​media/​aquarium.css Places aquarium above the background.
src/​vs/​sessions/​browser/​parts/​sessionsPart.ts Owns background rendering and updates.
src/​vs/​sessions/​browser/​parts/​media/​sessionsPart.css Establishes the part stacking context.

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

Update the Codicons renderer assertion to inspect the dedicated background layer rather than the obsolete Sessions Part inline style.

Co-authored-by: Copilot <[email protected]>
@TylerLeonhardt
TylerLeonhardt marked this pull request as ready for review August 27, 2026 23:27
@TylerLeonhardt
TylerLeonhardt enabled auto-merge (squash) August 27, 2026 23:27
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/sessions/browser/parts/media/sessionsPart.css
  • src/vs/sessions/browser/parts/sessionsPart.ts

@TylerLeonhardt
TylerLeonhardt merged commit fa221a6 into main Aug 27, 2026
37 checks passed
@TylerLeonhardt
TylerLeonhardt deleted the tyleonha/fix-aquarium-background-layering branch August 27, 2026 23:44
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 27, 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 12, 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.

3 participants