fix: clear live agent status on cancel

Clear only active agent statuses when a session reaches idle, and keep the terminal cancelled/error run cleanup in place. Add regression coverage for idle cleanup after cancellation-like flows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David KayaandCopilot committed 2026-03-25 22:20:57 +01:00
1 parent c9cc2fd8e7
commit 628fdff29e
2 files changed
+39 -1

No files matched your search

+4
View File
@@ -46,6 +46,10 @@ export function applySessionEventActivity(
if (event.status === 'running') {
return removeSessionActivity(current, event.sessionId);
}
if (event.status === 'idle') {
return clearActiveSessionActivity(current, event.sessionId);
}
}
if (