[FEATURE] Let me find and resume Remote Control sessions locally: show them in /resume and add `claude rc list-sessions`
Summary
When I run claude rc on my computer and start a session from my phone, I can never find that session again on the computer. /resume and claude --resume don't list it, and there is no command that does. The transcript is saved locally like any other session — the picker just hides it, and there's no way to look up its ID.
Proposed fix: show these sessions in /resume (marked as Remote Control sessions), and add claude rc list-sessions (or similar) that prints the local session ID, name, directory and first prompt, so claude --resume <id> / claude rc --session-id <id> become usable.
Problem Statement
Sessions that the Remote Control server spawns for a phone/web client are written to ~/.claude/projects/<project>/<uuid>.jsonl with "entrypoint":"sdk-cli". The resume picker filters every such session out. claude --resume --debug-file … confirms it:
Session ed9f1863-… filtered from /resume: entrypoint=sdk-cli
Session dcf41b86-… filtered from /resume: entrypoint=sdk-cli
Session 5f0da884-… filtered from /resume: entrypoint=sdk-cli
Consequences:
/resume,claude --resumeand Ctrl+A ("all projects") never show them — the same filter runs on every entry.claude rc -conly works for the last session and only for ~4 h.claude rc --session-id <id>andclaude --resume <id>work, but nothing prints the ID. claude.ai/code lists the sessions but its URL uses a different id (session_01K…), not the local UUID.- The only mapping is
~/.claude/sessions/<pid>.json(sessionId↔bridgeSessionId), which is deleted when the process exits.
Today the workaround is grepping transcripts for "entrypoint":"sdk-cli" — not something a user should have to know.
Proposed Solution
/resumeandclaude --resume: includesdk-clisessions that were created byclaude remote-control(they carry abridgeSessionId), with a marker such as· remotein the row. If hiding headless SDK sessions is intentional for other SDK uses, scope the exemption to Remote Control-spawned ones.claude rc list-sessions(orclaude rc --list): print local session ID, session name (e.g.my-repo-26), cwd, status (if running), last modified, first prompt — for the current directory by default,--allfor every project. Output should be usable directly withclaude --resume <id>andclaude rc --session-id <id>.
Alternative Solutions
- A flag
claude --resume --include-remote/--all-entrypointsif changing the default is undesirable. - Show the local session UUID somewhere in claude.ai/code / the mobile app.
Environment
Claude Code 2.1.270 (also seen on 2.1.269), Linux, claude rc with default --spawn same-dir.