high severityClaude Code

Sessions crash/interrupt: context, history, background shells lost; must re-explain everything. Or `claude --resume` shows no recent sessions despite intact JSONL files (index corruption).

Root cause

No robust crash-proof persistent storage; abrupt terminations (e.g., SIGKILL/OOM) desync `sessions-index.json` from JSONL files. Designed stateless between independent sessions.

claude-codesession-persistencecontext-losssessions-index.jsonOOMSIGKILL

Citations