From bd9d35c7208d3dc30eac4b81e88bf8fbd10aa35e Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Sun, 15 Feb 2026 09:54:04 -0500 Subject: [PATCH] chore: remove defensive logic --- src/agents/pi-embedded-helpers/bootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/pi-embedded-helpers/bootstrap.ts b/src/agents/pi-embedded-helpers/bootstrap.ts index 8a86206ce..9e589fc15 100644 --- a/src/agents/pi-embedded-helpers/bootstrap.ts +++ b/src/agents/pi-embedded-helpers/bootstrap.ts @@ -156,7 +156,7 @@ function clampToBudget(content: string, budget: number): string { if (budget <= 3) { return truncateUtf16Safe(content, budget); } - const safe = Math.max(1, budget - 1); + const safe = budget - 1; return `${truncateUtf16Safe(content, safe)}…`; }