Repository navigation
[cherry-pick] Enable Agent Host session prewarming by default - #348659
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 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
falsestill 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
Vritant Bhardwaj (vritant24)
approved these changes
Nov 16, 2026
Vritant Bhardwaj (vritant24)
enabled auto-merge
November 16, 2026 19:53
Federico Brancasi (federicobrancasi)
approved these changes
Nov 16, 2026
Vritant Bhardwaj (vritant24)
merged commit Nov 16, 2026
ad2d447
into
release/1.147
53 of 54 checks 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.
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.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