Skip to content

Post-compaction context includes too much data, causing compaction loop #1272

@blinkagent

Description

@blinkagent

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:

This appears to be a different root cause related to what content is included in the compaction summary.


Reported via Slack

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions