Claude Code Abruptly Terminates Task Without Completing Workflow
Resolved 💬 4 comments Opened Jul 14, 2025 by krunalmiracle Closed Jan 3, 2026
Bug Description
just it keeps closing the chat whenever given a task and still counts towards the usage. it shouldn't happen
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.51
- Feedback ID: 9ada6170-5a12-4309-9374-fb087d376817
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 eD (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:712:4489)\n at file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13989\n at Q (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:14406)\n at QF (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13129)\n at cC (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:11995)\n at qB (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:16609)","timestamp":"2025-07-14T09:42:09.414Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗