-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
Description
There's a bug with the post-compaction context where sometimes it includes too much data (presumably file edit diffs), causing the chat to enter an essentially endless compaction loop.
Expected Behavior
After compaction, the context should be significantly reduced, allowing normal conversation to continue without immediately triggering another compaction.
Actual Behavior
The post-compaction context sometimes includes excessive data (likely file edit diffs), which keeps the context size high enough to trigger auto-compaction again, resulting in a compaction loop.
Related Work
There have been previous fixes for compaction loops:
- 🤖 fix: prevent compaction infinite loop and stale usage display #886 - Fixed infinite loop caused by message queue overwriting compaction metadata and stale usage display
- 🤖 fix: compaction stream validation and replay blocking #1247 - Fixed compaction stream validation and replay blocking issues
This appears to be a different root cause related to what content is included in the compaction summary.
Reported via Slack