Skip to content

Commit 8eeecef

Browse files
authored
fix: remove unused headWindow after HasPrefix switch (lint) (#249)
1 parent 7741e3f commit 8eeecef

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

‎internal/loop/budget_hints.go‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,6 @@ func intBudgetBand(max, remaining int64, exhausted bool, t int, label string) st
235235
return ""
236236
}
237237

238-
// partialReasonHeadWindow bounds marker detection to the head of a final
239-
// answer. Engine-stamped markers are PREPENDED to the partial summary, and
240-
// tail-keep truncation only removes leading bytes, so a genuine marker is
241-
// always found within this window — while a successful answer that merely
242-
// QUOTES a marker in its (model-controlled) body is not.
243-
const partialReasonHeadWindow = 1024
244-
245-
func headWindow(s string) string {
246-
if len(s) <= partialReasonHeadWindow {
247-
return s
248-
}
249-
return s[:partialReasonHeadWindow]
250-
}
251-
252238
// PartialSummaryReason classifies a final answer produced by one of the
253239
// engine's budget-exhaustion paths. It returns (reason, true) when the text
254240
// carries a partial-summary marker — "iteration_budget", "execution_budget",

0 commit comments

Comments
 (0)