Shell Command Execution Fails: Temporary File Not Found
Resolved 💬 2 comments Opened Jun 21, 2025 by almirsarajcic Closed Jun 22, 2025
Bug Description
When Claude tries to run commands I get "no such file or directory" issue\
\
⏺ Bash(git status)
⎿ Error: zsh:source:1: no such file or directory:
/var/folders/8f/khnp6qk51mvgk_jkxz169nr40000gn/T/claude-shell-snapshot-5842
⏺ Bash(git diff HEAD~1..HEAD --name-only 2>/dev/null || echo "No commits ahead of current branch")
⎿ Error: zsh:source:1: no such file or directory:
/var/folders/8f/khnp6qk51mvgk_jkxz169nr40000gn/T/claude-shell-snapshot-5842
⎿ Interrupted by user
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.31
- Feedback ID: d0cd400a-cb51-4e15-a95c-b50dc2a7565c
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:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at checkExecSyncError (node:child_process:891:11)\n at execSync (node:child_process:963:15)\n at NZ (file:///Users/almirsarajcic/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n at file:///Users/almirsarajcic/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n at Q (file:///Users/almirsarajcic/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n at GX (file:///Users/almirsarajcic/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n at fS (file:///Users/almirsarajcic/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n at R9 (file:///Users/almirsarajcic/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-21T19:11:38.364Z"},{"error":"Error: Request was aborted.\n at yw.makeRequest (file:///Users/almirsarajcic/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1317:3784)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-06-21T19:12:03.863Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗