Resume the right session. Check the work on disk.

Troubleshoot Claude Code resume by checking the directory, session name and local history. Recover an interrupted task without repeating a completed action.

If Claude Code resumes the wrong conversation, first check which folder you launched it from. If it resumes the right conversation but seems confused about the code, inspect the working tree. Conversation history and files on disk are two separate pieces of state.

Choose the session deliberately

pwd
git branch --show-current
git status --short
claude --resume

Use the picker when you are unsure which session you need. claude --continue selects the latest session in the current directory, which may be a short investigation you opened after the main task. If you know a session’s name or ID, pass it to --resume.

Check the project and worktree

A task started in a worktree may not be where you expect when you reopen your default terminal folder. Run git worktree list from the repository, locate the task checkout and inspect its status. Do not create a replacement branch with the same purpose until you know whether the original still contains your work.

When a name is ambiguous, use the picker and inspect the conversation instead of selecting by a familiar-looking title alone. Naming future sessions after a specific task makes this much easier; use /rename checkout-redirect inside the session.

If history is missing

Confirm you are using the same local account, machine and Claude Code configuration as before. A reinstall, another user account or a deleted history directory can change what the picker can see. CLI, desktop and web histories are not interchangeable lists; check the surface where the conversation started.

Do not edit transcript files as your first recovery step. Preserve any remaining history before investigating it. If the conversation is unavailable, a new session can still work from the branch, diff, issue and test results. Tell it clearly that this is a handoff, rather than pretending it has the original context.

Recover the task, not just the chat

After a crash or interruption, inspect the result of the last action before repeating it. A command may have changed a file or sent a request even if the conversation never recorded its response. Look at the current files and, for external work, the target system’s readback.

We are continuing the checkout redirect fix.
First inspect the current branch and uncommitted diff.
The last turn was interrupted during a test run.
Check what completed before rerunning anything.
Report the next safe step; do not push or deploy.

Then rerun the smallest relevant check and reconcile the result with the task’s acceptance criteria. If the target branch moved while you were away, account for that before trusting an old test pass.

Make tomorrow’s resume easier

Leave a brief record of the branch, changed files, verified checks and next step. Keep important work committed or otherwise safely retained according to your project’s workflow. A long chat history is useful context, but it is not a backup of the working directory.

For the everyday commands, see our basic resume guide. For managing several unfinished tasks, see the Mac review-queue workflow.

Command references checked October 15, 2026: Claude Code session management. Check your installed CLI’s help if a flag is unavailable.

Common questions

What is the difference between --continue and --resume?

claude --continue selects the latest conversation in the current directory. claude --resume opens a picker, or accepts a known session name or ID to select a particular conversation.

Does resuming a session undo changed files?

No. A conversation is not a Git snapshot. Inspect the current branch, diff and any external actions before asking the resumed session to continue.

Keep reading

The XAgents team