2 people reported

All time, since Sep 22.

Subagent Bash refused after worktree

“From then on, each of the subagent's Bash calls came back with the worktree-isolation refusal, so it couldn't continue.”

Still hitting it after the fix? 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/694/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

Subagent Bash commands refused after parent enters worktree. In background job sessions, trivial commands like pwd or ls are refused, even for other repos or scratch directories.

Is this your bug?

File my report
Where
Bash tool
Error text
session is isolated in the worktree `<repo>/.claude/worktrees/<name>` ... working directory resolved to the shared checkout
Versions
2.1.2 to 2.1.285
Platforms
Linux
How bad
Breaks a normal workflow.

Part of: Worktree guard refuses commands and edits9 bugs

  1. Worktree Bash refusals12 people
  2. Worktree guard blocks nested repos4 people
  3. Heredoc refused in worktree3 people
  4. Empty .git treated as repo root2 people
  5. Worktree guard refuses ~ git paths2 people
  6. Worktree guard refuses rewritten git3 people
  7. Isolation fence skips Bash writes2 people
  8. Worktree refuses shell-word args3 people

Not quite your bug?

  1. Worktree isolation refused2 people

Original reports2, newest first

  1. Worktree isolation in a background session blocks subagents' Bash commands, even for other repos#98307
  2. Worktree isolation: a subagent spawned before EnterWorktree has every Bash call refused afterward#96209

Do you work on Claude Code?

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