fix: clear external streaming bubbles

This commit is contained in:
Peter Steinberger
2025-12-30 11:21:57 +01:00
parent 715cf311df
commit 2749c5cac3
2 changed files with 3 additions and 1 deletions

View File

@@ -325,6 +325,8 @@ public final class ClawdisChatViewModel {
// Keep multiple clients in sync: if another client finishes a run for our session, refresh history.
switch chat.state {
case "final", "aborted", "error":
self.streamingAssistantText = nil
self.pendingToolCallsById = [:]
Task { await self.refreshHistoryAfterRun() }
default:
break