Repository navigation
Enable Agent Host session prewarming by default - #348611
Merged
Vritant Bhardwaj (vritant24) merged 1 commit intoNov 16, 2026
Merged
Conversation
Flip `chat.agentHost.experimental.prewarmSessions` and the host-side `prewarmSessions` root config to default to true. The host prewarmer now treats an unset value as enabled, so clients that do not mirror the setting also get the new default; an explicit `false` still opts out. Co-authored-by: Copilot <[email protected]>
Vritant Bhardwaj (vritant24)
enabled auto-merge
November 16, 2026 17:57
Contributor
|
This PR will be automatically cherry-picked to |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change enabling session prewarming by default.
No open issues 🎉
What changed in this PR
Enables session prewarming by default for new Agent Host Copilot chats, allowing their runtime and MCP servers to start before the first message.
Changes:
- Sets both the VS Code setting and host configuration schema defaults to
true. - Treats an unset host value as enabled while preserving explicit
falseopt-out and existing eligibility gates. - Extends the prewarm test to cover enabled, disabled, and unset configurations.
No actionable findings remain.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/agentService.test.ts |
Adds coverage for prewarming when the setting is unset. |
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 setting by default. |
src/vs/platform/agentHost/common/agentHostSchema.ts |
Aligns the host schema default with the setting. |
Review effort: Balanced
Federico Brancasi (federicobrancasi)
approved these changes
Nov 16, 2026
Vritant Bhardwaj (vritant24)
deleted the
vritant24/enable-prewarm-default
branch
November 16, 2026 19:22
Vritant Bhardwaj (vritant24)
added a commit
that referenced
this pull request
Nov 16, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.prewarmSessionsnow defaults totrue(theexperimentmode stays, so it can still be overridden).prewarmSessionsroot config schema default is nowtrue.AgentHostSessionPrewarmernow treats an unset value as enabled (=== falsedisables), matching other default-on host keys such asautoAttachPullRequests. Without this, AHP clients that don't mirror the setting would still get prewarming off. An explicitfalsestill opts out.All existing prewarm gates are unchanged: active client, resolved customization enablement, folder trust, and no worktree drafts.
How to test
chat.agentHost.experimental.prewarmSessionstofalse: 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)pnpm run oxlinton the changed files: passed