From 5df3392ad9224dc9f4c658b0ae94d178ba217a06 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Wed, 28 Jan 2026 13:59:17 -0500 Subject: [PATCH] Use union types for state and mode in Session interface --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 226cce1..11f3343 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,14 +18,14 @@ export interface Session { cwd: string | null; command: string | null; // Phase 2.3: Session state and stats - state: string; + state: "ready" | "thinking" | "permission" | "question" | "complete" | "interrupted"; prompts: number; completions: number; tools: number; compressions: number; thinking_seconds: number; work_seconds: number; - mode: string; + mode: "normal" | "auto_accept" | "plan"; model: string | null; idle_since: number | null; // Git state (for later phase)