Skip to content

agentHost: bump Copilot SDK to 1.0.31-preview.1 - #347239

Merged
roblourens merged 5 commits into
mainfrom
roblou/agents/bump-copilot-sdk-version-6fcbe68f
Nov 10, 2026
Merged

roblourens merged 5 commits into
mainfrom
roblou/agents/bump-copilot-sdk-version-6fcbe68f

Conversation

@roblourens

@roblourens roblourens commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Updates the bundled Copilot SDK from 1.0.30-preview.0 to 1.0.31-preview.1 and its matching runtime from 1.0.108-0 to 1.0.109-1, for desktop and remote.

Required acceptance passed; PR is ready with squash auto-merge enabled, awaiting repository approval requirements. Final revision: 70b8e116148c7a68e7320c6d1c3e929b3d383e85. GitHub CI, both fresh Azure SDK Validation builds, and all four separate assembled-app Linux dependency checks passed. The previous .0 candidate's publication problem is avoided by advancing to the next published preview; its test/CI results are historical, not acceptance for .1.

Change ledger

Files Exact change Why necessary Assessment
package.json, remote/package.json SDK 1.0.30-preview.0 → 1.0.31-preview.1; runtime 1.0.108-0 → 1.0.109-1 Desktop and remote must bundle the same matching release Expected upgrade
pnpm-lock.yaml, remote/pnpm-lock.yaml Replace nine SDK/platform resolutions and snapshots in each root; add required [email protected] Resolve the SDK and its lossless JSON transport dependency Expected dependency delta; all nine downloaded archive SHA-512 hashes match both locks, no mirror tarball URLs, no unrelated dependency changes relative to merged main
src/vs/platform/agentHost/test/node/e2e/suites/copilotCoverageSuite.ts Send the existing peer-chat probe turn before checking the recorded MCP Ready notification OAuth listener registration intentionally no longer cold-starts MCP; the first turn loads it normally Expected setup adaptation; readiness and exact real ROOT_MCP:7:unset result remain asserted, original fixture unchanged
Two e2e/captures/copilotcli-managed-{read,write}-approval-remains-one-time-under-assisted.yaml files Regenerate retained-permission judge wording, actual assistant read result, and ALLOW explanations Runtime distinguishes automatic from human denials and spends a one-time grant when its turn ends Expected reviewed runtime prompt drift; same six exchanges, models, tool names/inputs, actual read/write effects and approval assertions
src/vs/platform/agentHost/test/node/providerIntegration/copilotManagedPermissions.integrationTest.ts Do not require a callback for safe Write-Output without a managed ask, matching POSIX echo Runtime now recognizes the safe PowerShell read-only path Expected permission-contract adaptation; managed asks still require callbacks on create, cold resume, and removal
src/vs/platform/agentHost/test/node/__snapshots__/Copilot_SDK_-_managed_settings_bundled_managedSettings_schema_matches_the_snapshot.schema.json Regenerate IPv4/IPv6 CIDR host-pattern schema and outbound/private-versus-loopback network descriptions Match the bundled runtime's resolved-address network policy contract Expected generated schema expansion; no new host parser, defaults, enforcement, or top-level setting
src/vs/platform/agentHost/test/node/e2e/README.md Explain first-turn MCP loading, safe shell approval expectations, and the CIDR schema contract Document the invariants exercised by the changed tests Directly related documentation

Merged current main because GitHub explicitly reported merge conflicts and did not start PR workflows. The only conflict was the root lockfile: upstream workspace additions and exact .1 SDK integrities were both retained. Upstream changes are not additional changes in this PR's final diff.

Compatibility assessment

The root MCP behavior was isolated with old/new SDK/native cross-pairing and controlled create/listener/explicit-load probes. github/copilot-agent-runtime#36782, by examon, merged November 8, intentionally stops OAuth listener registration from cold-loading the MCP graph. Both runtimes stay lazy on create; only the old runtime starts MCP on listener registration; explicit loading returns the real tool inventory with both. This is a semantic comparison, not a parent/child binary bisect. The test had waited for readiness before any legitimate startup demand; its existing first turn is now that demand.

Permission fixture changes follow github/copilot-agent-runtime#36726 and github/copilot-agent-runtime#36362. Safe Write-Output follows the fail-closed read-only script analyzer in github/copilot-agent-runtime#35468, by Tamás Szabó. No permission decision is reimplemented or bypassed in VS Code.

Inspected shipped runtime revisions: baseline 0b6fd711aceb7d1b08736913111176774483cce6; .0 preview 4b31d4a627f994e211f8239bce4d352e7506bab6; .1 preview 6bbff9d354a12fec60642daefce48628722b4ae6. These identify shipped inputs, not introducing commits. Complete file inventories were collected; semantic patch review prioritized SDK contracts, permissions/sandbox/authentication, extension bootstrap, model/turn/history lifecycle, MCP, telemetry, and packaging, rather than claiming every patch was reviewed.

The .1 Node SDK changes are additive: optional tool titles/canvas icons, raw-event/analytics APIs, automation provenance, and opt-in module extension initialization. Extensions without a valid opt-in sidecar remain eager. Existing direct canvas lifecycle, full-host project-extension/canvas, policy lockdown, and real native permission/lifecycle tests pass. No model prompt baseline, tool allow-list, authored-text normalization, deadline, or existing gate is changed.

The new opt-in module extension's dormant status uses the host's existing unknown fallback until activation; this upgrade does not add a new AHP status or claim dedicated coverage for that new initialization mode. Existing eager extensions and their native bootstrap/canvas paths remain covered.

Current acceptance evidence

Repository install/build/test wrapper commands use Node 24.22.1 and pinned pnpm 12.16.0. Standalone inspection/native-probe helpers also used the machine's Node 24.18.0; those do not install or override workspace dependencies. SDK/runtime inputs are .1 unless explicitly labeled historical.

Command Result
pnpm_config_frozen_lockfile=true pnpm install --frozen-lockfile Passed after upstream merge, including remote postinstall
pnpm install --lockfile-only --frozen-lockfile --ignore-scripts; pnpm -C remote install --lockfile-only --frozen-lockfile --ignore-scripts Both passed with supply-chain verification; each has exactly nine portable SDK integrity pins and no unrelated package/snapshot differences versus main
pnpm run typecheck-client; pnpm run build-fast --client-only Both passed on merged inputs; no output rebuild during tests
pnpm run gulp --tasks-simple; node --test build/lib/test/copilot.test.ts Runtime-pin guard passed; 31 packaging-helper tests passed
AGENT_HOST_TEST_PROFILE=full ./scripts/test-integration.sh --runGlob '**/agentHost/test/node/{copilotSdk*,providerIntegration/*,e2e/providers/copilotPromptsE2E,e2e/providers/codexAgentHostLive,e2e/providers/copilotManagedSettingsAgentHostE2E}.integrationTest.js' Merged inputs: 182 passed, 7 existing pending, covering all supplemental entrypoints and the whole managed family; all 19 model prompt snapshots unchanged
env -u COPILOT_HOME ./scripts/test.sh --run src/vs/platform/agentHost/test/node/copilotAgent.test.ts --run src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts --run src/vs/platform/agentHost/test/node/copilotAgentStartupConfig.test.ts --run src/vs/platform/agentHost/test/node/copilotSessionLauncher.test.ts --run src/vs/platform/agentHost/test/node/copilotRuntimePaths.test.ts --run src/vs/platform/agentHost/test/node/copilotSdkChatError.test.ts --run src/vs/platform/agentHost/test/node/copilotRepositoryPluginSettings.test.ts Merged inputs: 2933 passed, 1 existing pending
AGENT_HOST_TEST_PROFILE=full caffeinate -i pnpm run test-agent-host-e2e --jobs 2 Final merged inputs: all ten processes passed, 1001 passing / 106 existing pending, 525.9 seconds. The earlier merged attempt was invalidated by machine sleep, as detailed below. Pre-merge .1 also passed all ten processes in 453.9 seconds, but is not substituted for final acceptance.
Focused strict root-MCP replay in a fresh process Final merged inputs: passed as the separate lifecycle repeat, preserving real tool/readiness assertions

All 51 integration entrypoints were reclassified after the merge: 6 complete-runner files, 26 supplemental, 19 individually explained outside-default-scope files. Six credentialed Codex live tests and one pre-existing managed-model variant remain skipped; this is not live-provider validation.

The only new .1 discovery failure was the managed schema snapshot. Its exact upstream CIDR/resolved-address delta was reviewed, generated with AGENT_HOST_UPDATE_AHP_SNAPSHOTS=1, refreshed into output, and passed strict replay without update flags. No .1 model captures required rerecording.

Native preflight covers all eight platform payloads, with all nine package archives hash-verified. Required payload file sets are unchanged from .0; Windows x64/arm64 PE imports and floors, Linux x64/arm64 GLIBC ceiling 2.28, and macOS x64/arm64 deployment floors/signing identity remain unchanged. The production RPM calculator emits real ELF requirements for both SDK runtime add-ons and finds none outside the checked-in references. This is not assembled-application installer acceptance.

An exact .1 native-SDK loopback collector check with a synthetic local model and default batch scheduling passed both normal export and shutdown before the first batch. Each produced 96 spans, actual session correlation, configured service identity from the raw OTLP payload, and disabled content capture. Packaged Agent Host managed/warm-policy checks run separately in the full OTel suite.

Completed cross-platform acceptance

  • Merged revision GitHub workflows: Code OSS, Component Fixtures, and CodeQL passed. Two local gh run watch calls encountered connection resets; direct workflow results confirmed success, not test retries.
  • Azure SDK Validation definition 720: build 494758 and fresh lifecycle-repeat build 494759 both succeeded overall, not merely in their test tasks. Both source SHAs are verified as 70b8e116148c7a68e7320c6d1c3e929b3d383e85, with canary defaults none / auto. Both compiled every Windows x64/arm64, Linux x64/arm64/armhf, and macOS x64/arm64 target, and actually executed Full-profile E2E on Windows x64, Linux x64, and macOS arm64. The macOS E2E job uses its separate CI-mode build. Both logs explicitly confirm successful root-MCP and assisted one-time read/write cases; these are two fresh executions per platform, not checkpoint reuse. Pre-merge build 494730 was canceled as obsolete once the merge prerequisite was established.
  • Separate final-SHA Linux x64/arm64 DEB/RPM dependency-reference checks passed all four comparisons without reference changes. Task-local commands node .build/preview1-validation/run-linux-deps.ts x64 and node .build/preview1-validation/run-linux-deps.ts arm64 invoke the unchanged build/linux/dependencies-generator.ts getDependencies for deb (amd64/arm64) and rpm (x86_64/aarch64). Inputs are the exact compilation_linux_{x64,arm64} applications from build 494758, verified final commit, actual packaged SDK/runtime .1 metadata and matching native runtime hashes, all 14 native modules per app, main/sandbox/crashpad binaries, and real matching native tunnel CLIs. Production product configuration and verified Chromium/VS Code sysroots are used; the reference mismatch guard remains fatal. Results: x64 DEB 38 / RPM 99 requirements; arm64 DEB 38 / RPM 93 requirements.

Pipeline 720 does not produce Linux CLI artifacts, so these checks built both real CLIs from the final source revision with the official production crypto features and exact dependency sources/prebuilds, using the glibc-2.28 GCC-10.5 toolchains. Their product configuration matches the pipeline's resolved resource, both execute and report the final source commit, and both retain the GLIBC 2.28 ceiling. This is assembled-application dependency acceptance, not installer archive generation, installation, or signing.

Actual Full-profile E2E execution Build 494758 Fresh build 494759
Windows x64 967 passed, 140 existing pending 967 passed, 140 existing pending
Linux x64 1019 passed, 106 existing pending 1019 passed, 106 existing pending
macOS arm64 1001 passed, 106 existing pending 1001 passed, 106 existing pending

Linux totals include the complete tmpfs pass plus 18 required disk-backed persistence/lifecycle executions. Windows's larger pending count reflects existing platform gates; this PR adds none.

The first merged-input .1 full run failed two Copilot timeouts while the Mac entered maintenance sleep for 710 seconds. Native and host logs stop across that exact interval; the system sleep log confirms its timing. Both unchanged cases passed together in a fresh process (13 seconds). The complete run then passed with process-scoped idle-sleep prevention; the isolated retry is not counted as full acceptance, and no assertion/deadline was changed.

Historical .0 investigation included a failed full run (MCP setup, incidental ping snapshot traffic, stale retained-permission wording) and an owner cleanup timeout. Those were diagnosed before the .0 local suites and GitHub CI passed. Azure .0 remained blocked by the exact package publication; those outcomes are not reused for .1.

No distribution-package generation, signing, Alpine, Web, universal macOS, full artifact sanity, or untested credentialed live-model behavior is claimed. Squash auto-merge preserves repository approval and check requirements.

(Written by Copilot)

Keep desktop and remote SDK/runtime pins aligned, including the SDK's new lossless-json dependency. This candidate remains blocked by local integration acceptance failures.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 10, 2026 02:25

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.

🟡 Changes recommended

The SDK/runtime update regresses root stdio MCP startup on macOS arm64, causing the unchanged host test to time out waiting for Ready while the baseline passes.

1 open issue
2 files not reviewed
  • pnpm-lock.yaml: Generated file
  • remote/pnpm-lock.yaml: Generated file
What changed in this PR

Updates the Copilot SDK bundled with VS Code’s desktop and remote Agent Host. The PR remains a blocked draft, with no production workarounds or test changes included.

Changes:

  • Advances the SDK to 1.0.31-preview.0 and matching runtime to 1.0.109-0 in both dependency roots.
  • Updates SDK and platform-package lockfile entries and adds [email protected].
File Description
remote/​pnpm-lock.yaml Updates remote SDK resolutions and adds the new transitive dependency.
remote/​package.json Advances remote SDK and runtime pins.
pnpm-lock.yaml Updates desktop SDK resolutions and adds the new transitive dependency.
package.json Advances desktop SDK and runtime pins.

Review effort: Balanced

Comment thread package.json Resolved
The runtime no longer cold-loads MCP when an OAuth listener is registered. Exercise first-turn server loading before checking readiness, retaining the original capture and exact tool-result assertion.

Co-authored-by: Copilot <[email protected]>
roblourens and others added 3 commits November 9, 2026 21:29
Regenerate assisted read/write captures for the runtime's retained-permission wording, preserving real tool and one-time approval assertions. Expect safe PowerShell output to use the read-only fast path unless managed policy requires approval.

Co-authored-by: Copilot <[email protected]>
Use SDK 1.0.31-preview.1 with runtime 1.0.109-1 and regenerate the runtime-owned sandbox CIDR schema contract.

Co-authored-by: Copilot <[email protected]>
Resolve the lockfile conflict by retaining the upstream workspace graph and the exact Copilot SDK 1.0.31-preview.1 resolutions.

Co-authored-by: Copilot <[email protected]>
@roblourens roblourens changed the title agentHost: bump Copilot SDK to 1.0.31-preview.0 agentHost: bump Copilot SDK to 1.0.31-preview.1 Nov 10, 2026
@roblourens
roblourens marked this pull request as ready for review November 10, 2026 17:30
@roblourens
roblourens enabled auto-merge (squash) November 10, 2026 17:30
@roblourens
roblourens merged commit 784cfc0 into main Nov 10, 2026
69 checks passed
@roblourens
roblourens deleted the roblou/agents/bump-copilot-sdk-version-6fcbe68f branch November 10, 2026 17:44
@vs-code-engineering vs-code-engineering Bot added this to the 1.147.0 milestone Nov 10, 2026
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.

4 participants