Repository navigation
[1.145] agentHost: preserve engine snapshot pairing IDs - #346280
Conversation
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]>
There was a problem hiding this comment.
🟢 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.messagesandengine.messages.lengthfrom 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
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: 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 |
Backport #345229 to
release/1.145as 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.messagesandengine.messages.lengthfrom 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/asyncand@typescript/native/ast); those dependencies are unchanged by this PR. No live telemetry ingestion verification has been performed for this release port.Fixes #346287.