Skip to content

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

fix(chat): handle missing runtime in chat runtime slice

Steven Enamakel40aeb0d08831
diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.ts
index 8ce64ebf23..16c6256981 100644
--- a/app/src/store/chatRuntimeSlice.ts
+++ b/app/src/store/chatRuntimeSlice.ts
@@ -768,6 +768,17 @@ export interface ArtifactSnapshot {
error?: string;
/** When the snapshot was last updated, milliseconds since epoch. */
updatedAt: number;
+ /**
+ * The `tool_call_id` of the producing tool call, when the core sends one on
+ * the `Artifact*` socket event (additive wire field). Present for an
+ * artifact produced by a toolkit-rendered call (e.g. `media_generate_image`,
+ * `generate_document`) — those render their own in-place state via
+ * `MediaAndDocumentCalls.tsx` instead of the header's live-artifact deck, so
+ * `Conversations.tsx` filters them out of that deck by this field. Absent
+ * on older cores / snapshots that predate the field, and on any artifact
+ * with no owning tool call — those keep rendering in the header deck.
+ */
+ toolCallId?: string;
}
/**