Handle run interruption state and errors across components

This commit is contained in:
2026-06-15 21:52:30 +02:00
parent 117a16aca5
commit 1f482810fb
2 changed files with 6 additions and 0 deletions

View File

@@ -1252,6 +1252,9 @@ export default function App() {
} else if (event.type === 'run_cancelled') {
status = 'cancelled'
finishedAt = Date.now()
} else if (event.type === 'run_interrupted') {
status = 'interrupted'
finishedAt = Date.now()
} else if (event.type === 'confirmation_required') {
status = 'waiting_confirmation'
setPendingWorkflowConfirmation({ ...event, sessionId })