Repository navigation
[1.145] Drop unrecognized restricted events and bump to 1.145.2 - #346418
Robo (deepak1556) merged 2 commits into
Conversation
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]>
|
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 |
There was a problem hiding this comment.
🟡 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
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]>

Backports #346400 to
release/1.145and 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 remains0.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.