Skip to content

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

fix(assistant-ui): hide selection toolbar when host composer is active

Steven Enamakela15e938be5ae
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index b1eefd4b82..6fa034c896 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -467,7 +467,7 @@ const ThreadRoot: FC<{
* message by the `data-message-id` that `MessagePrimitive.Root` already
* emits, so neither message component needed changing.
*/}
- <SelectionToolbar />
+ {!HostComposer && <SelectionToolbar />}
</ThreadPrimitive.Root>
);
};
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index ecad02fa1d..abee50798b 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -732,6 +732,9 @@ const Conversations = ({
return;
}
+ // A dictated draft needs a text surface where the user can inspect and
+ // send it. The mic-first composer has neither, so hand it back first.
+ setComposerOverride('text');
setInputValue(prev => {
const base = prev.trim();
if (!base) return text;