[BUG] SSH Remote Mode freezes after ccd-cli exits on Windows

Resolved 💬 3 comments Opened Mar 16, 2026 by kjkah Closed Apr 13, 2026

Preflight Checklist

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

What's Wrong?

When using SSH remote mode, the Windows app freezes in a "thinking" state indefinitely after ccd-cli completes and exits on the remote host. The remote side executes successfully every time, but the Windows UI never processes the final response or spawns a new ccd-cli process for the next turn.

The Windows app freezes in a thinking state indefinitely. No response is rendered. No new ccd-cli process is spawned for the next turn. The session is unrecoverable without reconnecting.

This happens consistently after 1–6 tool calls per session. Simple prompts that produce a text response without tool use appear to work correctly.

What Should Happen?

After ccd-cli exits with code 0, the Windows app should render Claude's response and allow further interaction.

Error Messages/Logs

2026/03/16 13:37:33 [process.Manager] Read 807 bytes from stdout for process b0587dc1
2026/03/16 13:37:33 [process.Manager] writeFrame success: wrote 1173 bytes for processId=b0587dc1 stream=stdout
2026/03/16 13:37:33 [process.Manager] stderr EOF for process b0587dc1
2026/03/16 13:37:33 [process.Manager] stdout EOF for process b0587dc1
2026/03/16 13:37:33 [process.Manager] Process b0587dc1 exited with code 0
2026/03/16 13:37:33 [process.Manager] writeFrame success: wrote 98 bytes for processId=b0587dc1 stream=exit


After this point: no new RPC requests in the log, Windows app stays frozen.

Steps to Reproduce

  1. Connect to a remote Linux host via SSH remote mode in the Windows app
  2. Send a prompt that requires tool use (bash commands)
  3. Approve the tool use when prompted
  4. Observe: app shows thinking/reasoning indicator (animated ellipsis) indefinitely
  5. Remote server log shows ccd-cli completed successfully with exit code 0

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.74

Platform

Other

Operating System

Windows

Terminal/Shell

Other

Additional Information

  • Network: api.anthropic.com is reachable from the remote host (HTTP 401 with 141 byte response body in 0.4s)
  • Authentication: OAuth token is forwarded correctly — LLM text responses do appear in early turns
  • Remote server: Both server and ccd-cli processes start and exit cleanly every time
  • Rate limiting: Freeze occurs as early as the first or second tool call
  • Tab switching: Freeze occurs even with the app in full focus

Additional context

  • The remote host is an HPC login node (ASPIRE2A, NSCC Singapore)
  • npm and claude.ai are not reachable from the remote host; the native binary was deployed by the Windows app via SSH
  • Simple echo commands execute and return output correctly
  • The freeze is 100% reproducible across multiple fresh sessions

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗