
A Claude Code session on a Mac lives in two places. Knowing which is which explains almost every “my session disappeared” moment.
Place 1: the transcript
Every message, tool call and answer is appended to a file in your home folder:
~/.claude/projects/<project-folder>/<session-id>.jsonl
The folder name is your project path with slashes turned into dashes. Each line is one event of the conversation. This file belongs to no account. It is the whole memory of the session, and it is what claude --resume reads.
Place 2: the sidebar entry
The desktop app keeps a small entry for every session it shows: title, project folder, the link to the transcript. These entries are stored per signed-in account:
~/Library/Application Support/Claude/claude-code-sessions/ <account>/<organization>/local_<id>.json
The sidebar reads only the folder of the account you’re signed in to. Start fifty sessions under your personal plan, switch to the team seat, and that folder is empty. The fifty transcripts are still in place 1, waiting.
What this means in practice
- Switching accounts never deletes a session. It hides it from the sidebar.
- Copying a transcript is not enough. Without an entry in the right account folder, the desktop app won’t list it.
- Summaries lose context. The transcript already holds everything; a new chat with a summary starts with less.
The fix
SessionBack compares the entries of all accounts on your Mac with the transcripts and writes the missing entries into the account you’re using now. It never edits a transcript, never overwrites an existing entry, and saves a backup before every import.
Let the sidebar remember.
SessionBack finds every session on this Mac that the signed-in account can’t see and puts it back. Free, local only, one click to undo.
Get SessionBack →Photo: Unsplash, illustrative.