macOS Ghostty loses folder access during Claude sessions despite Full Disk Access #12947
Replies: 7 comments 1 reply
|
Did you try to access the file using |
|
Experiencing the same with Codex (but haven't observed it with Claude Code yet) |
|
this happens to me randomly as well, seems like its more common when im running many claude session in parallel, but i've had it happen with just a single session |
|
For what it's worth, I am experiencing this exact same issue in the standard macO(Tahoe) Terminal app as well. |
|
Same here, I use both Claude Code and Codex. |
|
This is not a Ghostty bug. Same symptom reproduces in Terminal.app and iTerm2 — Ghostty is only the responsible app that macOS attributes the TCC grant to, so it's the one that has to be restarted to recover. Mechanism, as far as it's understood so far:
The upstream thread with kernel-log timelines, counterfactuals, and the per-folder (Desktop vs Documents vs Downloads) asymmetry: anthropics/claude-code#58952 — I just posted a data dump there. Practical notes for anyone hitting this:
Worth noting for triage: it isn't Claude-specific either. Claude Code just happens to be a long-running process doing sustained file I/O inside protected folders, which is what makes the break visible. |
|
Adding a confirmation with a data point that I think extends the scope of this report: it is not limited to the protected home folders. On my Mac Studio this took out four external APFS volumes simultaneously ( It also means the Environment
Evidence that it is not TCCI captured this while the failure was live, before recovering. Everything below is from the same incident window:
So the grant is present, tccd affirmatively allows it when asked, and the denial happens with no TCC request and no sandbox deny record — consistent with the "permission not being applied rather than lost" reading already in this thread. Notably, Full Disk Access had been granted to Ghostty on 2026-06-28, the day after the first occurrence, specifically as an attempted fix. It did not prevent the 2026-08-03 recurrence — FDA was granted and honored throughout. Anyone landing here from a search should know that toggling FDA is masking, not fixing. Memory-pressure correlationConsistent with the jetsam theory upthread. At the moment of failure:
I run several concurrent Claude Code and Codex CLI sessions in Ghostty tabs, which is a heavy long-lived workload — same usage pattern as the original report. RecoveryConfirming what others found:
For anyone else hitting this mid-session: nothing durable is lost by restarting the app. Claude Code transcripts live on the internal disk under One caveat on the "reproduces in other terminals" claimI want to be precise, because I initially drew the wrong conclusion myself. During the incident a freshly launched iTerm2 read all four volumes fine while Ghostty was denied. That is not evidence that iTerm2 is immune — it had been running for minutes, not 14 days, so it had no opportunity to accumulate the state. It only establishes that the fault is per-process rather than system-wide. I have no long-running-iTerm2 data point either way. |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
When using Claude Code inside Ghostty on macOS, filesystem access to project directories eventually stops working even though Ghostty has Full Disk Access enabled.
Initially, Claude can access files and directories without any issues. After some time, however, Claude starts reporting that it cannot access directories that were previously accessible. The issue can be temporarily resolved by going to System Settings -> Privacy & Security -> Full Disk Access and disabling/re-enabling Ghostty's Full Disk Access permission. After doing so, access is restored for a while, but the problem eventually returns.
Because toggling Full Disk Access temporarily fixes the issue, it seems that Ghostty may be losing access to permissions that were previously granted.
Expected Behavior
Ghostty should retain Full Disk Access permissions for the duration of the session, and applications running inside Ghostty (such as Claude Code) should continue to have access to directories that were previously accessible.
Re-enabling Full Disk Access should not be necessary.
Actual Behavior
After using Claude Code for some time, filesystem access is lost and Claude can no longer access directories that were previously available.
Disabling and re-enabling Ghostty's Full Disk Access permission in macOS temporarily restores access, but the issue eventually reoccurs.
Reproduction Steps
Ghostty Logs
No response
Ghostty Version
OS Version Information
macOS Tahoe 26.3
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.All reactions