3 people reported

All time, since Sep 19, including 1 thumbs-up on GitHub.

Worktree refuses shell-word args

“In a session isolated by EnterWorktree, a command is refused whenever any of fifteen shell words appears as an argv element — not only as argv[0].”

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/17304/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

Worktree isolation refuses commands with shell words as arguments. Words like hash, source, bind or eval as any argv element, even a path or argument value, trigger "runs a string through" refusals.

Is this your bug?

File my report
Where
Bash tool
Error text
This session is isolated in the worktree <worktree>, but this command runs a string through source, which can't be verified to stay inside the worktree.
Versions
2.1.304
Platforms
Windows
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. Subagent Bash refused after worktree2 people
  4. Heredoc refused in worktree3 people
  5. Empty .git treated as repo root2 people
  6. Worktree guard refuses ~ git paths2 people
  7. Worktree guard refuses rewritten git3 people
  8. Isolation fence skips Bash writes2 people

Original reports2, newest first

  1. Worktree-isolated session refuses ordinary commands whose ARGUMENTS contain the words source or bind ("runs a string through source/bind")#103819
  2. Worktree isolation refuses fifteen shell words in any argv position, including in read-only commands containing no git#95611

Do you work on Claude Code?

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