You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Error] [GitHub.copilot-chat] unhandlederror-Response stream has been closed #321951
ai-analyzedAI automation workflow has run an analysis of this issue and provided a comment.ai-generatedGenerated by AI automation workflowsbugIssue identified by VS Code Team member as probable bugerror-telemetryVS Code - Issues generated by telemetryextensioninsiders-releasedPatch has been released in VS Code Insidersrecent-regression
at _2 (../src/extension/intents/node/hookResultProcessor.ts:129:16)
at processHookResults (../src/extension/chat/vscode-node/chatHookService.ts:513:2)
at process.processTicksAndRejections (node:<REDACTED: user-file-path>:104:5) [not deminified]
at async PQi (../src/extension/prompts/node/panel/toolCalling.tsx:621:24)
Raw Stack Trace (minified)
Error: Response stream has been closed at _2 (<REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:1748:34180) at Qye.executePostToolUseHook (<REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:6826:706) at process.processTicksAndRejections (node:<REDACTED: user-file-path>:104:5) at async PQi (<REDACTED: user-file-path> VS <REDACTED: user-file-path>/resources\app\extensions\copilot\dist\extension.js:1693:106)
The post-tool-use hook (executePostToolUseHook → hookResultProcessor) attempts to push to a response stream that has already been closed (e.g. the turn was cancelled or ended), throwing an unhandled Response stream has been closed. The signature differs from the other open "Response stream has been closed" trackers (#312810_push/progress, #316444trackEdit) — this is the agent-mode post-tool-use hook path, matching the now-closed #319003.
Possible recurrence in a newer stable. The Response stream has been closed error tracked by this issue (post-tool-use hook path) reappears in GitHub.copilot-chat extension 0.53.1 — bucket 65455ee7, 54 users, last seen 2025-06-23.
Tracked as a fresh recurrence in #322760 by the stable release anomaly scan. This issue remains closed — no reopen performed; linking for visibility only.
ai-analyzedAI automation workflow has run an analysis of this issue and provided a comment.ai-generatedGenerated by AI automation workflowsbugIssue identified by VS Code Team member as probable bugerror-telemetryVS Code - Issues generated by telemetryextensioninsiders-releasedPatch has been released in VS Code Insidersrecent-regression
Activity
vs-code-engineering commentedon Jun 18, 2026
Regression of a previously-fixed error
This issue tracks the recurrence of an error that was previously fixed and closed.
Possible prior occurrence: #319003 (closed as completed; fix released in
1.125.0/insiders-released).The same stack signature has reappeared in a build that post-dates the fix, so the fix did not fully resolve the problem (regression of the fix).
GitHub.copilot-chatResponse stream has been closedhookResultProcessor.ts:129→executePostToolUseHook→toolCalling.tsx:611cb6c8b17— 58 users / 296 hits468eb501— 21 users / 64 hitsThe post-tool-use hook (
executePostToolUseHook→hookResultProcessor) attempts to push to a response stream that has already been closed (e.g. the turn was cancelled or ended), throwing an unhandledResponse stream has been closed. The signature differs from the other open "Response stream has been closed" trackers (#312810_push/progress, #316444trackEdit) — this is the agent-mode post-tool-use hook path, matching the now-closed #319003.fix: re-check cancellation after postToolUse hook to avoid closed str…
fix: re-check cancellation after postToolUse hook to avoid closed-str…
vs-code-engineering commentedon Jun 24, 2026
Possible recurrence in a newer stable. The
Response stream has been closederror tracked by this issue (post-tool-use hook path) reappears inGitHub.copilot-chatextension 0.53.1 — bucket65455ee7, 54 users, last seen 2025-06-23.Tracked as a fresh recurrence in #322760 by the stable release anomaly scan. This issue remains closed — no reopen performed; linking for visibility only.