[BUG] "Failed to load session" errors in Claude Code Mac Desktop

Status Fixed / completed
Reported on v2.0.76
Maintainer reply None cached
Activity 6 comments · opened Jan 26, 2026 · closed Jan 27, 2026

Preflight Checklist

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

What's Wrong?

Body:

Sessions from earlier in the week show up in the session picker UI but fail to load with a "Failed to load session" error.

Environment:

macOS (Darwin 25.2.0)
Claude Code (latest as of 2025-01-25)

What I found:

The session appears in the session list with its title and timestamp
The corresponding directory on disk (~/.claude/projects/.../) exists but contains only a subagents/ folder — no session transcript
sessions-index.json has an empty entries array despite multiple sessions existing
Multiple sessions from different days are affected

Expected behavior: Clicking a session in the list should load the conversation.
Actual behavior: "Failed to load session" error. The session data was never persisted to disk.

What Should Happen?

Expected behavior: Clicking a session in the list should load the conversation.
Actual behavior: "Failed to load session" error. The session data was never persisted to disk.

Error Messages/Logs

"Failed to load session" message with only option being "Back to landing page" button

Steps to Reproduce

Click on sessions from last Wednesday
See error messages

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude Code version 2.0.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

6 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/20612
  2. https://github.com/anthropics/claude-code/issues/18311
  3. https://github.com/anthropics/claude-code/issues/18619

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

brendannyhan · 8 months ago

May be related, but difference is sessions showing up in sidebar of CC Mac desktop UI but not loading or generating "Failed to load session" messages when selected

brendannyhan · 8 months ago

Suggested by CC:

Useful details to include:

macOS Darwin 25.2.0
Sessions appear in sidebar but load blank / "Failed to Load Session"
sessions-index.json has empty entries array
Session directories exist but contain no conversation.jsonl files
history.jsonl only has 9 entries despite 14 session directories

brendannyhan · 8 months ago

now happening within session. I stopped Claude and it went into this failure mode - lost the conversation. now none of them will open

brendannyhan · 8 months ago

Ah, closing - someone online said to set to 0 cleanupPeriodDays so conversations were kept longer, but instead led to deletions

cleanupPeriodDays was set to 0 in ~/.claude/settings.json, which caused Claude Code to immediately purge session conversation logs (.jsonl files). The session entries still appeared in the sidebar, but clicking them failed because the underlying data was already deleted.
github-actions[bot] · 8 months ago

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.