Anthropic API Opus: Unexpected Termination During Code Generation

Resolved 💬 4 comments Opened Jul 17, 2025 by krunalmiracle Closed Jan 3, 2026

Bug Description
The bug is that it keeps automatically stopping and doesn't even start writing out the code or anything and used most of my opus tokens in the current session and not giving back it either. I have tried reopening, closing updating the claude. It still the same

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.53
  • Feedback ID: a6e82e6c-4f41-4460-9995-b3fe9429f486

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 AI (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:728:6320)\n    at file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:16554\n    at Q (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n    at MF (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:14339)\n    at zX (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:13205)\n    at MB (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:19174)","timestamp":"2025-07-17T05:05:50.070Z"},{"error":"Error: 1: 1 Error: End of central directory record signature not found. Either not a zip file, or file is truncated.\n    at Ef (file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:28755)\n    at file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:30083\n    at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:40:7\n    at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:190:5\n    at Immediate.<anonymous> (/Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:705:38)\n    at process.processImmediate (node:internal/timers:483:21) {\n  code: 'Extract',\n  name: 'Extract'\n}\nFailed Installing Extensions: file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/%40anthropic-ai/claude-code/vendor/claude-code.vsix\n(node:67163) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=true to handle those exceptions properly.\n(Use `Cursor --trace-deprecation ...` to show where the warning was created)\n\n    at Lq6 (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:5219)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async qq6 (file:///Users/krunal/.nvm/versions/node/v20.18.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:2582)","timestamp":"2025-07-17T05:05:51.282Z"}]

View original on GitHub ↗

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