claudecodeui icon indicating copy to clipboard operation
claudecodeui copied to clipboard

[BUG] Connecting to shell does not work on mobile

Open orakemu opened this issue 5 months ago • 0 comments

Connecting to the shell on localhost on my mac works well. However, claude code UI gets stuck in "connecting to shell" on mobile.

I tried

  • using the network address on mobile in chrome and safari
  • using localhost on mobile in chrome and safari (by using tailscale to access it)

All I see in the terminal running the dev server is this:

Config API called - Returning host: localhost:3008 Protocol: ws

Vs when it works:

[0] Config API called - Returning host: localhost:3008 Protocol: ws
[0] WebSocket connection attempt to: /shell?token=XXX
[0] ✅ WebSocket authenticated for user: yorgodev
[0] 🔗 Client connected to: /shell?token=XXXX
[0] 🐚 Shell client connected
[0] 📨 Shell message received: resize
[0] 📨 Shell message received: init
[0] 🚀 Starting shell in: /Users/XXXX
[0] 📋 Session info: Resume session 64479f41-1c29-4f85-8421-d6afa8963954
[0] 🔧 Executing shell command: cd "/Users/ XXXX " && claude --resume 64479f41-1c29-4f85-8421-d6afa8963954 || claude
[0] 🟢 Shell process started with PTY, PID: 1324
[0] 📨 Shell message received: resize
[0] Terminal resize requested: 101 x 44
[0] 📨 Shell message received: input

Can I provide other info?

orakemu avatar Jul 23 '25 06:07 orakemu