claude-code - 💡(How to fix) Fix claude-cli:// URL scheme: add session-id param to jump to a specific session [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60618Fetched 2026-05-20 03:53:51
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Fix Action

Fix / Workaround

Workaround today

Code Example

claude-cli://open?cwd=/Users/me/proj&session-id=92f722d6-4ffa-4f0f-badb-d58f5e105e97
RAW_BUFFERClick to expand / collapse

Use case

I maintain a Todoist-based kanban that tracks long-running projects across many Claude Code sessions. Each card's description lists related session UUIDs as Markdown links so I can jump back into the right session when I pick up the card.

Today the only deep-link option is claude-cli://open?cwd=<path>. That opens Code at the right working directory but always starts a fresh session — the user still has to manually run /resume <uuid> or claude --resume <uuid> in a terminal. Every link is effectively a two-click operation.

What I'd like

Extend the URL scheme to accept a session-id (or resume) param:

claude-cli://open?cwd=/Users/me/proj&session-id=92f722d6-4ffa-4f0f-badb-d58f5e105e97

When present, the handler would pass it through to the CLI as --resume <uuid> (which already exists per claude --help), opening Code directly into that session.

Why it matters

  • Workflow tools (Todoist, Linear, Obsidian, Notion, project trackers) can render these as clickable links — true one-click resume.
  • The CLI flag (-r, --resume) already supports the behavior; this is purely a URL-handler change.
  • The deep-link handler already passes --deep-link-cwd-b64, --deep-link-origin, --deep-link-repo, --deep-link-last-fetch — one more is consistent precedent.

Workaround today

Two-step pattern: deep link opens the cwd, separate code block contains the resume command for copy/paste. Functional but adds friction every time you want to jump back into a session.

Environment

  • Claude Code v2.1.144
  • macOS (Darwin 25.5.0)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix claude-cli:// URL scheme: add session-id param to jump to a specific session [1 comments, 2 participants]