[Bug]: Claude mobile Remote Control fails to start and archives the session with Desktop First Party enabled

Open
#9,132 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
18/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, typescript
Domain
cli, devtools

Research direction

The failure sits between the OpenCodex proxy routing and Claude Desktop's Remote Control startup; the payload names no source file. Start by reproducing with the First Party toggle on and off and comparing the logs for rc_enable_failed. Done means a clear diagnosis of which setting breaks the remote session start, or a specific diagnostic message for that case.

Written by the indexing model from the issue text.

Description

bug
Client or integration

Claude Desktop Code tab in OpenCodex First Party mode, with Claude mobile Remote Control on both iPhone and Pixel. OpenCodex 2.100.8, Claude Desktop 7.37095.0, macOS 27.2 on Apple Silicon.

What happens

From Claude mobile, select the Mac as the Remote Control host, start a fresh Code session, and send a short prompt. The phone stalls, shows “Couldn't start, Claude Code,” and the new session disappears from the session list. I reproduced this on both phones, including with standard Claude selections. I observed the failure with Desktop Picker mode off as well.

What the Mac logged

On failed starts, Claude Desktop logged this sequence (session identifier removed):

Enabling remote control
Failed to toggle remote control: Remote Control initialization failed
rc_enable_failed
POST /v1/code/sessions/<redacted>/archive -> 200

Claude Desktop registered the Mac as a Remote Control environment, but starting the individual remote session failed. At the time of separate failed attach attempts, OpenCodex also logged successful GPT-6.2 Sol requests from Claude Desktop (HTTP 200). Local Code tab inference and mobile attachment are separate checks. Gemini requests also hit HTTP 429 during testing, so I did not use them as evidence for the attach failure.

Native comparison

Simply turning routing off initially still produced the error. A phone session attached successfully after disabling OpenCodex’s Claude Desktop integration and restarting Claude Desktop with a fresh Claude Code configuration directory and a launch environment free of inherited provider/model and feature overrides. The regular profile contained CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, which Anthropic documents as blocking Remote Control feature checks.

The clean comparison changed several variables together. It establishes a working native baseline but does not isolate whether the flag, another saved setting, or interception is responsible for failures with First Party enabled.

Expected

A phone-started Code session on a registered Mac attaches and remains available. If the local configuration prevents Remote Control, a specific diagnostic would help distinguish it from a general startup failure.

Related: #8051 and #8052 concern missing approval cards after a Remote Control session is connected. This report concerns failing to start the session itself.

Dominant language
TypeScript
Stars
16.9k
Forks
1.3k
Avg merge
1d 4h
Merged PRs (30d)
814

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lidge-jun/opencodex

All issues in lidge-jun/opencodex

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.