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.
This commit is contained in:
kiloconnect[bot]
2026-03-17 12:44:13 +00:00
parent 80fa50adf4
commit 26fee8cbfc
+2 -2
View File
@@ -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,