feat(workflow-bar): optimistic F1 at start; all-green when session finalized

This commit is contained in:
2026-07-03 13:22:09 +02:00
parent 37b3eb45e9
commit e630ac98f9
5 changed files with 33 additions and 10 deletions
+2
View File
@@ -25,6 +25,7 @@ export function SteerInput({ sessionId, onSessionCreated, onStop, inputRef }: Pr
const [text, setText] = useState("");
const [busy, setBusy] = useState(false);
const setLastUserEntry = useSessionStore((s) => s.setLastUserEntry);
const setPhase = useSessionStore((s) => s.setPhase);
async function submit() {
const trimmed = text.trim();
@@ -35,6 +36,7 @@ export function SteerInput({ sessionId, onSessionCreated, onStop, inputRef }: Pr
await postSteer(sessionId, trimmed);
} else {
const { id } = await createSession({ question: trimmed });
setPhase("F1"); // optimistic: paint F1 yellow during the cold start, before the first gate
onSessionCreated?.(id);
}
setLastUserEntry({ kind: "input", text: trimmed });