[BUG] remote-control --name is silently ignored: the client shows repository and branch (or the folder name) instead
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?
claude remote-control --name "<X>" has no visible effect in any client.
A server was running for two days with --name "AviaRules Root". In the
mobile app's directory picker the entry was labelled by repository name
and branch instead ("AviaRules · main"). For a directory that is not a git
repository it fell back to the folder name ("ClaudeCode"). The supplied
name never appeared anywhere.
This contradicts the help text:
--name <name> Name for the session (shown in claude.ai/code)
Practical consequence: two servers started on the same repository and
branch are indistinguishable in the picker, so there is no way to run
several named servers side by side (e.g. one per role or per purpose).
What Should Happen?
Either the supplied name is shown in the client's picker, or the help text
should say what the flag actually names. If it only labels the pre-created
session rather than the environment entry, that distinction should be
documented, because the current wording promises exactly the behaviour
that does not happen.
Error Messages/Logs
No error — that is the point, the flag is accepted silently.
Server started with:
claude remote-control --permission-mode bypassPermissions --name "AviaRules Root"
Verified running via Win32_Process CommandLine, connected for ~2 days.
Mobile app picker showed: "ClaudeCode" (the folder name; that directory is
not a git repo).
Second server, same build, started in a git repository without --name:
·✔︎· Connected · AviaRules · main
Picker showed "AviaRules" — i.e. repo name, not the --name value.
Steps to Reproduce
- Start: claude remote-control --spawn=same-dir --name "MyCustomName"
in any directory.
- Open the mobile app -> New session -> Remote control -> pick the device.
- The entry is labelled by repo+branch (or folder name), never
"MyCustomName".
Environment: Windows 11 Pro 26200, Claude Code 2.1.227 native build.
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.227 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
The flag is accepted without any warning, which is what makes this costly:
a setup can run for days on the assumption that the servers are
distinguishable by name, and the mislabelling only becomes visible when
you try to pick the right one in the mobile app.