Skip to content

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

fix(chat): correct model quality pill to show accurate status

Steven Enamakel5e6920bff204
diff --git a/app/src/components/chat/ModelQualityPill.tsx b/app/src/components/chat/ModelQualityPill.tsx
index 145ed5d30c..8fe0baf038 100644
--- a/app/src/components/chat/ModelQualityPill.tsx
+++ b/app/src/components/chat/ModelQualityPill.tsx
@@ -21,9 +21,13 @@ export default function ModelQualityPill({ className }: ModelQualityPillProps) {
title={t('composer.modelSelector')}
disabled
className={`rounded-full text-content-faint disabled:cursor-default disabled:opacity-100 select-none hover:bg-transparent ${className ?? ''}`}>
- <span>OpenHuman</span>
- <span className="text-content-faint">·</span>
- <span>{t('composer.qualityHigh')}</span>
+ {/* The model name is the only elastic part of the pill: in a narrow
+ action row it truncates so the trailing separator, tier and chevron
+ — and the send button beside them — stay on screen. `min-w-0` is
+ required for `truncate` to take effect inside the button's flex box. */}
+ <span className="min-w-0 truncate">OpenHuman</span>
+ <span className="shrink-0 text-content-faint">·</span>
+ <span className="shrink-0">{t('composer.qualityHigh')}</span>
{/* `shrink-0` keeps the chevron from being squeezed, and the button's
`px-2` gives it trailing padding so the glyph is never clipped against
the rounded pill edge (#3292). */}