Bash tool produces permission denied errors in stderr for temp working directory
Resolved 💬 3 comments Opened Dec 2, 2025 by jonbeller Closed Dec 6, 2025
Description
The Bash tool consistently outputs permission denied errors to stderr, even though the commands execute successfully:
zsh:1: permission denied: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/claude-XXXX-cwd
Steps to Reproduce
- Use the Bash tool with any command that requires a working directory
- Observe stderr output contains permission denied errors
- The command still executes successfully, but the error messages clutter the output
Expected Behavior
The Bash tool should handle temporary working directories without producing permission denied errors in stderr.
Actual Behavior
Every Bash command execution includes a permission denied error for a temporary directory path, making output difficult to read.
Environment
- OS: macOS (Darwin 24.6.0)
- Shell: zsh
- Claude Code version: Latest
Impact
The error messages don't affect functionality but create significant noise in the output, making it harder to read actual command results.
Suggested Fix
Handle temp directory creation/access more cleanly to avoid permission errors, or suppress these specific stderr messages since they don't indicate actual failures.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗