claude-code - 💡(How to fix) Fix [BUG] All prior sessions lost after macOS reboot — session JSONL files missing, `--resume` shows nothing [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54907Fetched 2026-05-01 05:51:18
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×5closed ×1commented ×1

Error Message

Error Messages/Logs

2026-04-30T00:25:56.514Z [ERROR] ENOENT: no such file or directory, open '/Library/Application Support/ClaudeCode/managed-settings.json' 2026-04-30T00:25:56.791Z [ERROR] NON-FATAL: Lock acquisition failed for ...versions/2.1.114 (expected in multi-process scenarios)

Root Cause

Investigation shows the root cause: the session JSONL files in ~/.claude/projects/<project>/ are missing. The session directories (subdirectories containing subagent transcripts) still exist, but the parent-level <session-id>.jsonl files that --resume uses to list sessions are gone. This affects all sessions except the single most recently active session per project.

Code Example

$ claude --resume
No conversations found to resume

$ ls ~/.claude/projects/-Users-luyiming-Projects-cc-things/
250f18bc-cacd-4d8c-bd8e-37d54e8f9252/       ← dir only, JSONL missing
3df75dec-2782-4598-9687-ce3a4c27afb7/       ← dir only, JSONL missing
6c5ef471-da4d-43fc-b5fa-bcd04e0f70a0.jsonl  ← only surviving session file
c93d1ac2-5c77-4379-9015-0b738634c6a8/       ← dir only, JSONL missing
d94e9a0f-66b7-442a-86d9-13fa60070eb2/       ← dir only, JSONL missing

Debug log excerpt (2026-04-30T00:25, pre-reboot):
2026-04-30T00:25:56.514Z [ERROR] ENOENT: no such file or directory, open '/Library/Application Support/ClaudeCode/managed-settings.json'
2026-04-30T00:25:56.773Z [DEBUG] Checking for native installer update to version 2.1.123
2026-04-30T00:25:56.776Z [DEBUG] Version 2.1.123 already installed, updating symlink
2026-04-30T00:25:56.791Z [ERROR] NON-FATAL: Lock acquisition failed for ...versions/2.1.114 (expected in multi-process scenarios)
2026-04-30T00:25:56.791Z [DEBUG] Skipping deletion of 2.1.114 - locked by another process
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

After a macOS reboot, claude --resume shows "No conversations found to resume" even though multiple prior sessions existed and were successfully resumable before the reboot.

Investigation shows the root cause: the session JSONL files in ~/.claude/projects/<project>/ are missing. The session directories (subdirectories containing subagent transcripts) still exist, but the parent-level <session-id>.jsonl files that --resume uses to list sessions are gone. This affects all sessions except the single most recently active session per project.

The pattern is consistent across two projects:

Project 1 (~/.claude/projects/-Users-luyiming-Projects-cc-things/):

  • 4 session directories from Feb 18–24 are present, each with intact subagent JSONLs
  • The corresponding session JSONL files (e.g. 250f18bc-...jsonl) are absent
  • sessions-index.json is also missing for this project
  • Only today's session (6c5ef471-...jsonl) exists as a file

Project 2 (~/.claude/projects/-Users-luyiming-Projects-edinet-agentic/):

  • Same pattern: 4+ session directories with no parent JSONL files
  • sessions-index.json present but references a JSONL that no longer exists
  • Only the most recent session JSONL survives

A Claude Code auto-update from 2.1.114 → 2.1.123 was logged at 2026-04-30T00:25 (several hours before the reboot). The session directories show mtime of 13:49–13:50 on the day of the reboot, suggesting Claude Code touched them during post-reboot startup.

What Should Happen?

Session JSONL files should persist indefinitely across reboots and version updates. claude --resume should list all prior sessions as it did before the reboot.

Error Messages/Logs

$ claude --resume
No conversations found to resume

$ ls ~/.claude/projects/-Users-luyiming-Projects-cc-things/
250f18bc-cacd-4d8c-bd8e-37d54e8f9252/       ← dir only, JSONL missing
3df75dec-2782-4598-9687-ce3a4c27afb7/       ← dir only, JSONL missing
6c5ef471-da4d-43fc-b5fa-bcd04e0f70a0.jsonl  ← only surviving session file
c93d1ac2-5c77-4379-9015-0b738634c6a8/       ← dir only, JSONL missing
d94e9a0f-66b7-442a-86d9-13fa60070eb2/       ← dir only, JSONL missing

Debug log excerpt (2026-04-30T00:25, pre-reboot):
2026-04-30T00:25:56.514Z [ERROR] ENOENT: no such file or directory, open '/Library/Application Support/ClaudeCode/managed-settings.json'
2026-04-30T00:25:56.773Z [DEBUG] Checking for native installer update to version 2.1.123
2026-04-30T00:25:56.776Z [DEBUG] Version 2.1.123 already installed, updating symlink
2026-04-30T00:25:56.791Z [ERROR] NON-FATAL: Lock acquisition failed for ...versions/2.1.114 (expected in multi-process scenarios)
2026-04-30T00:25:56.791Z [DEBUG] Skipping deletion of 2.1.114 - locked by another process

Steps to Reproduce

  1. Use Claude Code across multiple sessions in one or more projects over several weeks
  2. Confirm claude --resume works and lists sessions (it did for me before this reboot)
  3. Reboot the Mac
  4. Run claude --resume in any project directory
  5. Observe "No conversations found to resume"
  6. Inspect ~/.claude/projects/<project>/ — session subdirectories exist but their parent .jsonl files are missing

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown exact version; was working immediately before the 2.1.114→2.1.123 auto-update on Apr 30.

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

  • The auto-update from 2.1.114 → 2.1.123 and the reboot both occurred on the same day (Apr 30)
  • The version update happened ~13 hours before the reboot
  • Session directories were modified at 13:49–13:50 on the day of reboot (post-reboot startup scan)
  • Subagent JSONL files inside the session directories are fully intact — data loss is specifically the parent session JSONL files
  • The sessions-index.json is missing entirely from one project; present-but-stale in another
  • macOS APFS local snapshots confirm reboot at 13:37 local time

extent analysis

TL;DR

The issue can be mitigated by manually restoring the missing session JSONL files or waiting for a potential fix in a future version of Claude Code.

Guidance

  • Investigate the debug log excerpt for any clues on what might have caused the session JSONL files to go missing, particularly around the time of the auto-update and reboot.
  • Check if there are any backup or snapshot mechanisms in place that could be used to restore the missing session JSONL files.
  • Consider reaching out to the Claude Code support team to report the issue and ask for assistance in recovering the lost session data.
  • Be cautious when updating to new versions of Claude Code, as this issue seems to be related to the auto-update from 2.1.114 to 2.1.123.

Example

No code snippet is provided as this issue seems to be related to data loss and version updates rather than a specific code problem.

Notes

The root cause of the issue is unclear, but it appears to be related to the auto-update and reboot process. The fact that the session directories and subagent JSONL files are intact, but the parent session JSONL files are missing, suggests a specific issue with how Claude Code handles session data during updates and restarts.

Recommendation

Apply workaround: manually restore missing session JSONL files if possible, or wait for a potential fix in a future version of Claude Code. This is because the issue seems to be related to a specific version update and reboot process, and waiting for a fix or restoring the files manually may be the most straightforward way to mitigate the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] All prior sessions lost after macOS reboot — session JSONL files missing, `--resume` shows nothing [1 comments, 2 participants]