Format code with biome
This commit is contained in:
parent
d30a092df5
commit
7f3ce24099
2 changed files with 15 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue