Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

compaction-background changedbuild-with-claude/compaction-background

Nearest release: v2.1.307, published 4 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+4added
Lines−9removed
From line 241 where the diff opens
First seen 21 Sep 2026 this site's first read of the page
Recorded edits11to this page, all time

The whole hunk

from line 241, old and new numbered
/
lines
from line 241
241241 // Replace exactly the messages the compaction request held. Later turns stay after the block.
242242 return
243243 [
244 new()
244 new BetaAssistantMessageParam
245245 {
246 Role = Role.Assistant,
247246 Content = summary.Content.Select(block => new BetaContentBlockParam(block.Json)).ToList(),
248247 },
249248 .. history[sent..],
from line 261
262261 pending = null;
263262 }
264263 
265 history.Add(new() { Role = Role.User, Content = question });
264 history.Add(new BetaUserMessageParam { Content = question });
266265 var response = await client.Beta.Messages.Create(new MessageCreateParams
267266 {
268267 Model = Model.ClaudeOpus5_5,
from line 270
271270 Betas = [AnthropicBeta.Compact2026_09_04],
272271 Messages = history,
273272 });
274 history.Add(new()
273 history.Add(new BetaAssistantMessageParam
275274 {
276 Role = Role.Assistant,
277275 Content = response.Content.Select(block => new BetaContentBlockParam(block.Json)).ToList(),
278276 });
279277 
from line 428
430428 pending = null;
431429 }
432430 
433 history.add(BetaMessageParam.builder()
434 .role(BetaMessageParam.Role.USER)
435 .content(questions.get(turn - 1))
436 .build());
431 history.add(BetaMessageParam.ofUser(questions.get(turn - 1)));
437432 var params = MessageCreateParams.builder()
438433 .model(Model.CLAUDE_OPUS_5_5)
439434 .maxTokens(8192)
Feedback