Skip to content

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

fix(chat): prevent composer from sending empty messages

Steven Enamakel0b1a0b89e0d9
diff --git a/app/src/components/chat/ChatComposer.tsx b/app/src/components/chat/ChatComposer.tsx
index c2ee19ed59..a9825abf93 100644
--- a/app/src/components/chat/ChatComposer.tsx
+++ b/app/src/components/chat/ChatComposer.tsx
@@ -428,6 +428,14 @@ function ChatComposerBody({
</Button>
)}
+ {/* Read-only model chip. Carries the only text label in the row, so
+ it is the element that must give way when space runs out — see
+ its own `min-w-0` + truncating name span. */}
+ <ModelQualityPill className="min-w-0" />
+ </div>
+
+ {/* Right group — mic, then the primary send/stop action. */}
+ <div className="flex shrink-0 items-center gap-1">
{micEnabled && (
<Button
type="button"
@@ -443,14 +451,13 @@ function ChatComposerBody({
<MicIcon />
</Button>
)}
- </div>
- {/* 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 ? (
+ {/* 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 ? (
<Button
type="button"
iconOnly