Skip to content

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

fix(assistant-ui): handle empty conversation state in chat component

Steven Enamakel64c149d5e4c4
diff --git a/app/src/features/conversations/components/AssistantUiChat.tsx b/app/src/features/conversations/components/AssistantUiChat.tsx
index ceee3565fa..97eada4e9b 100644
--- a/app/src/features/conversations/components/AssistantUiChat.tsx
+++ b/app/src/features/conversations/components/AssistantUiChat.tsx
@@ -37,6 +37,9 @@ function ComposerTextBridge({
const previousHostValue = useRef(value);
useEffect(() => {
+ (window as unknown as { __bridge?: unknown[] }).__bridge ??= [];
+ const log = (window as unknown as { __bridge: unknown[] }).__bridge;
+ if (log.length < 60) log.push({ composerText, value, prev: previousHostValue.current });
// A host-side write (dictation, ESC restore, clear) wins for this pass.
if (previousHostValue.current !== value) {
previousHostValue.current = value;