diff options
Diffstat (limited to 'libpanto/src/compaction.zig')
| -rw-r--r-- | libpanto/src/compaction.zig | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libpanto/src/compaction.zig b/libpanto/src/compaction.zig index dfa3242..f620f30 100644 --- a/libpanto/src/compaction.zig +++ b/libpanto/src/compaction.zig @@ -222,14 +222,8 @@ pub fn computeSplit( ) Split { if (usages) |u| std.debug.assert(u.len == messages.len); - const active_start = blk: { - if (conversation.latestCompactionIndex(messages)) |anchor| { - // The summary message itself anchors the window; active turns - // begin after it. - break :blk anchor + 1; - } - break :blk 0; - }; + // The summary message itself anchors the window; active turns begin after it. + const active_start = if (conversation.latestCompactionIndex(messages)) |anchor| anchor + 1 else 0; // Identify turn boundaries within the active window. A turn starts at a // user message that is NOT purely tool-results (a fresh human/user |
