claude-code - 💡(How to fix) Fix [BUG] Terminal bleeding after login in devcontainers in recent versions [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45325Fetched 2026-04-09 08:07:59
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

This is from the extension logs

2026-04-08 12:29:33.751 [info] Closing Claude on channel: ... 2026-04-08 12:29:33.751 [error] Error spawning Claude (on channel ...): Error: Query closed before response received 2026-04-08 12:29:33.751 [error] Failed to load config cache: Error: Query closed before response received 2026-04-08 12:29:33.751 [error] Error processing client request: Error: Query closed before response received 2026-04-08 12:29:33.758 [info] Received message from webview: {"type":"interrupt_claude","channelId":"..."} 2026-04-08 12:29:33.758 [warning] Channel not found: ... 2026-04-08 12:29:38.808 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"open_output_panel"}} 2026-04-08 12:29:40.840 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"open_output_panel"}}

Code Example

This is from the extension logs

2026-04-08 12:29:33.751 [info] Closing Claude on channel: ...
2026-04-08 12:29:33.751 [error] Error spawning Claude (on channel ...): Error: Query closed before response received
2026-04-08 12:29:33.751 [error] Failed to load config cache: Error: Query closed before response received
2026-04-08 12:29:33.751 [error] Error processing client request: Error: Query closed before response received
2026-04-08 12:29:33.758 [info] Received message from webview: {"type":"interrupt_claude","channelId":"..."}
2026-04-08 12:29:33.758 [warning] Channel not found: ...
2026-04-08 12:29:38.808 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"open_output_panel"}}
2026-04-08 12:29:40.840 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"open_output_panel"}}
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

<img width="1066" height="160" alt="Image" src="https://github.com/user-attachments/assets/0ea72a02-e269-4e05-a78f-c53ed77e4113" /> When I install the latest version of Claude in a devcontainer and open it am getting `❯ ^[P>|tmux 3.2a^[\^[[?1;2c%` and `❯ ^[[I^[P>|xterm.js(6.1.0-beta.191)^[\^[[?1;2c` if using it directly in VS Code terminal, even with the latest version of the extension I get `Error: Query closed before response received`. And it is not a cosmetic thing in the terminal, it immediately breaks and doesnt allow me to type... Keep in mind it happens after you've logged in and reopened claude, the first time it works all right.

What Should Happen?

I should be able to write my prompt as usual...

Error Messages/Logs

This is from the extension logs

2026-04-08 12:29:33.751 [info] Closing Claude on channel: ...
2026-04-08 12:29:33.751 [error] Error spawning Claude (on channel ...): Error: Query closed before response received
2026-04-08 12:29:33.751 [error] Failed to load config cache: Error: Query closed before response received
2026-04-08 12:29:33.751 [error] Error processing client request: Error: Query closed before response received
2026-04-08 12:29:33.758 [info] Received message from webview: {"type":"interrupt_claude","channelId":"..."}
2026-04-08 12:29:33.758 [warning] Channel not found: ...
2026-04-08 12:29:38.808 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"open_output_panel"}}
2026-04-08 12:29:40.840 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"open_output_panel"}}

Steps to Reproduce

Use Claude in DevContainers or the latest version of the Extension on VS Code DevContainers, and login and exit, and reopen...

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.69 is what I tested from a month before

Claude Code Version

2.1.96

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

Downgrade to version 2.1.69 as a temporary workaround to resolve the issue with Claude Code.

Guidance

  • Verify that the issue is indeed a regression by testing with the last known working version (2.1.69) to confirm that it resolves the problem.
  • Check the extension logs for any other error messages that may indicate a related issue or provide more context.
  • Test the workaround in different environments (e.g., DevContainers, VS Code) to ensure it consistently resolves the issue.
  • Monitor the GitHub issue tracker for updates on a potential fix for version 2.1.96.

Notes

The provided logs and error messages suggest a potential issue with the communication between the Claude Code extension and the Anthropic API, but without further information, it's difficult to provide a more specific fix.

Recommendation

Apply workaround: Downgrade to version 2.1.69, as it is confirmed to be the last working version, and wait for a potential fix for version 2.1.96.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING