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-keep-recent-turns changedbuild-with-claude/compaction-keep-recent-turns

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 203 where the diff opens
First seen 21 Sep 2026 this site's first read of the page
Recorded edits7to this page, all time

The whole hunk

from line 203, old and new numbered
/
lines
from line 203
203203 foreach (var (index, question) in questions.Index())
204204 {
205205 var turn = index + 1;
206 history.Add(new() { Role = Role.User, Content = question });
206 history.Add(new BetaUserMessageParam { Content = question });
207207 var response = await client.Beta.Messages.Create(new MessageCreateParams
208208 {
209209 Model = Model.ClaudeOpus5_5,
from line 212
212212 Betas = [AnthropicBeta.Compact2026_09_04],
213213 Messages = history,
214214 });
215 history.Add(new()
215 history.Add(new BetaAssistantMessageParam
216216 {
217 Role = Role.Assistant,
218217 Content = response.Content.Select(block => new BetaContentBlockParam(block.Json)).ToList(),
219218 });
220219 
from line 237
238237 {
239238 history =
240239 [
241 new()
240 new BetaAssistantMessageParam
242241 {
243 Role = Role.Assistant,
244242 Content = summary.Content.Select(block => new BetaContentBlockParam(block.Json)).ToList(),
245243 },
246244 .. recent,
from line 340
342340 
343341 var history = new ArrayList<BetaMessageParam>();
344342 for (int turn = 1; turn <= questions.size(); turn++) {
345 history.add(BetaMessageParam.builder()
346 .role(BetaMessageParam.Role.USER)
347 .content(questions.get(turn - 1))
348 .build());
343 history.add(BetaMessageParam.ofUser(questions.get(turn - 1)));
349344 var params = MessageCreateParams.builder()
350345 .model(Model.CLAUDE_OPUS_5_5)
351346 .maxTokens(8192)
Feedback