[BUG] After conversation compacted claude code scans old plans and thinks they are current and acts upon them, though they have been already completed some time ago

Resolved 💬 4 comments Opened Jan 28, 2026 by Alex-R-A Closed Feb 1, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

With latest versions I find that claude after compacted conversations starts to randomly pick old plan files and implement them.

What Should Happen?

Old plans should never be acted upon

Error Messages/Logs

Example of its thinking after compact:

  ⎿  Referenced file ../../.claude/skills/design-patterns/choose-pattern.html                                                                                                                           
  ⎿  Referenced file ../../.claude/skills/design-patterns/SKILL.md                                                                                                                                      
  ⎿  Read ../../../../private/tmp/claude/-Users-alex-code-json-edit/tasks/b02ff1e.output (2 lines)                                                                                                
  ⎿  Read ../../.claude/skills/.gitignore (3 lines)                                                                                                                                                     
  ⎿  Read ../../.claude/skills/design-patterns/.gitignore (3 lines)                                                                                                                                     
  ⎿  Plan file referenced (~/.claude/plans/polished-baking-lemon.md)                                                                                                                                    
  ⎿  Skills restored (codex-ask)     

∴ Thinking…                                                                                                                                                                                             
                                                                                                                                                                                                        
  The user wants me to continue from where we left off. Looking at the summary, the last task was creating the interactive HTML file for navigating the decision tree, which was completed and          
  committed.                                                                                                                                                                                            
                                                                                                                                                                                                        
  There's also a plan file at /Users/alex/.claude/plans/polished-baking-lemon.md about improving Pattern Pitfalls sections. Let me check if this is relevant to continue.                         
                                                                                                                                                                                                        
  The plan says:                                                                                                                                                                                        
  - 311 total pattern files                                                                                                                                                                             
  - 284 have Pitfalls sections                                                                                                                                                                          
  - 27 missing Pitfalls entirely                                                                                                                                                                        
  - Only 12 of 284 mention "overkill" or simplicity concerns                                                                                                                                            
                                                                                                                                                                                                        
  The plan outlines:                                                                                                                                                                                    
  1. Phase 1: Add Missing Pitfalls (27 files)                                                                                                                                                           
  2. Phase 2: Enhance Existing Pitfalls (272 files)                                                                                                                                                     
  3. Phase 3: Validation                                                                                                                                                                                
                                                                                                                                                                                                        
  This seems to be the current work I should continue with. Let me read the plan file more carefully and start working on it.                                                                           
                                                                                                                                                                                                        
  Actually, looking at the system reminder more carefully, it says:                                                                                                                                     
  "If this plan is relevant to the current work and not already complete, continue working on it."                                                                                                      
                                                                                                                                                                                                        
  The plan is about improving Pitfalls sections in pattern files. The summary mentions the last completed task was creating the HTML file, but the plan file exists and should be continued.            
                                                                                                                                                                                                        
  Let me start by checking the current state of the pattern files and their Pitfalls sections to understand where we are in the plan execution.                                                         
                                                                                                                                                                                                        
⏺ Looking at the plan file, I should continue with improving Pitfalls sections in pattern files. Let me check current state and start Phase 1 - adding Pitfalls to the 27 missing files.

Steps to Reproduce

Not sure of steps, this happens randomly but lately very frequent.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.20

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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