Skip to content

Shell Command Execution Fails: Temporary File Not Found #2420

Closed as duplicate

Description

@almirsarajcic

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"}]

Activity

  1. almirsarajcic commented on Jun 22, 2025

    @almirsarajcic
    Author

    Duplicate of #2139. Related to #1872.
    Details: #2139 (comment).

  2. github-actions commented on Aug 11, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  3. locked as resolved and limited conversation to collaborators on Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsbugSomething isn't workingplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions