Skip to content

fix: name Remote Control sessions after their ccs name - #382

Merged
brtkwr merged 1 commit into
mainfrom
fix/rc-session-names
Nov 22, 2026
Merged

brtkwr merged 1 commit into
mainfrom
fix/rc-session-names

Conversation

@brtkwr

@brtkwr brtkwr commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

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:

  1. an explicit Remote Control name: --remote-control <name> or /remote-control <name> (initialName);
  2. only if the conversation's history is not suppressed: the session's custom title (--name, /rename), then its AI title, then its last user message;
  3. otherwise <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 /rename doesn'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-suppression records, causes chokepoint_veto, restored_owner_mismatch and migration, and bridge-session records naming both organisations):

session phone shows suppression records orgs on its bridges
orchestrator wrong 2870 both
gcp-cost-orchestrator wrong 381 both
grant-auditor-alert-watch wrong 1287 both
zendesk-agent-creditnik right none one
pr-backlog-sweep right none one

Tested with two throwaway sessions under the current login (no suppression; closed afterwards): --name rcprobe-a-7q followed by a bare /remote-control, and --name rcprobe-b-7q --remote-control rcprobe-b-7q. Both showed their names on the phone. --name alone starts no bridge, since remoteControlAtStartup is 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 as remote_control in 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 on while it's on.
  • ccs restart / ^X R / restart_session pass --remote-control <name> whenever the old session file had a bridgeSessionId, whatever the setting says, so a session with Remote Control on comes back on the phone under its name.

What ccs can't fix

  • Sessions ccs didn't start (typed claude, open-tab.sh), and ones you turn on with a bare /remote-control: running /remote-control <name> names them.
  • Running sessions keep their current title until they're restarted or resumed through ccs.
  • A /rename in a suppressed session still won't reach the phone.

🤖 Generated with Claude Code

@brtkwr
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
brtkwr force-pushed the fix/rc-session-names branch from 09fc7d5 to 551a731 Compare November 22, 2026 17:48
@brtkwr
brtkwr merged commit df4f0e5 into main Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant