Skip to content

[cherry-pick] Enable Agent Host session prewarming by default - #348659

Merged
Vritant Bhardwaj (vritant24) merged 1 commit into
release/1.147from
cherry-pick/348611
Nov 16, 2026
Merged

Vritant Bhardwaj (vritant24) merged 1 commit into
release/1.147from
cherry-pick/348611

Conversation

@vs-code-engineering

Copy link
Copy Markdown
Contributor

Cherry-pick of #348611 from main.

New Agent Host Copilot chats now start their runtime and MCP servers before the first message by default, so connectors are ready sooner.

Changes

  • chat.agentHost.experimental.prewarmSessions now defaults to true (the experiment mode stays, so it can still be overridden).
  • The host-side prewarmSessions root config schema default is now true.
  • AgentHostSessionPrewarmer now treats an unset value as enabled (=== false disables), matching other default-on host keys such as autoAttachPullRequests. Without this, AHP clients that don't mirror the setting would still get prewarming off. An explicit false still opts out.

All existing prewarm gates are unchanged: active client, resolved customization enablement, folder trust, and no worktree drafts.

How to test

  1. With the setting not configured, open a new Agent Host Copilot chat in a trusted folder that has an MCP server configured.
  2. Before sending, the MCP server should already be starting (see the agent host log).
  3. Set chat.agentHost.experimental.prewarmSessions to false: new chats should no longer start anything before the first send.

Validation

  • ./scripts/test.sh --reporter dot --run src/vs/platform/agentHost/test/node/agentService.test.ts --run src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostUntitledProvisionalSessionService.test.ts --run src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts: passed (2189 passing, 27 pending)
  • The prewarm test now also covers the unset case, which warms.
  • pnpm run oxlint on the changed files: passed

Copilot AI balanced review requested due to automatic review settings November 16, 2026 19:23
@vs-code-engineering vs-code-engineering Bot added the cherry-pick-artifact Auto-generated cherry-pick PR label Nov 16, 2026

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.

🟢 Approval recommended

No active review issues are reported for the change enabling Agent Host Copilot session prewarming by default.

No open issues 🎉

What changed in this PR

Cherry-picks #348611 to enable Agent Host Copilot session prewarming by default, allowing runtimes and MCP servers to start before the first message while preserving existing eligibility gates and explicit opt-out.

Changes:

  • Sets both the VS Code setting and host configuration schema defaults to true.
  • Treats an unset host value as enabled; explicit false still disables prewarming.
  • Extends the prewarming test to cover enabled, disabled, and unset configurations.
File Description
src/​vs/​platform/​agentHost/​test/​node/​agentService.test.ts Adds coverage for prewarming with an unset configuration value.
src/​vs/​platform/​agentHost/​node/​agentHostSessionPrewarmer.ts Disables prewarming only when explicitly set to false.
src/​vs/​platform/​agentHost/​common/​agentHostStarter.config.contribution.ts Enables the VS Code prewarming setting by default.
src/​vs/​platform/​agentHost/​common/​agentHostSchema.ts Aligns the host schema default with the VS Code setting.

Review effort: Balanced

@vritant24
Vritant Bhardwaj (vritant24) merged commit ad2d447 into release/1.147 Nov 16, 2026
53 of 54 checks passed
@vritant24
Vritant Bhardwaj (vritant24) deleted the cherry-pick/348611 branch November 16, 2026 19:56
@vs-code-engineering vs-code-engineering Bot added this to the 1.147.0 milestone Nov 16, 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.

3 participants