Rank, 14 days: 126 on the Claude Code sheet
1 person reported

All time, since Oct 26.

WorktreeCreate hook blocked

“Bash can't read its working directory or the hook script, the hook fails, and the session start is refused.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/21704/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

WorktreeCreate hook fails with Operation not permitted in Documents. Session start is refused because bash can't read its working directory or the hook script under ~/Documents; the app itself has Documents access.

Is this your bug?

File my report
Where
Desktop app sessions
Error text
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
Versions
26.6.2
Platforms
macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. [Desktop] WorktreeCreate hook fails with 'Operation not permitted' (macOS Documents access) on session start#110499
  2. Desktop: Remote Control can't start sessions in a non-git ~/Documents folder; the WorktreeCreate hook runs without the app's Documents (TCC) access#105247

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.