Skip to content

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

feat(assistant-ui): add model quality pill to composer action area

Steven Enamakel8027ec7a082c
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index e1006c9eb7..03637894c0 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -9,6 +9,7 @@ import { File } from "@/components/assistant-ui/file";
import { ThreadFollowupSuggestions } from "@/components/assistant-ui/follow-up-suggestions";
import { Image } from "@/components/assistant-ui/image";
import { MarkdownText } from "@/components/assistant-ui/markdown-text";
+import ModelQualityPill from "@/components/chat/ModelQualityPill";
import {
Reasoning,
ReasoningContent,
@@ -60,6 +61,7 @@ import {
import {
createContext,
useContext,
+ useState,
type ComponentType,
type FC,
type PropsWithChildren,
@@ -261,6 +263,8 @@ const ThreadSuggestionItem: FC = () => {
};
const Composer: FC = () => {
+ const [model, setModel] = useState<string | null>("hint:chat");
+
return (
<ComposerPrimitive.Root className="aui-composer-root relative flex w-full flex-col">
<ComposerPrimitive.AttachmentDropzone asChild>
@@ -287,7 +291,10 @@ const Composer: FC = () => {
const ComposerAction: FC = () => {
return (
<div className="aui-composer-action-wrapper relative flex items-center justify-between">
- <ComposerAddAttachment />
+ <div className="flex items-center gap-1">
+ <ComposerAddAttachment />
+ <ModelQualityPill value={model} onValueChange={setModel} />
+ </div>
<div className="flex items-center gap-1.5">
<AuiIf condition={(s) => s.thread.capabilities.dictation}>
<AuiIf condition={(s) => s.composer.dictation == null}>