[BUG] Claude constantly rushes off working on the wrong thing after compaction

Resolved 💬 11 comments Opened Sep 17, 2025 by lukens Closed Jan 11, 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 compaction, Claude will tend to leap on the current/next todo item, and rush ahead working on it, even if before compaction we had diverged from strictly following the todos (which, for me, is probably at least 90% of the time).

This relates to what I consider a separate bug/feature gap (#7760), where Claude will mark todos as complete before you give express confirmation, even when being told to seek express confirmation before marking off todos. This means I will often be fine tuning a todo Claude has already marked as complete when compaction happens, and then post compaction Claude will start working on the next todo without me having signed off on the previous one still, and with that earlier work still incomplete.

What Should Happen?

It would be better if it could, instead, look at the most recent chat context.

For me, it would also be better if after compaction it just stopped and said something like "I've just performed compaction, what would you like me to do now?", rather than jumping to conclusions and working on the from thing. Kind of a failsafe, rather than riskily pouncing on the next todo task, when it has lost context, and it might not be what you were working on anyway. I almost instead raised this as a feature request asking for a user settings to enable a "stop and ask" post-compaction mode.

Error Messages/Logs

Steps to Reproduce

  • Work with Claude on todos for a while
  • As compaction gets closer, diverge from the todos to start discussing/working on something else
  • Wait for compaction to happen
  • Claude will generally steam ahead working on the next todo item after compaction

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.0.117 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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