From 604a16d73cfb82bada5a29bb3d710e7aaf763f1f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 15 Jun 2026 15:49:34 +0200 Subject: [PATCH] Refresh libraries and jobs upon successful Heimgeist save event --- src/App.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index b1bc177..5e74069 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1103,6 +1103,14 @@ export default function App() { }, [availableChatModels, model]) const handleWorkflowRunEvent = React.useCallback((sessionId, event) => { + if ( + event.type === 'tool_result' + && String(event.payload?.tool || '').startsWith('heimgeist.save_') + && event.payload?.result?.status === 'saved' + ) { + void refreshLibraries() + void refreshLibraryJobs() + } setWorkflowExecutions(previous => { const current = previous[sessionId] || { runId: event.run_id, @@ -1152,7 +1160,7 @@ export default function App() { }, } }) - }, []) + }, [backendApiUrl]) const { regenerateFromIndex, sendMessage } = createChatGenerationHandlers({ activeSessionId,