Skip to content

[1.145] agentHost: preserve engine snapshot pairing IDs - #346280

Merged
Aaron Munger (amunger) merged 1 commit into
release/1.145from
backport/1.145-engine-pairing-ids
Nov 5, 2026
Merged

Aaron Munger (amunger) merged 1 commit into
release/1.145from
backport/1.145-engine-pairing-ids

Conversation

@amunger

@amunger Aaron Munger (amunger) commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Backport #345229 to release/1.145 as a separate recovery-candidate change.

Engine snapshots that lack their input/output pairing UUID should remain unpaired, not acquire an unrelated SDK model-call ID. This excludes engine.messages and engine.messages.length from the generic model-call-ID fallback while preserving the conversation identifiers and fallback for other events.

The main merge commit cherry-picks cleanly. Only the restricted router and its regression tests change; this PR does not include the edit-survival backport or version bump in #346275.

Verification

The regression tests cover missing engine pairing IDs, independent input/output pairs through serialized restricted-sender envelopes, retained SDK conversation identity, and disabled/misclassified-event suppression. Release-branch validation passed: 48 tests across the router, restricted sender, and Copilot forwarder suites; client-only fast build, targeted ESLint, and whitespace checks also passed. The build used native ARM64 Node to match the installed esbuild binary; tests ran under Node 24.22.1.

The full compile attempted earlier in this worktree was blocked by local Copilot extension dependency exports (@typescript/native/async and @typescript/native/ast); those dependencies are unchanged by this PR. No live telemetry ingestion verification has been performed for this release port.

Fixes #346287.

Do not substitute an SDK model-call ID when an engine snapshot lacks its independently generated pairing UUID. Exercise restricted routing and the sender boundary without inventing missing correlation.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 16:30

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 that keeps engine snapshots without pairing IDs unpaired.

No open issues 🎉

What changed in this PR

Backports #345229 to release/1.145 so Agent Host engine snapshots without pairing IDs remain unpaired rather than receiving unrelated SDK model-call IDs.

Changes:

  • Excludes engine.messages and engine.messages.length from the generic ID fallback while preserving conversation identifiers and fallback behavior for other events.
  • Adds regression coverage for missing pairing IDs, independent serialized input/output pairs, and disabled or misclassified event suppression.
File Description
src/​vs/​platform/​agentHost/​test/​node/​agentHostGitHubTelemetryRouter.test.ts Adds pairing-ID and restricted-sender regressions; retains non-engine fallback coverage.
src/​vs/​platform/​agentHost/​node/​agentHostGitHubTelemetryRouter.ts Prevents SDK model-call IDs from filling missing engine pairing IDs.

Review effort: Balanced

Copilot AI commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Setup pnpm

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: a717861c Current: 73781b2a

Changed (2)

sessions/inbox/inboxNotificationsView/Evidence/Light
Before After
before after
sessions/inbox/inboxNotificationsView/EvidenceNarrow/Light
Before After
before after

@amunger
Aaron Munger (amunger) merged commit 6bab64e into release/1.145 Nov 5, 2026
55 of 56 checks passed
@amunger
Aaron Munger (amunger) deleted the backport/1.145-engine-pairing-ids branch November 5, 2026 17:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.145.2 milestone Nov 5, 2026
@amunger Aaron Munger (amunger) mentioned this pull request Nov 6, 2026
25 tasks done
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.

3 participants