feat(workflow-bar): optimistic F1 at start; all-green when session finalized
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user