You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:Session compaction includes already-summarized messages, wasting tokens #12479
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Description:
The session compaction logic in compaction.ts currently includes all historical messages every time it performs compaction, even when previous compaction summaries already exist. This causes unnecessary processing and token waste.
I noticed that the prune() method already implements this optimization, recognizing that messages before a summary point don't need reprocessing.
If you agree this optimization is needed, I would like to be assigned to handle and fix this issue.
These issues all converge on the same root cause: compaction logic reprocessing messages that have already been summarized, causing token waste and context degradation.
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Feb 6, 2026
This issue might be a duplicate of existing issues. Please check:
These issues all converge on the same root cause: compaction logic reprocessing messages that have already been summarized, causing token waste and context degradation.
Feel free to ignore if none of these address your specific case.
fix: skip already-summarized messages during compaction (anomalyco#12479
github-actions commentedon Apr 15, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.