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 Kaya
2026-03-25 22:20:57 +01:00
co-authored by Copilot
parent c9cc2fd8e7
commit 628fdff29e
2 changed files with 39 additions and 1 deletions
+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 (