Repository navigation
fix: name Remote Control sessions after their ccs name - #382
Merged
Merged
Conversation
brtkwr
enabled auto-merge
November 22, 2026 17:46
Claude Code ignores a session's --name or /rename title for Remote Control once it has suppressed the conversation's history, which it does for a conversation started under another organisation (a cswap switch). The phone then lists <hostname>-<random words>, later a title made from a message. Only an explicit --remote-control <name> always wins. ccs now passes --remote-control <name> to Claude launches and resumes when ^X V (remote_control in settings) is on, and to every restart of a session that had Remote Control on, whatever the setting says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brtkwr
force-pushed
the
fix/rc-session-names
branch
from
November 22, 2026 17:48
09fc7d5 to
551a731
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
Several sessions show on the phone's Code list under a hostname (
bharats-mbp-local-purrfec…) or a made-up title (Session restart notice,PR backmerge status) instead of their ccs name.Cause
Claude Code picks the Remote Control title when the bridge connects (2.1.330, the REPL bridge init), in this order:
--remote-control <name>or/remote-control <name>(initialName);--name,/rename), then its AI title, then its last user message;<hostname>-<random words>, later replaced by a title Claude makes from a message ([bridge:repl] derived title from message). A restart's first message is ccs's restart note, hence "Session restart notice".History suppression goes on when the conversation was started, or its bridge first created, under another organisation and Remote Control reconnects under the current one. Bharat switches between two organisations with cswap. A local
/renamedoesn't reach the phone for a suppressed conversation either: the rename's push to the bridge title is skipped for it.Evidence from the transcripts (
history-suppressionrecords, causeschokepoint_veto,restored_owner_mismatchandmigration, andbridge-sessionrecords naming both organisations):Tested with two throwaway sessions under the current login (no suppression; closed afterwards):
--name rcprobe-a-7qfollowed by a bare/remote-control, and--name rcprobe-b-7q --remote-control rcprobe-b-7q. Both showed their names on the phone.--namealone starts no bridge, sinceremoteControlAtStartupis false. I couldn't reproduce suppression itself without switching accounts, so for that case this rests on the code path above and the table.Fix
^X V(saved asremote_controlin ccs's settings, off by default): Claude sessions ccs launches (ccs launch,launch_session, the orchestrator) or resumes (Enter, exec in place) start with--remote-control <name>. A resume uses the session's user-set name; a fork gets nothing. The header shows^X V remote control onwhile it's on.ccs restart/^X R/restart_sessionpass--remote-control <name>whenever the old session file had abridgeSessionId, whatever the setting says, so a session with Remote Control on comes back on the phone under its name.What ccs can't fix
claude, open-tab.sh), and ones you turn on with a bare/remote-control: running/remote-control <name>names them./renamein a suppressed session still won't reach the phone.🤖 Generated with Claude Code