From f0edcbccd54909a0f0c716291f70802553aebdfb Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 15 Jun 2026 15:45:09 +0200 Subject: [PATCH] Update session state when a new client run begins --- src/App.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/App.jsx b/src/App.jsx index e175fb3..b1bc177 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1111,6 +1111,18 @@ export default function App() { startedAt: Date.now(), events: [], } + if (event.type === 'client_run_started' && current.runId !== event.run_id) { + return { + ...previous, + [sessionId]: { + runId: event.run_id, + workflowName: event.payload?.workflow?.name || 'Workflow', + status: 'running', + startedAt: Date.now(), + events: [event], + }, + } + } let status = current.status let finishedAt = current.finishedAt if (event.type === 'client_run_started') {