The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed app/src/components/chat/ChatComposer.tsx
Steven Enamakel99b23c956ba3
diff --git a/app/src/components/chat/ChatComposer.tsx b/app/src/components/chat/ChatComposer.tsxindex 5c36797325..460332b427 100644--- a/app/src/components/chat/ChatComposer.tsx+++ b/app/src/components/chat/ChatComposer.tsx@@ -9,6 +9,7 @@ import { Button } from '../ui';import AttachmentPreview from './AttachmentPreview';import {AddAttachmentIcon,+ HumanModeIcon,MicIcon,SendIcon,SendingSpinnerIcon,@@ -51,6 +52,14 @@ export interface ChatComposerProps {* button falls back to a disabled spinner during generation.*/onStopGeneration?: () => void;+ /**+ * Open the Human page (the full-bleed mascot stage). When supplied, the+ * primary action doubles as the entry point to it: with the composer empty+ * the button is a person glyph that routes there, and it becomes Send the+ * moment there is something to send — the same slot ChatGPT gives its voice+ * mode. Omit it and the empty composer keeps the plain disabled Send button.+ */+ onOpenHumanMode?: () => void;textInputRef: React.RefObject<HTMLTextAreaElement | null>;fileInputRef: React.RefObject<HTMLInputElement | null>;composerInteractionBlocked: boolean;@@ -175,6 +184,7 @@ function ChatComposerBody({setInputValue,onSend,onStopGeneration,+ onOpenHumanMode,textInputRef,fileInputRef,composerInteractionBlocked,@@ -240,6 +250,12 @@ function ChatComposerBody({// follow-up can be queued instead of cancelling the current turn.const hasTypedContent = inputValue.trim().length > 0 || attachments.length > 0;const showStopButton = isSending && !!onStopGeneration && !hasTypedContent;+ // Empty composer, nothing in flight: the primary slot offers the Human page+ // instead of a dead disabled arrow. Stop and the in-flight spinner both win+ // over it — a turn is still the thing the button is about while one is+ // running — and the first typed character hands the slot back to Send.+ const showHumanModeButton =+ !!onOpenHumanMode && !hasTypedContent && !showStopButton && !showSendingSpinner;// Attachment ingest is blocked while the feature is off, the composer is// locked, or the budget is full — drag-drop and paste honour the same gate as@@ -461,12 +477,31 @@ function ChatComposerBody({</Button>)}- {/* Send / Stop — upstream's `ComposerAction`. While a turn is in- flight and a cancel handler is wired, Send becomes Stop so- generation can be halted from inside the composer. Once a- follow-up is typed the Send arrow returns so the follow-up can be- queued (parallel send) instead of cancelling the current turn. */}- {showStopButton ? (+ {/* Human / Send / Stop — upstream's `ComposerAction`, with one extra+ state. Empty and idle, the slot is the Human-page shortcut (see+ `showHumanModeButton`). While a turn is in flight and a cancel+ handler is wired, Send becomes Stop so generation can be halted+ from inside the composer. Once a follow-up is typed the Send+ arrow returns so the follow-up can be queued (parallel send)+ instead of cancelling the current turn. */}+ {showHumanModeButton ? (+ <Button+ type="button"+ iconOnly+ variant="tertiary"+ size="xs"+ analyticsId="chat-composer-human-mode"+ data-testid="human-mode-button"+ aria-label={t('composer.humanMode')}+ title={t('composer.humanMode')}+ onClick={() => {+ debug('[chat-composer] human-mode click');+ onOpenHumanMode?.();+ }}+ className={COMPOSER_SEND}>+ <HumanModeIcon />+ </Button>+ ) : showStopButton ? (<Buttontype="button"iconOnly