Agent Hangs on Complex Prompts, Becomes Unresponsive
Bug Description
Subject: Agent freezes and becomes unresponsive on complex prompts
Environment:
- Operating Systems (Confirmed): macOS, Ubuntu Desktop, WSL
Bug Description:
The agent has recently started becoming unresponsive when given any prompt that requires a non-trivial amount of thought or planning. When this occurs, the agent might indicate it is
"Thinking..." or "updating tools," but it never actually performs an action or returns a response. It simply hangs indefinitely.
This issue is not related to a specific connection method and has been confirmed to happen on both macOS and Ubuntu Desktop environments. Simple, direct commands work as expected, but
any task requiring deeper processing now fails.
Troubleshooting Steps Taken:
- Logging out and back into the account.
- Re-installing the agent/tool.
These actions did not solve the issue.
Steps to Reproduce:
- On a supported OS (macOS or Ubuntu Desktop), launch the agent.
- Provide a prompt that requires complex processing (e.g., "Analyze this code snippet for potential bugs," or "Draft a detailed project plan for a new web application").
- Observe that the agent indicates it is processing but then freezes and never delivers a response.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.53
- Feedback ID: c4dc8d22-efd3-4fec-abe0-6b7a653e4f4d
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:892:11)\n at execSync (node:child_process:964:15)\n at AI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:728:6320)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:16554\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n at MF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:14339)\n at zX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:13205)\n at MB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:19174)","timestamp":"2025-07-17T05:06:51.579Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482:14)\n at Socket.emit (node:events:507:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-17T05:06:52.923Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗