chore: remove defensive logic

This commit is contained in:
Gustavo Madeira Santana 2026-02-15 09:54:04 -05:00
parent 723e314e2b
commit bd9d35c720
1 changed files with 1 additions and 1 deletions

View File

@ -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)}`;
}