Skip to content

Agent Host engine snapshots can receive an unrelated input/output pairing ID #346287

Closed

Description

@amunger

Problem

When an Agent Host engine snapshot has no input/output pairing ID, telemetry can substitute an unrelated SDK model-call ID. This can cause analytics to correlate model inputs and outputs using an invalid key.

Expected outcome

Preserve genuine engine pairing IDs. Leave snapshots without a pairing ID unpaired, while retaining available conversation identity for analysis.

References

Activity

  1. added this to the 1.145.1 milestone on Nov 5, 2026
  2. added
    bug
    candidate
    on Nov 5, 2026
  3. vs-code-engineering commented on Nov 5, 2026

    @vs-code-engineering
    Contributor

    Sharing media and context from merged PR #346280 for verification:

    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.

    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

    Screenshot report: #346280 (comment)

    Source PR: #346280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcandidateverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions