[BUG] Claude Code Desktop SSH remote sessions complete successfully server-side but UI resets to blank after every response

Resolved 💬 5 comments Opened Apr 2, 2026 by jh-lit-sfs Closed May 11, 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 connected to an SSH remote server, Claude Code Desktop receives and processes messages correctly (confirmed via server-side logs showing hadFirstResponse=true, healthy cycle, Byte-synced) but the UI resets to a blank prompt showing "Connecting" after every response. No conversation is ever displayed.

What Should Happen?

The response from the remote Claude Code process should be displayed in the Desktop UI and the session should remain active for continued conversation.

Error Messages/Logs

Mac log (~/Library/Logs/Claude/main.log) shows healthy sessions:
[CCD start-timing] first_assistant=4540ms
[Stop hook] Query completed for session local_xxx
[CCD CycleHealth] healthy cycle (21s, hadFirstResponse=true)
[SSH] Byte-synced 17738 bytes

But UI immediately resets and starts a new session.

Steps to Reproduce

  1. Set up SSH remote connection in Claude Code Desktop pointing to a Linux aarch64 server (Ubuntu 24.04) running as a non-root user
  2. Select a remote working directory (e.g. /var/www/myproject)
  3. When connected, type any message (e.g. "hi") and press Enter
  4. Observe: input clears, spinner appears briefly, then "Connecting" appears, then blank prompt returns
  5. No response is ever displayed in the UI
  6. Server-side logs confirm the session completed successfully with hadFirstResponse=true
  7. Repeat - each attempt starts a fresh session, completes server-side, but UI never renders the response

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.87 (remote binary) / Desktop 1.2.234 (2d1855)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Remote server: Ubuntu 24.04 aarch64 (Hetzner CAX11)
Root cause investigation: The --allow-dangerously-skip-permissions flag passed by Desktop is blocked when running as root, causing exit code 1. Creating a non-root user resolves the crash but the UI rendering issue persists regardless.
Reddit thread with same issue: https://www.reddit.com/r/ClaudeAI/comments/[thread]

View original on GitHub ↗

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