claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Duplicate Plan Generation After User Approval in Plan Mode

Open seannam opened this issue 7 months ago • 1 comments

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"}]

seannam avatar Jun 26 '25 08:06 seannam

I've seen this twice and I was wondering whether I was doing something wrong, but yeah, that happens.

JobaDiniz avatar Jun 27 '25 13:06 JobaDiniz

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/2760
  2. https://github.com/anthropics/claude-code/issues/4161
  3. https://github.com/anthropics/claude-code/issues/2184

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 16 '25 06:08 github-actions[bot]

This issue has been automatically closed as a duplicate of #2760.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 21 '25 09:08 github-actions[bot]

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.

github-actions[bot] avatar Aug 29 '25 14:08 github-actions[bot]