--- a/src/features/artifact/components/chat/ComposerDock.tsx +++ b/src/features/artifact/components/chat/ComposerDock.tsx @@ -22,8 +22,9 @@ onExpand, children, contentRef, inline = false, + needsClarification = false, }: { visible: boolean; onExpand: () => void; children: ReactNode; @@ -31,8 +32,10 @@ contentRef?: (node: HTMLDivElement | null) => void; /** Sits in the page flow (Home's Feed, above Trending) instead of floating at the * bottom; the layout then reserves no space for it. */ inline?: boolean; + /** The active editable session has a settled question awaiting an answer. */ + needsClarification?: boolean; }) { const t = useTranslations("artifactChat.dock"); return ( @@ -69,9 +72,19 @@ onClick={onExpand} className="self-end shadow-sm" > - {t("openAsPanel")} + {needsClarification && ( +