[BUG] Plans made in plan mode are "lost" after compacting context

Resolved 💬 5 comments Opened Feb 10, 2026 by speeder Closed Apr 3, 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?

After context is compacted right after using plan mode, Claude Code never reads the plan again, in fact it simply forgets the plan existed in first place, and goes wildly offtrack, interpreting tasks or todo lists wrong.

https://www.reddit.com/r/ClaudeCode/comments/1qzo3xj/claude_code_does_not_review_your_active_plan/

What Should Happen?

If Claude was executing a plan, it should re-read the plan, not forget it.

Error Messages/Logs

When it happened to me, Claude executed the task in a completely wrong manner and reported success, when I asked why it didn't follow the plan, it told me it had no plan. When I mentioned we made a plan with plan mode, it straight claimed that plans of plan mode are deleted after context is compacted, something I know it is not true (because of the reddit thread mentioned earlier I found the plans stored in a folder).

Steps to Reproduce

Create a sufficiently complex plan that you are sure will cause a context compaction, and allow Claude to execute it, it will eventually go offtrack.

There are multiple reports of this on reddit and whatnot, but for some reason none here on Github.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.7 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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