Skip to content

agentHost: bump Copilot SDK to 1.0.23-preview.5 - #342210

Merged
roblourens merged 4 commits into
mainfrom
roblou/agents/bump-copilot-sdk-version-ef07f7ff
Oct 17, 2026
Merged

roblourens merged 4 commits into
mainfrom
roblou/agents/bump-copilot-sdk-version-ef07f7ff

Conversation

@roblourens

@roblourens roblourens commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Upgrade the desktop and remote Agent Host dependency from @github/copilot-sdk 1.0.23-preview.2 to 1.0.23-preview.5, bundling Copilot runtime 1.0.100-1 at inspected/shipped revision 7d20899fc4c8b13a405aa621066e75a9e78e04cd.

The final preview adds an optional environment-list retry hint and advances the runtime through 13 commits beyond 1.0.100-0. The main relevant runtime change prevents managed plugin reloads from deadlocking session shutdown; other changes include experimental stale large-tool-result clearing, sandbox proxy inheritance, unified CLI sessions, and test/build maintenance.

Change ledger

Files/surface Exact change Why necessary Assessment
package.json, remote/package.json, and both lockfiles SDK 1.0.23-preview.2 -> 1.0.23-preview.5; runtime 1.0.99-2 -> 1.0.100-1; all eight optional platform packages updated in both roots Bundle the same release on desktop and remote, including the session-shutdown deadlock fix Expected upgrade
Three assisted managed-permission replay fixtures Regenerated read approval, write approval, and write denial requests with the runtime's split reviewer-message shape and explicit shell-parsing uncertainty guidance Runtime-owned request wire format changed; strict replay must assert the candidate request rather than the prior runtime's shape Expected generated baseline adaptation; primary confirmation, filesystem mutation, and denial assertions are unchanged
Bundled managed-settings schema snapshot Record runtime 1.0.100-1, dynamic OTel headersProvider, and registry-style MCP server names The standalone SDK integration test compares the full runtime schema and is not part of the deterministic E2E runner Expected generated schema drift; reviewed after CI and Copilot review identified the missing baseline
Host/product code No remaining product-code adaptation The SDK API change is additive and existing host callers remain type-compatible Expected

Validation

Final local validation passed on SHA a46a529b5d2709a7d315dc701d4b7ed0fe1dd95c:

  • npm install — passed; root and remote installed SDK/runtime versions are 1.0.23-preview.5/1.0.100-1. Each lockfile changed only its root SDK declaration, SDK package, and eight optional platform packages.
  • npm run typecheck-client — passed.
  • npm run build-fast -- --client-only — passed with 10,403 files transpiled and 2,313 resources copied.
  • AGENT_HOST_REPLAY_RECORD=1 ./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/e2e/providers/copilotManagedSettingsAgentHostE2E.integrationTest.ts --grep 'managed read approval remains one-time under assisted' — passed once on the exact preview.5 runtime; diagnostic fixture bytes were restored afterward.
  • npm run test-agent-host-e2e -- --jobs 2 — passed all six entrypoints: conformance 127 passing/38 pending, Claude 371/15, Codex 155/35, Copilot OTel 22/0, Copilot managed settings 15/0, and Copilot 271/24. Total: 961 passing and 112 existing pending variants.
  • ./scripts/test-integration.sh --runGlob '**/agentHost/test/node/{providerIntegration/*,e2e/providers/copilotPromptsE2E,e2e/providers/codexAgentHostLive}.integrationTest.js' — 98 passing and 7 existing pending credentialed Codex-live cases. All 20 Copilot prompt snapshots and all 15 synthetic-provider suites ran.
  • npm run valid-layers-check — passed.
  • npm run check-cyclic-dependencies — passed with no cycles in 10,441 files.
  • AGENT_HOST_UPDATE_AHP_SNAPSHOTS=1 ./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/copilotSdkManagedSettings.integrationTest.ts --grep 'bundled managedSettings.schema matches the snapshot' — generated the reviewed schema baseline.
  • ./scripts/test-integration.sh --runGlob '**/agentHost/test/node/copilotSdk*.integrationTest.js' — 11 passing across all direct SDK integration entrypoints: canvas lifecycle, imported-session resume, and managed-settings schema/model policy.
  • Root and remote manifest/runtime verification — both installed SDKs report 1.0.23-preview.5 and bundle 1.0.100-1, matching each manifest.
  • npm run gulp -- --tasks-simple — passed while loading the Product build graph and its explicit root runtime-pin guard.
  • git diff --check origin/main...HEAD — passed.

CI on final SHA:

  • GitHub Actions: final-SHA Code OSS, CodeQL, Monaco Editor checks, Component Fixtures, chat-lib tests, and Telemetry are in progress. The prior-SHA Code OSS run failed exactly on the omitted managed-settings schema snapshot; that generated baseline was added and its full suite passes locally.
  • Azure Product build: final-SHA 485488 is queued. The obsolete prior-SHA build 485472 was cancelled. Build 485488 is manual Product with Windows x64/arm64, Linux x64/arm64/armhf and Snap, Alpine x64/arm64, macOS x64/arm64/universal, and Web enabled; publishing, release, and step-on-it are disabled. Artifact sanity tests remain disabled by the nonpublishing pipeline configuration.

Historical preview.4 results are not reused as final evidence. They established the generated fixture changes and exposed retry history: the first six-worker run had two isolated timeout flakes plus request drift; both timeouts passed unchanged in fresh processes. After regenerating the three assisted permission fixtures, a two-worker run found one unrelated Codex createChat timeout; the exact test and full Codex suite passed unchanged, followed by a clean complete runner.

Current risk under review

The preview.4 runtime passed two of three unmodified live recordings of the assisted managed-read scenario; one attempt omitted the required human confirmation. Baseline runtime 1.0.99-2 passed two of two equivalent attempts. Preview.5 passed its one final unmodified live attempt, and strict replay preserves the real confirmation, tool-result, and filesystem assertions. This is finite-sample evidence rather than proof that the earlier live nondeterminism is eliminated, so the PR remains draft.

(Written by Copilot)

roblourens and others added 3 commits October 16, 2026 15:59
Update desktop and remote SDK/runtime pins together and regenerate the affected managed-permission replay fixtures for the runtime's new permission-review request shape.

Co-authored-by: Copilot <[email protected]>
Advance the desktop and remote SDK pins to runtime 1.0.100-1, including the session-shutdown plugin deadlock fix and additive environment retry hint.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 23:11
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Base: e136d871 Current: fa50c8a7

No screenshot changes.

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.

🔵 Needs a closer look

The stale schema baseline needs updating, and pending final-version validation and the reported live permission inconsistency require maintainer review.

1 open issue
1 file not reviewed
  • remote/package-lock.json: Generated file
What changed in this PR

Updates the desktop and remote Agent Host to Copilot SDK 1.0.23-preview.5 and runtime 1.0.100-1, including the reported session-shutdown deadlock fix.

Changes:

  • Aligns SDK, runtime, and platform-package versions across both installations.
  • Regenerates three managed-permission replay fixtures for the revised request format.
File Description
src/​vs/​platform/​agentHost/​test/​node/​e2e/​captures/​copilotcli-managed-write-denial-prevents-mutation-under-assisted.yaml Refreshes write-denial replay.
src/​vs/​platform/​agentHost/​test/​node/​e2e/​captures/​copilotcli-managed-write-approval-remains-one-time-under-assisted.yaml Refreshes one-time write-approval replay.
src/​vs/​platform/​agentHost/​test/​node/​e2e/​captures/​copilotcli-managed-read-approval-remains-one-time-under-assisted.yaml Refreshes one-time read-approval replay.
remote/​package.json Updates remote SDK and runtime versions.
remote/​package-lock.json Locks updated remote SDK platform packages.
package.json Updates desktop SDK and runtime versions.
package-lock.json Locks updated desktop SDK platform packages.

Review effort: Balanced

Comment thread package.json Resolved
Record runtime 1.0.100-1, dynamic OpenTelemetry headers, and registry-style MCP server names from the bundled preview.5 runtime.

Co-authored-by: Copilot <[email protected]>
@roblourens
roblourens marked this pull request as ready for review October 16, 2026 23:46
@roblourens
roblourens enabled auto-merge (squash) October 16, 2026 23:47
@roblourens
roblourens merged commit e630a74 into main Oct 17, 2026
75 of 95 checks passed
@roblourens
roblourens deleted the roblou/agents/bump-copilot-sdk-version-ef07f7ff branch October 17, 2026 00:15
@vs-code-engineering vs-code-engineering Bot added this to the 1.143.0 milestone Oct 17, 2026
Alexandru Dima (alexdima) added a commit that referenced this pull request Oct 17, 2026
…omes (#342267)

* agentHost: stop the Copilot runtime before deleting quick chat test homes

The quick chat scratch directory tests run a real CopilotAgent whose Copilot
runtime uses <tmp userHome>/.copilot as COPILOT_HOME. Since the Copilot SDK
bump to 1.0.23-preview.5 (#342210) the runtime writes into .copilot/logs while
the test's finally block removes the temp home, so fs.rm fails with ENOTEMPTY.
The throw also skipped disposeAgent, leaking the model refresh retry timer
into the leak checks of later, unrelated tests.

Dispose the agent first so the runtime is stopped, then remove the temp home
with retries.

Co-authored-by: Copilot <[email protected]>

* agentHost: also stop the runtime before deleting the session teardown test home

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
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