Skip to content

Remote Control never connects: "Cannot read properties of undefined (reading 'session_url')" on desktop app #78933

Description

@ShokuSo-GitHub02

Description

Running /remote-control in a local Claude Code session (Desktop app) fails with:

Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')

This happens both on connect attempts and disconnect attempts — the error message says "failed to disconnect" even when no connection was ever established, suggesting the client is trying to read session_url from an undefined state object.

Steps to reproduce

  1. Open Claude Code Desktop app, start/continue a local session
  2. Enable "Enable Remote Control by default" in Settings → Claude Code
  3. In the session input, type /remote-control
  4. Error appears: "Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')"

Troubleshooting already done

  • Confirmed app is on latest version (update check: "no updates available")
  • Restarted app and tried in a brand-new session — same error
  • Confirmed via claude.ai "Code" tab that this is not a "no environment published" issue (that case gives a different, expected error: "isn't available in this environment")
  • Auth token list in settings shows successful past Claude Code connections, so account login itself is not the issue

Note: not the same as #78336

Unlike #78336 (where disconnect actually succeeds despite the error), in my case the connection has never succeeded even once — the mobile app's "Code" tab has never shown this session as connectable. This looks like a distinct failure mode (connection never establishes) sharing the same error message, not just a stale-UI issue after a successful disconnect.

Environment

  • Platform: Windows 11 Pro
  • Claude Code Desktop app, latest version
  • Attempting to connect from Claude mobile app "Code" tab

Expected behavior

/remote-control should generate a session URL / QR code for pairing with the mobile app, and the mobile app's "Code" tab should show the session as connectable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions