mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-31 03:46:24 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user