Duplicate Plan Generation After User Approval in Plan Mode

Resolved 💬 4 comments Opened Jun 26, 2025 by seannam Closed Aug 21, 2025

Bug Description
Sometimes in plan mode, it will generate a plan, and then generate another plan even though I approved the first plan. It switches to auto accept mode after I approve and I see that claude code acknowledges I approved the plan (it says something like "great! the user approved the plan...") but then will come back after a few minutes with another plan

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.35
  • Feedback ID:

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 __node_internal_genericNodeError (node:internal/errors:865:15)\n    at checkExecSyncError (node:child_process:890:11)\n    at execSync (node:child_process:962:15)\n    at TZ (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at VX (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at nS (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at f9 (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)\n    at iH1 (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5410)","timestamp":"2025-06-26T04:07:30.700Z"},{"error":"AxiosError: Request failed with status code 401\n    at Fz (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:528:1070)\n    at IncomingMessage.HA (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:529:9964)\n    at IncomingMessage.emit (node:events:529:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1400:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n    at cl.request (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:531:2081)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async X$5 (file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:1979:468)\n    at async Promise.all (index 0)\n    at async file:///Users/seannam/.nvm/versions/node/v18.20.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:1965:6159","timestamp":"2025-06-26T08:53:25.042Z"}]

View original on GitHub ↗

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