Claude Code repeats planning steps after the plan approval when running ![shell command] when planning is on and then asking for plan
Resolved 💬 4 comments Opened Jul 22, 2025 by oscaromsn Closed Jan 4, 2026
Bug Description
Claude Code repeats planning steps after the plan approval
ENV:
- macOS 15.5 (24F74), Darwin x64
- Nushell 0.105.1
- Zellij 0.42.2
- Zed 0.196.5 (alacritty)
STEPS TO REPRODUCE:
- Enable planning mode
- Run a shell command:
![shell command] - Use a slash command with
$ARGUMENTSfollowed by a copied text - Allow subagents to investigate and generate a plan
- Approve the generated plan
EXPECTED BEHAVIOUR:
Main agent starts executing tasks as planned.
ACTUAL BEHAVIOUR:
Claude Code dispatches multiple subagents to re-investigate the codebase after the plan has already been approved, duplicating the initial planning steps.
IMPACT
- Excessive token usage due to duplicated subagent invocations
- Potential context drift, which may prevent the system from continuing execution as originally planned
Environment Info
- Platform: darwin
- Terminal: zed
- Version: 1.0.57
- Feedback ID: 8491ccae-68e1-49e9-b468-32075db65981
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:child_process:948:22)\n at checkExecSyncError (node:child_process:451:27)\n at execSync (node:child_process:278:31)\n at B8 (/$bunfs/root/claude:684:5841)\n at <anonymous> (/$bunfs/root/claude:580:5728)\n at W (/$bunfs/root/claude:435:14413)\n at y3 (/$bunfs/root/claude:580:3475)\n at hK (/$bunfs/root/claude:580:2341)\n at J2 (/$bunfs/root/claude:580:8263)\n at uHZ (/$bunfs/root/claude:580:8421)","timestamp":"2025-07-22T20:54:36.567Z"},{"error":"Error: ENOENT: no such file or directory, open '/proc/version'\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:470:8329)\n at W (/$bunfs/root/claude:435:14413)\n at QuW (/$bunfs/root/claude:596:10205)\n at processTicksAndRejections (native:7:39)\n at spawnSync (unknown)\n at spawnSync (node:child_process:226:22)\n at execSync (node:child_process:275:109)\n at Z (/$bunfs/root/claude:684:198)\n at uuW (/$bunfs/root/claude:684:376)","timestamp":"2025-07-22T20:54:37.310Z"},{"error":"Error: Request was aborted.\n at new f2 (unknown:1:28)\n at new hB (/$bunfs/root/claude:1148:5965)\n at new c4 (/$bunfs/root/claude:1148:6744)\n at _createMessage (/$bunfs/root/claude:1156:7954)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-07-22T21:34:36.770Z"},{"error":"Error: Request was aborted.\n at new f2 (unknown:1:28)\n at new hB (/$bunfs/root/claude:1148:5965)\n at new c4 (/$bunfs/root/claude:1148:6744)\n at _createMessage (/$bunfs/root/claude:1156:7954)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-07-22T21:35:30.620Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗