anthropics / anthropics/claude-code

Desktop app: local file links never open in a Code session that was started from the phone via Remote Control

Open
#95,544 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:desktop bug platform:macos
Dominant language
TypeScript
Stars
147k
Forks
24k
PR merge metrics
PR metrics pending

Description

Environment: macOS 27.0, Claude desktop app 2.2553.1, Claude Code 2.1.270 (claude remote-control server, cwd $HOME), Claude iOS app.

What happens

In a Code session that was created from the iOS app through Remote Control, clicking a local file link in Claude's reply (for example /Users/<me>/notes/foo.md) in the desktop app shows "Couldn't read this file" / "outside the working directory". The file exists and sits directly inside the session's recorded cwd.

The same path, clicked in a session created in the desktop app on the same Mac, opens normally.

Reproducible: every session created remotely (iPhone, or claude.ai/code from another machine) shows it. No session created locally has shown it. The path form doesn't matter: absolute, symlinked, %20-encoded and non-iCloud paths all open in local sessions, and in one remotely created session 9 of 9 clicks failed while the identical path opened in a concurrent local session.

Measured in a failing session

remote-control server cwd /Users/<me>
failing session's recorded cwd /Users/<me>
refused file /Users/<me>/…/foo.md, exists

So the backend cwd is correct. The file panel appears to check against a folder that the desktop app only attaches when a user picks a folder to start a session. Sessions spawned by remote-control never go through that step, so no folder is attached and every local link is refused. There is also no UI to attach a folder to an existing session.

Expected: links inside the session's cwd open, however the session was started.

Workaround: start the session in the desktop app, then turn on Remote Control for it and drive it from the phone.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Reproduce the issue with one locally created session and one started through the remote-control server, then inspect the desktop file panel and session setup around folder attachment and cwd checks. Done means a local file link inside the recorded session cwd opens in sessions created from the phone or another machine, matching locally created sessions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.