Remote Control registration is lost after /clear and never re-established
Environment
- Claude Code 2.1.219 (desktop-bundled) / 2.1.220 (CLI), macOS (darwin-arm64)
- claude.ai Max subscription, first-party endpoint
remoteControlAtStartup: truein~/.claude/settings.json
Steps to reproduce
- Set
remoteControlAtStartup: trueand start a session — it auto-appears in the mobile app's Remote Control list ✅ - Run
/clearin that session - The entry disappears from the mobile list, and the post-clear conversation is never re-registered. Only a manual
/remote-controlbrings it back.
Expected
The session stays controllable (or re-registers) across /clear. The setting's own description says "Start Remote Control bridge automatically each session", and /clear's description says "Start a new session with empty context" — so a post-/clear session should have the bridge too.
Analysis
The auto-connect predicate (remoteControlAtStartup / --remote-control) is evaluated once during REPL bootstrap. /clear mints a new conversation id (conversation_reset) in the same process, and its handler never re-runs bridge registration — so the old bridge session is archived and the new conversation id is left unregistered. Opening a brand-new conversation works because that spawns a new process, which re-runs the startup predicate.
Impact
Users who keep long-lived named sessions and reset context with /clear silently lose mobile access every time they clear.
Related but distinct: #63924 covers /clear sent from the remote device; this issue is about local /clear destroying the registration.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗