[BUG] Claude Code Desktop SSH remote sessions complete successfully server-side but UI resets to blank after every response
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
- Set up SSH remote connection in Claude Code Desktop pointing to a Linux aarch64 server (Ubuntu 24.04) running as a non-root user
- Select a remote working directory (e.g. /var/www/myproject)
- When connected, type any message (e.g. "hi") and press Enter
- Observe: input clears, spinner appears briefly, then "Connecting" appears, then blank prompt returns
- No response is ever displayed in the UI
- Server-side logs confirm the session completed successfully with hadFirstResponse=true
- 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]
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗