Format code with biome

This commit is contained in:
Jared Miller 2026-01-28 13:59:55 -05:00
parent d30a092df5
commit 7f3ce24099
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C
2 changed files with 15 additions and 2 deletions

View file

@ -447,7 +447,14 @@ const server = Bun.serve<SessionData>({
// Handle state message
if (msg.type === "state") {
const sessionState = sessionStates.get(ws.data.sessionId);
const validStates = ["ready", "thinking", "permission", "question", "complete", "interrupted"];
const validStates = [
"ready",
"thinking",
"permission",
"question",
"complete",
"interrupted",
];
if (sessionState && msg.state && validStates.includes(msg.state)) {
sessionState.state = msg.state as SessionState["state"];
sessionState.dirty = true;

View file

@ -18,7 +18,13 @@ export interface Session {
cwd: string | null;
command: string | null;
// Phase 2.3: Session state and stats
state: "ready" | "thinking" | "permission" | "question" | "complete" | "interrupted";
state:
| "ready"
| "thinking"
| "permission"
| "question"
| "complete"
| "interrupted";
prompts: number;
completions: number;
tools: number;