summaryrefslogtreecommitdiff
path: root/libpanto/src/compaction.zig
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-06-22 18:18:28 -0600
committert <t@tjp.lol>2026-06-23 09:34:55 -0600
commit538a5d926fa626a00cc3dc12c555f11f82867efd (patch)
tree7ea3b84ea5086d67973d0b427ec7c382eb635e50 /libpanto/src/compaction.zig
parenta417727810cc6722b3c82e3c9e9b46982ef40a08 (diff)
libpanto ponytail-audit simplifications
Diffstat (limited to 'libpanto/src/compaction.zig')
-rw-r--r--libpanto/src/compaction.zig10
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