Smart auto-compact — skip if session is ending
Open 💬 1 comment Opened Jun 9, 2026 by jamezwork
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
Auto-compact triggers based on context fill, regardless of whether the session is still active. If the user is
wrapping up (e.g., running session-close commands, idle, or context hasn't grown in N messages), compacting wastes tokens and adds latency for a summary no one will read.
Proposed Solution
Before auto-compacting, check for session-end signals (idle time, recent message velocity,
explicit /stop or hook trigger). If the session appears to be closing, skip compact or defer it.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Other
Use Case Example
_No response_
Additional Context
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗