Failed to load session - Claude Code Desktop local sessions broken after denying permission prompt (macOS)

Resolved 💬 3 comments Opened Feb 28, 2026 by priyank-insurgrid Closed Mar 4, 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?

Environment:

macOS 15.6.1 (arm64, Apple M2 Max)
Claude Desktop app: v1.1.4498
Claude Code binary: v2.1.51 (used by desktop), v2.1.63 (native)

Steps to reproduce:

Opened Claude Code desktop app
Denied a macOS permission prompt (folder access)
All new local sessions now fail immediately with "Failed to load session"
Old sessions still load fine

Error in logs (~/Library/Logs/Claude/main.log):
[error] Session local_xxx query error: Claude Code process exited with code 1
error_category: 'process_crashed'
is_startup_error: true
raw_output: undefined

[error] [detectedProjects] source failed: Error: Failed to spawn /usr/bin/sqlite3
(via disclaimer): /Applications/Claude.app/Contents/Helpers/disclaimer exited with
code 14: Error: in prepare, unable to open database file (14)
Root cause: The macOS sandbox wrapper (disclaimer) is blocking SQLite from accessing its database file after permission was denied. The sandbox state is corrupted and cannot be reset by the user.
What was tried:

Deleted claude-code-sessions/, local-agent-mode-sessions/, claude-code-vm/
Reset all permissions via tccutil reset All com.anthropic.claudefordesktop
Deleted both Keychain entries (Claude Safe Storage, Claude Code-credentials)
Full uninstall and reinstall of Claude desktop app
Re-authenticated OAuth token via CLI (/login)
Claude Code binary works fine standalone — exit code 1 only happens when spawned by the desktop app with session args

Workaround: CLI works fine. Remote sessions untested.
GitHub issue reference: #29487

What Should Happen?

We should be able to load session and run claude code

Error Messages/Logs

Steps to Reproduce

Opened Claude Code desktop app
Denied a macOS permission prompt (folder access)
All new local sessions now fail immediately with "Failed to load session"
Old sessions still load fine

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Code binary: v2.1.51 (used by desktop), v2.1.63 (native)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗