Skip to content

[1.145] Drop unrecognized restricted events and bump to 1.145.2 - #346418

Merged
Robo (deepak1556) merged 2 commits into
release/1.145from
amunger/1145-drop-unrecognized-restricted-events
Nov 6, 2026
Merged

Robo (deepak1556) merged 2 commits into
release/1.145from
amunger/1145-drop-unrecognized-restricted-events

Conversation

@amunger

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

Copy link
Copy Markdown
Collaborator

Backports #346400 to release/1.145 and bumps VS Code from 1.145.1 to 1.145.2.

Drop restricted SDK notifications that aren't handled by the dedicated telemetry router. The fallback forwarder accepts only standard notifications, including its compaction entry point; known restricted events continue through their existing dedicated routes.

Update the product version, Copilot Chat's VS Code engine requirement, and the corresponding lockfiles using the release branch's existing version-bump convention.

Validation

Validated on the release branch on Windows with Node 24.22.1 and npm 11.19.1:

  • npm run build-fast -- --client-only - passed.
  • npm run typecheck-client - passed.
  • npm run eslint -- src\vs\platform\agentHost\node\copilot\copilotAgent.ts src\vs\platform\agentHost\node\copilot\copilotGitHubTelemetryForwarder.ts src\vs\platform\agentHost\test\node\copilotAgent.test.ts src\vs\platform\agentHost\test\node\copilotAgentSession.test.ts src\vs\platform\agentHost\test\node\copilotGitHubTelemetryForwarder.test.ts - passed.
  • .\scripts\test.bat --run src\vs\platform\agentHost\test\node\copilotAgent.test.ts --run src\vs\platform\agentHost\test\node\copilotGitHubTelemetryForwarder.test.ts --run src\vs\platform\agentHost\test\node\agentHostGitHubTelemetryRouter.test.ts - passed, 1,022 tests.
  • npm run test-node -- --run src\vs\platform\agentHost\test\node\copilotAgent.test.ts --run src\vs\platform\agentHost\test\node\copilotGitHubTelemetryForwarder.test.ts --run src\vs\platform\agentHost\test\node\agentHostGitHubTelemetryRouter.test.ts - passed, 1,022 tests.

Verified the product version and lockfile metadata are 1.145.2, and Copilot Chat's engine requirement is ^1.145.2. Its package version remains 0.73.0; there are no dependency updates.

Setup/build emitted legacy npm configuration and dependency-deprecation warnings, plus Node DEP0190. Existing dependency audit findings remain outside this backport.

Fixes microsoft/vscode-internalbacklog#10633.
Recovery plan: #346427.

Restricted-first response correlation correction

Also reject restricted notifications at the fallback dispatcher before one-shot response correlation is consumed. The existing sink guard and dedicated restricted-event router remain unchanged. Matching main follow-up: #346441.

Four host-level regression cases (success/error, user/agent initiators) failed before the correction with a missing turn ID and responseAlreadyForwarded; all pass afterward. Updated release-branch validation: 1,026 tests passed across CopilotAgent, CopilotGitHubTelemetryForwarder, and AgentHostGitHubTelemetryRouter. Client fast build, targeted ESLint, and whitespace checks passed on native Windows ARM64 Node 26.13.0.

Backport #346400 to release/1.145, including the host routing regression. Bump the product version and matching Copilot Chat engine requirement to 1.145.2.

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

Copilot AI commented Nov 6, 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.

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

A restricted response arriving first consumes the turn mapping before being discarded, causing the standard response to lose its owning turn and report responseAlreadyForwarded.

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

Backports the restricted SDK telemetry filtering fix to release/1.145 and prepares VS Code 1.145.2. Dedicated routes for known restricted events remain unchanged.

Changes:

  • Reject restricted notifications in the fallback telemetry forwarder, including compaction events.
  • Update callers and tests for standard-only forwarding.
  • Bump the product version and Copilot Chat engine requirement, with matching lockfile metadata.
File Description
src/​vs/​platform/​agentHost/​test/​node/​copilotGitHubTelemetryForwarder.test.ts Tests standard forwarding and restricted-event rejection.
src/​vs/​platform/​agentHost/​test/​node/​copilotAgentSession.test.ts Updates forwarder construction.
src/​vs/​platform/​agentHost/​test/​node/​copilotAgent.test.ts Updates fallback routing expectations.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotGitHubTelemetryForwarder.ts Rejects restricted events at both forwarding entry points.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotAgent.ts Removes the forwarder’s restricted-telemetry callback argument.
package.json Bumps VS Code to 1.145.2.
package-lock.json Synchronizes product version metadata.
extensions/​copilot/​package.json Raises the VS Code engine requirement to ^1.145.2.
extensions/​copilot/​package-lock.json Synchronizes the extension’s engine requirement.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 6bab64e2 Current: f27cd289

Changed (2)

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

@amunger
Aaron Munger (amunger) marked this pull request as ready for review November 6, 2026 00:22
@amunger Aaron Munger (amunger) added the candidate Issue identified as probable candidate for fixing in the next release label Nov 6, 2026
@amunger Aaron Munger (amunger) self-assigned this Nov 6, 2026
@amunger Aaron Munger (amunger) added this to the 1.145.2 milestone Nov 6, 2026
@amunger Aaron Munger (amunger) mentioned this pull request Nov 6, 2026
21 of 25 tasks
Preserve the owning turn for the standard response when a restricted copy arrives first. Cover user- and agent-initiated success and error responses through the host routing boundary.

Co-authored-by: Copilot <[email protected]>
@deepak1556
Robo (deepak1556) enabled auto-merge (squash) November 6, 2026 04:27
@deepak1556
Robo (deepak1556) merged commit c4453f8 into release/1.145 Nov 6, 2026
56 checks passed
@deepak1556
Robo (deepak1556) deleted the amunger/1145-drop-unrecognized-restricted-events branch November 6, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

candidate Issue identified as probable candidate for fixing in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants