Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(chatRuntimeSlice): handle missing runtime state on reconnect

Steven Enamakel758da0e52713
diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.ts
index 16c6256981..5bd5e9b5e9 100644
--- a/app/src/store/chatRuntimeSlice.ts
+++ b/app/src/store/chatRuntimeSlice.ts
@@ -2044,9 +2044,10 @@ const chatRuntimeSlice = createSlice({
artifactId: string;
kind: ArtifactSnapshot['kind'];
title: string;
+ toolCallId?: string;
}>
) => {
- const { threadId, artifactId, kind, title } = action.payload;
+ const { threadId, artifactId, kind, title, toolCallId } = action.payload;
// No-downgrade guard: a late `artifact_pending` (re-delivery, or a
// socket race) must never regress an artifact that already reached
// `ready` / `failed` back to a spinner. Only the regenerate flow