[FEATURE] Post-compaction: Prompt Claude to check in with user before ignoring user and "continuing" tasks
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
After context compaction, the summary ends with instructions to "continue seamlessly without user interaction" - but the compacted state, because of the unexpectedness for Claude, often causes stale TodoWrite lists, outdated task context, and background jobs that finished/failed during the compaction. Claude charging ahead with stale state causes confusion and can have serious consequences (compaction right in the middle of a migration process e.g.).
Proposed Solution
After compaction, Claude should briefly check in with the user before taking actions - acknowledging the compaction happened and confirming the current state/priorities before proceeding. I believe this could be achieved by changing the standard bottom line of the freshly compacted context summary to have Claude NOT just trot on, but do a brief check in with the user before continuing regarding for example, the TodoWrite that might be a bit stale. Example: I prompted Claude Code for VS Code that _that exact prompt_ would be the last one for that session, and that we did good work that night. Compacting happened, and the last 2 lines of the compacted summary are: "Next Claude should start fresh and check in with user before taking actions.." and below that, the dreaded _"Please continue the conversation from where we left it off without asking the user any further questions. Continue with the last task that you were asked to work on."_ killer line. So either have Claude Check in with the user after compacting, or, give the user a chance to choose from a few end lines that get added to the summary text.... Or add a post-compacting hook that then can be leveraged by the user. give us Something please.
Alternative Solutions
this is pure Anthropic-managed text, no way to change the last line of the compacted text to what I would want the Claude in a session to do, or not do. there is no post-compacting hook either, only a pre-compacting hook, which COULD be used to just at least somehow save and then wipe a todoWrite maybe, but that is not the point of this request.
Priority
Medium - Would be very helpful
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗