compaction-threshold changedbuild-with-claude/compaction-threshold
Nearest release: v2.1.307, published 6 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−1removed
From line
2,918
where the diff opens
First seen
21 Sep 2026
this site's first read of the page
Recorded edits15to this page, all time
The whole hunk
from line 2918, old and new numbered
/
from line 2918
29182918 }
29192919 : message
29202920 )
2921 .filter((message) => message.content.length > 0);
2921 .filter((message) => message.role !== "assistant" || message.content.length > 0);
29222922
29232923 // Build new message list: compaction + preserved messages
29242924 const messagesAfterCompaction: Anthropic.Beta.Messages.BetaMessageParam[] = [
No line in this hunk matches that.