claude-code - 💡(How to fix) Fix Native support for continuing a session across machines

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…

Sessions can't be continued on a different machine today. The transcript, memory, and plan files all live on-disk under ~/.claude/projects/<project-hash>/, but the hash is derived from the absolute cwd, so even syncing ~/.claude/ via iCloud doesn't reliably carry a session across machines unless both repos happen to live at identical paths.

Root Cause

Sessions can't be continued on a different machine today. The transcript, memory, and plan files all live on-disk under ~/.claude/projects/<project-hash>/, but the hash is derived from the absolute cwd, so even syncing ~/.claude/ via iCloud doesn't reliably carry a session across machines unless both repos happen to live at identical paths.

Fix Action

Fix / Workaround

Current workaround

RAW_BUFFERClick to expand / collapse

Summary

Sessions can't be continued on a different machine today. The transcript, memory, and plan files all live on-disk under ~/.claude/projects/<project-hash>/, but the hash is derived from the absolute cwd, so even syncing ~/.claude/ via iCloud doesn't reliably carry a session across machines unless both repos happen to live at identical paths.

Current workaround

Manually zip and transfer:

  • ~/.claude/projects/<project-hash>/ (session transcripts)
  • ~/.claude/projects/<project-hash>/memory/ (persistent memory)
  • ~/.claude/plans/*.md (plan files)

then claude --resume on the target machine. Works, but clunky and path-fragile.

Proposed

Account-bound sync for session transcripts + memory + plans. Concretely:

  • claude session push to upload current session state
  • claude --resume --from-cloud to show sessions from any of this user's machines

The surface is small — everything is already flat files (JSONL + markdown). Auth and account identity already exist in the CLI. The project-hash scheme could be replaced or supplemented with a project identifier resolved from git remote origin URL, so sessions re-associate across differing local paths.

Why it matters

Long sessions accumulate real context: plan files, feedback memory, project understanding. Rebuilding that after switching machines throws away value. Anyone with a laptop + workstation hits this.

extent analysis

TL;DR

To enable seamless session continuation across different machines, consider implementing an account-bound sync feature for session transcripts, memory, and plans.

Guidance

  • Investigate replacing or supplementing the project-hash scheme with a project identifier resolved from the git remote origin URL to re-associate sessions across differing local paths.
  • Explore using existing auth and account identity in the CLI to facilitate account-bound sync.
  • Design a simple upload and download mechanism, such as claude session push and claude --resume --from-cloud, to synchronize session state across machines.
  • Consider the implications of storing session data in the cloud, including security and data consistency.

Example

No code example is provided as the issue does not contain sufficient technical details to generate a specific code snippet.

Notes

The proposed solution relies on the existence of auth and account identity in the CLI, as well as the ability to resolve a project identifier from the git remote origin URL. Additional considerations, such as data encryption and access controls, may be necessary when implementing account-bound sync.

Recommendation

Apply a workaround, such as manually zipping and transferring session files, until a more robust account-bound sync feature can be implemented. This is because the current workaround, although clunky, provides a functional solution for session continuation across machines.

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 Native support for continuing a session across machines