Unexpected CLI Termination During Code Generation

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

Bug Description
Claude code stops wiout continuing it just ends

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.53
  • Feedback ID: 77611592-fe1b-46a3-8457-b9940055e885

Errors

[{"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:///opt/homebrew/lib/node_modules/%40anthropic-ai/claude-code/vendor/claude-code.vsix\n(node:36443) [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:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:5219)\n    at async qq6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:2582)","timestamp":"2025-07-17T04:44:08.361Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0: all messages must have non-empty content except for the optional final assistant message\"}}\n    at eQ.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1180:6428)\n    at k$.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:2101)\n    at k$.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-17T04:44:27.535Z"}]

View original on GitHub ↗

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