Skip to content

better handling of mounting/unmounting of aquarium#314659

Merged
justschen merged 2 commits intomainfrom
justin/litten
May 6, 2026
Merged

better handling of mounting/unmounting of aquarium#314659
justschen merged 2 commits intomainfrom
justin/litten

Conversation

@justschen
Copy link
Copy Markdown
Collaborator

fix flickering of developer joy feature cc JC from slack!

Copilot AI review requested due to automatic review settings May 6, 2026 07:52
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Screenshot Changes

Base: 6f9742ac Current: 84ba3ec0

Changed (12)

chat/input/chatInput/Default/Dark
Before After
before after
chat/input/chatInput/WithArtifacts/Dark
Before After
before after
chat/input/chatInput/WithArtifacts/Light
Before After
before after
chat/input/chatInput/WithFileChanges/Dark
Before After
before after
chat/input/chatInput/WithTodos/Dark
Before After
before after
chat/input/chatInput/WithTodos/Light
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Dark
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Light
Before After
before after
chat/input/chatInput/WithArtifactsAndFileChanges/Light
Before After
before after
chat/widget/chatWidget/SimpleQA/Light
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Dark
Before After
before after
agentSessionsViewer/NeedsInput/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

This PR updates the Agents “developer joy” aquarium feature so it cleanly activates/deactivates based on the visibility of its hosting view, aiming to eliminate flicker during view swaps.

Changes:

  • Extend IAquariumService.mountToggle() to return a handle that can be informed of host visibility (setHostVisible).
  • Track per-mount host visibility and reconcile aquarium activation/deactivation accordingly (including a synchronous teardown path to avoid flashing).
  • Wire the New Chat view pane visibility (setVisible) into the aquarium toggle handle.
Show a summary per file
File Description
src/vs/sessions/contrib/chat/browser/newChatViewPane.ts Stores the mounted aquarium toggle handle and forwards view visibility changes via setHostVisible.
src/vs/sessions/contrib/aquarium/browser/aquariumOverlay.ts Introduces IMountedToggleHandle, tracks mount visibility, and adds activation reconciliation + non-animated teardown support.

Copilot's findings

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

Comment thread src/vs/sessions/contrib/aquarium/browser/aquariumOverlay.ts Outdated
@justschen justschen marked this pull request as ready for review May 6, 2026 08:17
@justschen justschen enabled auto-merge (squash) May 6, 2026 08:17
@justschen justschen merged commit 7e9b619 into main May 6, 2026
26 checks passed
@justschen justschen deleted the justin/litten branch May 6, 2026 08:34
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 6, 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