Lv.1 0 XP

Session Management — Resume, Restart, and When to Choose Each

Core 7 min +30 XP
💡
THE ANALOGY

Returning to a project after time away. If your notes and code are still accurate, you pick up where you left off. If the codebase changed significantly since your last session, you start fresh — but you read your notes first so you don't repeat work.

⚠️ EXAM TRAP — The Wrong Answer People Choose

Resuming a session when the underlying data has changed. A resumed session where prior tool results reference outdated state (files changed, database updated, API results stale) causes Claude to reason about facts that are no longer true.

KEY POINTS
1 Resume (--resume) is correct when: prior context is valid, files haven't changed, tool results are still accurate.
2 Fresh session + summary injection is correct when: prior tool results are stale, the environment has changed, or you're starting a related but different investigation.
3 Always inform a resumed session about what has changed since the last session — don't let Claude reference stale context silently.
4 Session names, not IDs, are used with --resume in Claude Code.
5 A summary injected into a fresh session should capture decisions made, findings discovered, and the current state — not reproduce the raw conversation.