From 26fee8cbfc4c076cc44abb201dd5a62e0199c730 Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 12:44:13 +0000 Subject: [PATCH] fix(cli): rename shadowed args variable in pr command to fix typecheck The local `args` variable on line 99 shadowed the `handler(args)` parameter, causing tsgo to report "used before declaration" errors at line 25. Renamed to `flags` to avoid the conflict. --- packages/opencode/src/cli/cmd/pr.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencode/src/cli/cmd/pr.ts b/packages/opencode/src/cli/cmd/pr.ts index 305d7550834..df489b7c383 100644 --- a/packages/opencode/src/cli/cmd/pr.ts +++ b/packages/opencode/src/cli/cmd/pr.ts @@ -96,8 +96,8 @@ export const PrCommand = cmd({ // Launch kilo TUI with session ID if available const { spawn } = await import("child_process") - const args = sessionId ? ["-s", sessionId] : [] - const child = spawn("kilo", args, { + const flags = sessionId ? ["-s", sessionId] : [] + const child = spawn("kilo", flags, { stdio: "inherit", cwd: process.cwd(), windowsHide: true,