Skip to content

[Error] [GitHub.copilot-chat] unhandlederror-Response stream has been closed #321951

Closed

Description

@vs-code-engineering

Error Message

unhandlederror-Response stream has been closed

Stack Trace

    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)

Details

Property Value
Bucket ID cb6c8b17-9ea9-9ac9-7005-9d4ca1e5d53b
Extension Version 0.53.0
Last Seen Wed Jun 17 2026 23:52:07 GMT+0000 (Coordinated Universal Time)
Platforms win32
Product VSCode

This issue was automatically created from the VS Code Errors Dashboard

Activity

  1. added
    bug
    error-telemetry
    ai-generated
    *fix
    on Jun 18, 2026
  2. vs-code-engineering commented on Jun 18, 2026

    @vs-code-engineering
    ContributorAuthor

    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).

    Property Value
    Product VSCode · extension GitHub.copilot-chat
    Error Response stream has been closed
    Stack signature hookResultProcessor.ts:129 → executePostToolUseHook → toolCalling.tsx:611
    Representative bucket (0.53.0) cb6c8b17 — 58 users / 296 hits
    Additional bucket (0.53.0) 468eb501 — 21 users / 64 hits
    Combined users 79
    Current version extension 0.53.0 (VS Code 1.125.0)
    Baseline version extension 0.50.0
    Last seen 2026-06-17 (prior fix closed 2026-06-09)
    Platforms win32

    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, #316444 trackEdit) — this is the agent-mode post-tool-use hook path, matching the now-closed #319003.

    Generated by errors-regression-scan · 1.8K AIC · ⌖ 53.2 AIC · ⊞ 48.1K · ◷

  3. removed
    *fix
    on Jun 18, 2026
  4. added a commit that references this issue on Jun 18, 2026
    488e5db
  5. added
    ai-analyzed
    on Jun 18, 2026
  6. added a commit that references this issue on Jun 19, 2026
    3d575ee
  7. added
    unreleased
    on Jun 19, 2026
  8. added this to the milestone on Jun 19, 2026
  9. added
    insiders-released
    and removed
    unreleased
    on Jun 22, 2026
  10. vs-code-engineering commented on Jun 24, 2026

    @vs-code-engineering
    ContributorAuthor

    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.

    Generated by errors-stable-scan · 2K AIC · ⌖ 118.6 AIC · ⊞ 52.2K · ◷

  11. locked and limited conversation to collaborators on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-analyzedai-generatedbugerror-telemetryextensioninsiders-releasedrecent-regression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions