Tool Execution Failure: Invalid Bash Command Argument

Resolved 💬 7 comments Opened Jul 17, 2025 by avastmick Closed Jan 3, 2026

Bug Description
The AI cannot use any Bash or similar tools, as per the following output:

⏺ Let me create the new directory structure:

⏺ Bash(mkdir -p templates styles output/cv output/letter)
⎿  Error: The argument 'args[2]' must be a string without null bytes. Received "source <(cat <<'__CLAUDE_SNAPSHOT_EOF__'\n" +
'# Snapshot file\n' +
'# Unset all aliases to avoid conflicts with functions\...

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 1.0.54
  • Feedback ID: 68e02359-36fa-4506-b9ef-9455b58be38c

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:892:11)\n    at execSync (node:child_process:964:15)\n    at DI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:730:2037)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:41635\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n    at PF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:39420)\n    at $X (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:38286)\n    at MB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:44255)","timestamp":"2025-07-17T03:21:18.842Z"}]

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗