[FEATURE] Allow users to opt out of post-compaction continuation injection via CLAUDE.md
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
Post-compaction continuation injection overrides user-defined check-in behavior in CLAUDE.md.
After context compaction, Claude Code injects a system instruction to "resume directly without asking the user any further questions." This creates two problems:
- It overrides user-specified behavior. My CLAUDE.md explicitly says to stop and check in after compaction, and specifically notes that the system may inject a continuation instruction and to override it — but the injection wins at the model level anyway.
- It can cause unsolicited action. The compaction summary describes what was being worked on, but the continuation instruction causes the agent to act on the summary's "next step" as if it has approval — even when approval hasn't been given, or when the situation has changed.
Proposed Solution
Allow users to opt out of the continuation injection via CLAUDE.md or project settings. The injection is a reasonable default for clean mid-task resumptions, but should not override explicit user preferences.
Frankly, even better would be if I could see all the injections somewhere and opt in/out. I'm working with Claude Code Extention in VScode. New injections and instructions are changed and added by the system all the time and it costs me time to re-structure my workflow to accommodate them.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Configuration and settings
Use Case Example
- User defines a check-in step in CLAUDE.md ("after compaction, stop and ask before proceeding")
- Context compacts mid-session
- Agent resumes and system injection overrides the CLAUDE.md instruction
- Agent acts on the summary's "next step" without user approval
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗