Agent editing files with shell/python - Permission denied from Read and StrReplace tools when using git worktrees

I used these directions for disabling the sandbox:

This issue still exists even with the sandbox disabled. (Unless “Auto-Run Mode” does not completely disable the sandbox. )