Use union types for state and mode in Session interface

This commit is contained in:
Jared Miller 2026-01-28 13:59:17 -05:00
parent 7bf04ed184
commit 5df3392ad9
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -18,14 +18,14 @@ export interface Session {
cwd: string | null; cwd: string | null;
command: string | null; command: string | null;
// Phase 2.3: Session state and stats // Phase 2.3: Session state and stats
state: string; state: "ready" | "thinking" | "permission" | "question" | "complete" | "interrupted";
prompts: number; prompts: number;
completions: number; completions: number;
tools: number; tools: number;
compressions: number; compressions: number;
thinking_seconds: number; thinking_seconds: number;
work_seconds: number; work_seconds: number;
mode: string; mode: "normal" | "auto_accept" | "plan";
model: string | null; model: string | null;
idle_since: number | null; idle_since: number | null;
// Git state (for later phase) // Git state (for later phase)