Unexpected Execution Halt: No Hook Commands Processed
Bug Description
Claude Code just stops in the middle of what it was doing. I can see this in the debug logs.
[DEBUG] Executing hooks for Stop
[DEBUG] Getting matching hook commands for Stop with query: undefined
[DEBUG] Found 0 hook matchers in settings
[DEBUG] No match query, returning all 0 hooks
[DEBUG] Found 0 hook commands to execute
[DEBUG] AutoUpdaterWrapper: Installation type: unknown, using native: false
The end result is that CC stops in the middle of a task and doesn't execute anything.
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.54
- Feedback ID: e26cf92a-c36e-4008-80d9-43dcf1af3f33
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:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at DI (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:730:2037)\n at file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:41635\n at Q (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n at PF (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:39420)\n at $X (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:38286)\n at MB (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:44255)","timestamp":"2025-07-17T04:18:36.011Z"},{"error":"Error: Agent 1: Last message was not an assistant message\n at i5A (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:1588)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2343:791)\n at async Y34 (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2225:9788)\n at async XL1 (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2225:6451)\n at async Xp (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1623:1318)\n at async F34 (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2225:5596)\n at async D34 (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2225:5081)\n at async WH (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2225:3533)\n at async PQ (file:///Users/seppo/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2639:2662)","timestamp":"2025-07-17T04:25:02.225Z"}]
I'm having the same problem. It will start to work on a task and then just stop.
Tried logging out and back in again - didn't help
Same here also
Apparently this is an issue with their API https://status.anthropic.com/
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
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.