Skip to content

Claude transcripts live outside the data home β†’ migrating/backing up the home silently drops all resume historyΒ #430

Description

@vikasprogrammer

Severity: 🟠 completeness

Discovered during the instawp box-to-box migration (2026-07-21).

Problem

The data home is documented as "the tenant's portable state," but resumable conversation history lives outside it, in ~/.claude/projects/<munged-abs-cwd>/<claude_session_id>.jsonl β€” where <munged-abs-cwd> is the absolute agent-dir with /β†’-.

Consequences:

  1. A "copy the data home" migration/backup silently drops all resume history β€” claude --resume finds no transcript.
  2. Even when copied, the directory name encodes the old absolute path, so it must be re-munged (-home-OLD-* β†’ -home-NEW-*) to match the new cwd.

Fix direction

  • Document clearly that transcripts are not in the data home; and/or
  • Point Claude's project dir under the data home (so it travels with the home); or
  • Ship a transcript export/import helper as part of a migration/backup command.

Workaround

docs/tenant-box-migration.md Β§5 rsyncs ~/.claude/projects and re-munges dir names (with a ./ prefix so rsync doesn't parse the leading - as a flag).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions