fix(ui): stream phase progress without gates

This commit is contained in:
2026-08-24 12:10:56 +02:00
parent 36a7a0ab33
commit fa2298653b
10 changed files with 186 additions and 5 deletions
+13 -1
View File
@@ -176,14 +176,26 @@ export const useSessionStore = create<SessionState>((set) => ({
: { stepMessages, activityLog };
}
if (e.type === "system_event") {
const currentPhase = e.event === "phase_started"
? phaseOf(e.phase, st.currentPhase)
: st.currentPhase;
const activityLog = [
...st.activityLog,
{
kind: "lifecycle" as const,
phase: st.currentPhase,
phase: currentPhase,
text: lifecycleText(e.event),
},
];
if (e.event === "phase_started") {
return {
lastSystemEvent: e,
activityLog,
currentPhase,
phaseError: null,
agentActive: true,
};
}
return e.event === "agent_end"
? { lastSystemEvent: e, activityLog, agentActive: false }
: { lastSystemEvent: e, activityLog };