Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(cli): resolve prefer-const lint errors in session-runner

Gener6ed7fe796e62
diff --git a/src/cli/daemon/session-runner.ts b/src/cli/daemon/session-runner.ts
index 8d1caa8f4..f3e62e01a 100644
--- a/src/cli/daemon/session-runner.ts
+++ b/src/cli/daemon/session-runner.ts
@@ -182,8 +182,8 @@ export async function runSession(input: SessionRunnerInput): Promise<void> {
// --- State shared by the kill handler, hoisted so the SINGLE handler below
// can see it whether the kill lands before or after the agent spawns. ---
let killed = false;
- let agentPid: number | undefined;
- let flushTimer: ReturnType<typeof setInterval> | undefined;
+ let agentPid: number | undefined = undefined;
+ let flushTimer: ReturnType<typeof setInterval> | undefined = undefined;
// Message batching
const pendingMessages: {