Skip to content

[cherry-pick] Run Agents App in transient mode when VS Code is launched with --transient#312733

Merged
sandy081 merged 1 commit intorelease/1.118from
cherry-pick/312693
Apr 27, 2026
Merged

[cherry-pick] Run Agents App in transient mode when VS Code is launched with --transient#312733
sandy081 merged 1 commit intorelease/1.118from
cherry-pick/312693

Conversation

@vs-code-engineering
Copy link
Copy Markdown
Contributor

Cherry-pick of #312693 from main.

Summary

When VS Code is launched with --transient, the Agents App now also runs in transient mode with its own dedicated temporary user data and extensions directories, created under the same temp parent folder.

Changes

  • argv.ts (common + node): Add --agents-user-data-dir and --agents-extensions-dir CLI args
  • cli.ts: In the --transient block, create agents-data/ and agents-extensions/ subdirs alongside the existing temp dirs, pass them via the new args, and include them in the relaunch hint message
  • nativeHostMainService.ts: When launching the sibling Agents app (launchSiblingApp), forward the transient dirs as --user-data-dir and --extensions-dir so the Agents process also runs fully isolated in transient mode

@vs-code-engineering vs-code-engineering Bot added the cherry-pick-artifact Auto-generated cherry-pick PR label Apr 27, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor Author

📬 CODENOTIFY

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

@deepak1556

Matched files:

  • src/vs/code/node/cli.ts

@sandy081 sandy081 merged commit 1b91e5e into release/1.118 Apr 27, 2026
26 checks passed
@sandy081 sandy081 deleted the cherry-pick/312693 branch April 27, 2026 11:57
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-artifact Auto-generated cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants