Skip to content

fix: agents app not closing for update on macOS#308195

Merged
deepak1556 merged 1 commit intomainfrom
robo/fix_agents_update_macos
Apr 7, 2026
Merged

fix: agents app not closing for update on macOS#308195
deepak1556 merged 1 commit intomainfrom
robo/fix_agents_update_macos

Conversation

@deepak1556
Copy link
Copy Markdown
Collaborator

Prevents blank windows of agents app after update via the host app on macOS

@deepak1556 deepak1556 added this to the 1.116.0 milestone Apr 7, 2026
@deepak1556 deepak1556 self-assigned this Apr 7, 2026
Copilot AI review requested due to automatic review settings April 7, 2026 11:57
@deepak1556 deepak1556 enabled auto-merge (squash) April 7, 2026 11:57
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

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

@bpasero

Matched files:

  • src/vs/workbench/services/host/browser/browserHostService.ts
  • src/vs/workbench/services/host/browser/host.ts
  • src/vs/workbench/services/host/electron-browser/nativeHostService.ts

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

Screenshot Changes

Base: 3c10f609 Current: 536be2c8

Changed (1)

editor/inlineCompletions/WordReplacementView/Dark
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

Adds an explicit “quit app” API to IHostService and uses it from the Agents (Sessions) update flow to ensure the Agents app fully terminates on macOS (instead of only closing the last window and leaving the process running), preventing post-update blank windows.

Changes:

  • Extend IHostService with a new shutdown(): Promise<void> method to represent “quit the entire application”.
  • Implement shutdown() for native (Electron) and browser host services, plus update the workbench test host service stub.
  • Switch the Agents app update action to call hostService.shutdown() instead of hostService.close().

Reviewed changes

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

Show a summary per file
File Description
src/vs/workbench/test/browser/workbenchTestServices.ts Updates TestHostService to satisfy the new IHostService.shutdown() contract.
src/vs/workbench/services/host/electron-browser/nativeHostService.ts Implements IHostService.shutdown() by delegating to nativeHostService.quit() (full app quit).
src/vs/workbench/services/host/browser/host.ts Adds shutdown() to the IHostService interface with macOS-specific semantics documented.
src/vs/workbench/services/host/browser/browserHostService.ts Implements shutdown() in browser by delegating to existing close() behavior.
src/vs/sessions/contrib/accountMenu/browser/account.contribution.ts Uses hostService.shutdown() in the “Update from VS Code” flow to fully exit the Agents app.

@deepak1556 deepak1556 merged commit d4282d8 into main Apr 7, 2026
23 checks passed
@deepak1556 deepak1556 deleted the robo/fix_agents_update_macos branch April 7, 2026 12:25
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