fix(ui): stream phase progress without gates
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user