From df4a973891fc2ea7b54fd2adaa3b0d3beac888f0 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Wed, 7 Jan 2026 14:08:48 -0600 Subject: [PATCH] chore: cleanup --- packages/opencode/src/tool/truncation.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/opencode/src/tool/truncation.ts b/packages/opencode/src/tool/truncation.ts index 471c86b57c..3dc5a5e8a0 100644 --- a/packages/opencode/src/tool/truncation.ts +++ b/packages/opencode/src/tool/truncation.ts @@ -7,7 +7,6 @@ import { lazy } from "../util/lazy" import { PermissionNext } from "../permission/next" import type { Agent } from "../agent/agent" -// what models does opencode provider support? Read: https://models.dev/api.json export namespace Truncate { export const MAX_LINES = 2000 export const MAX_BYTES = 50 * 1024 @@ -59,9 +58,9 @@ export namespace Truncate { } const out: string[] = [] - var i = 0 - var bytes = 0 - var hitBytes = false + let i = 0 + let bytes = 0 + let hitBytes = false if (direction === "head") { for (i = 0; i < lines.length && i < maxLines; i++) {