Skip to content

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

refactor(chat): extract runtime context into a provider

Steven Enamakelf19010fd5d6c
diff --git a/app/src/providers/ChatRuntimeProvider.tsx b/app/src/providers/ChatRuntimeProvider.tsx
index f06970de46..b9eade0e81 100644
--- a/app/src/providers/ChatRuntimeProvider.tsx
+++ b/app/src/providers/ChatRuntimeProvider.tsx
@@ -1330,6 +1330,7 @@ const ChatRuntimeProvider = ({ children }: { children: React.ReactNode }) => {
addInferenceResponse({
content: event.full_response,
threadId: targetThreadId,
+ messageId: proactiveMessageId(event),
// Stamp the producing turn's request id when present (Phase 4
// anchoring); proactive events may omit it, in which case the
// message falls back to the legacy single-anchor turn.