Skip to content

Comments

sessions - fix some issues found by AI#296463

Merged
bpasero merged 1 commit intomainfrom
ben/direct-goldfish
Feb 20, 2026
Merged

sessions - fix some issues found by AI#296463
bpasero merged 1 commit intomainfrom
ben/direct-goldfish

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Feb 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 08:01
@bpasero bpasero enabled auto-merge (squash) February 20, 2026 08:01
@bpasero bpasero self-assigned this Feb 20, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 20, 2026
Copy link
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 fixes several issues found by AI review in the Agent Sessions window codebase. The changes improve correctness and resource management by fixing an incorrect URL reference, removing unused parameters, and improving event listener disposal patterns.

Changes:

  • Fixed incorrect dev URL reference from 'workbench.desktop.main.js' to 'sessions.desktop.main.js'
  • Removed unused editorGroupsContainer parameter from auxiliary titlebar constructors in both browser and electron implementations
  • Replaced manual event listener management with proper MutableDisposable pattern for transitionend listener

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/vs/sessions/electron-browser/sessions.ts Corrects the dev-mode URL to load sessions.desktop.main.js instead of workbench.desktop.main.js
src/vs/sessions/electron-browser/parts/titlebarPart.ts Removes unused editorGroupsContainer parameter from AuxiliaryNativeTitlebarPart constructor and prefixes parameter with underscore in doCreateAuxiliaryTitlebarPart
src/vs/sessions/contrib/sessions/browser/sessionsViewPane.ts Improves event listener disposal by using MutableDisposable pattern instead of manual addEventListener/removeEventListener
src/vs/sessions/browser/parts/titlebarPart.ts Removes unused editorGroupsContainer parameter from AuxiliaryTitlebarPart constructor and prefixes parameter with underscore in doCreateAuxiliaryTitlebarPart

@bpasero bpasero merged commit b78e121 into main Feb 20, 2026
22 checks passed
@bpasero bpasero deleted the ben/direct-goldfish branch February 20, 2026 08:28
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.

2 participants