Skip to content

[BUG] All prior sessions lost after macOS reboot — session JSONL files missing, --resume shows nothing #54907

Closed as duplicate

Description

@Gotchaha

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// — 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

Activity

  1. github-actions commented on Apr 30, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. Local CLI conversations silently disappear from disk — multiple chats lost, JSONL files gone #54092
    2. Auto-update deletes session .jsonl files, wiping token usage history and conversation data #41591
    3. Desktop app update deletes session history (sessions-index.json + .jsonl files) #48334

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. github-actions commented on May 8, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  3. locked as resolved and limited conversation to collaborators on May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corebugSomething isn't workingdata-losshas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions