Feature: open Claude Desktop to a specific session UUID via CLI flag or deep link
Summary
No supported way to launch Claude Desktop (Windows/Mac/Linux) directly into a specific session by UUID. Restart / session-sharing / external-launcher tooling has to leave the user at the home screen.
Use case
Building a /restart plugin for Claude Code (forty4420/cc-restart — private testing, plan to make public). Flow:
- User: "restart yourself" (or
/restart) - Plugin preflights (dirty git, running background work)
- Plugin captures the current session UUID from the child CLI process command line (
--resume <uuid>) - Plugin gracefully closes desktop via
WM_CLOSE(so Electron persists state) - Plugin relaunches
Claude.exe
Step 5 works, but the app opens to the home screen. There is no CLI flag or deep-link that can say "open session <uuid>".
What I tried
Claude.exe --resume <uuid>— flag ignoredclaude://...URL protocol handler is registered (HKCU\Software\Classes\claude), but no documented path format- Disassembled
app.asar— foundclaude-nest:/claude-nest-dev:/claude-nest-prod:protocols referenced, but no/session/route Local Storage/ leveldb persistence is binary-encoded and not a documented surface--remote-debugging-portflag is dropped because of Electron's single-instance lock (new launches are redirected to the running PID, flags stripped)
Ask
Either of these unlocks a lot of external tooling:
A. CLI flag
Claude.exe --resume <session-uuid>
Opens desktop directly to that session, or noop-with-warning if unknown UUID.
B. Deep link
claude://session/<session-uuid>
or equivalent. Route the existing registered claude:// URL handler to the session router.
Why this matters
Unblocks:
- Self-restart plugins (preserve active session across restart)
- Session bookmarking / sharing between machines via URL
- External task launchers ("open Claude to session X when this build finishes")
- IDE integrations that want to jump to a specific conversation
Related: #34320 (terminal /restart), #46927 (cowork restart loses sessions).
Platform
Windows 11. Claude Desktop 1.3109.0 (MSIX). Willing to test on mac/linux too if useful.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗