[BUG] SSH remote: ccd-cli exits with code 1 when spawned without TTY — Desktop 1.1.7464

Resolved 💬 3 comments Opened Mar 19, 2026 by ludgerons Closed Mar 23, 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?

Bug description
Claude Code Desktop connects to a remote server via SSH but immediately disconnects after sending any prompt. The remote process (ccd-cli) exits with code 1 before processing input.
Environment

Desktop version: 1.1.7464
Claude Code CLI: 2.1.79
ccd-cli version on server: 2.1.78
Client OS: macOS
Server OS: Ubuntu 24.04.4 LTS (Hetzner VPS)
Auth: SSH key (no password)

Steps to reproduce

Add SSH remote connection in Desktop (host: root@<ip>, port 22, identity file configured)
Connect — connection shows as active
Type any prompt and send
Desktop immediately shows "Disconnected"

Remote server log (~/.claude/remote/remote-server.log)
[process.Manager] Process <uuid> started, PID=XXXX, command=/root/.claude/remote/ccd-cli
[process.Manager] Read 93 bytes from stderr for process <uuid>
[process.Manager] Process <uuid> exited with code 1
[process.Manager] WriteStdin: process <uuid> not found
[Server] RPC response sent: id=X, hasError=true
Root cause identified
The Desktop spawns ccd-cli without a TTY. Running ccd-cli directly via SSH without -t hangs or exits with code 1. With -t (TTY allocated) it works:
bash# Fails (exits code 1, same as Desktop)
ssh root@server "/root/.claude/remote/ccd-cli --print 'hello'"

Works (with TTY)

ssh -t root@server "/root/.claude/remote/ccd-cli --print 'hello'"

→ Hello! How can I help you today?

EXIT: 0

Workaround
bashssh -t geroca "claude"
Works correctly. The issue is specific to Desktop's SSH spawning — it does not allocate a TTY for the ccd-cli process.
Additional notes
This worked correctly until approximately 19 March 2026. Suspected regression introduced in a recent Desktop or ccd-cli update.

What Should Happen?

his worked correctly until approximately 19 March 2026. Suspected regression introduced in a recent Desktop or ccd-cli update.

Error Messages/Logs

Steps to Reproduce

Add SSH remote connection in Desktop (host: root@<ip>, port 22, identity file configured)
Connect — connection shows as active
Type any prompt and send
Desktop immediately shows "Disconnected"

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Desktop version: 1.1.7464

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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