Skip to content

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

fix(settings): stop the provider name overflowing the model picker's column\n\nThe provider list's label wrapper is a flex item with `min-w-0` but no\n`flex-1`, and `min-w-0` alone does not shrink a flex item that was never\ntold it may flex. So the wrapper sized to its content, grew past the\n13rem column, and painted over the detail pane beside it — the managed\ndescription rendered as "penHuman will run all inference..." with its\nleading character covered. The `truncate` on the inner span was inert for\nthe same reason: nothing had constrained the box it was meant to clip.\n\nAdds `flex-1`, which is the actual fix.\n\nThe name now wraps rather than truncating. A provider the user cannot\nread in full is not one they can choose between, and this list is short\nenough that a second line costs nothing; the row is already `h-auto`, so\nit grows to fit.\n\nWidens the column 13rem -> 15rem. "Managed by OpenHuman" needs roughly\n210px once the swatch, gap and padding are counted, against a 208px\ncolumn — so the default provider was wrapping to two lines purely from\nbeing a couple of pixels short. At 15rem it sits on one line, and\nwrapping still handles a long custom provider name.\n\nThe `flex-1` carries a comment. It reads as a cosmetic utility class, and\nremoving it silently reintroduces the overlap.\n\nClaude-Session: https://claude.ai/code/session_016ipSkHi47nsBmnxX5dC4dA\n

M3gA-Mind4e2738146398
diff --git a/app/src/components/settings/panels/ai/ProviderModelPickerDialog.tsx b/app/src/components/settings/panels/ai/ProviderModelPickerDialog.tsx
index dee6b565c8..ff422529c2 100644
--- a/app/src/components/settings/panels/ai/ProviderModelPickerDialog.tsx
+++ b/app/src/components/settings/panels/ai/ProviderModelPickerDialog.tsx
@@ -281,7 +281,7 @@ export function ProviderModelPickerDialog({
autoFocus
/>
</div>
- <div className="grid min-h-80 grid-cols-1 divide-y divide-line-subtle md:grid-cols-[13rem_1fr] md:divide-x md:divide-y-0">
+ <div className="grid min-h-80 grid-cols-1 divide-y divide-line-subtle md:grid-cols-[15rem_1fr] md:divide-x md:divide-y-0">
<div className="p-2">
<p className="px-2 pb-2 text-xs font-medium text-content-muted">
{t('settings.ai.picker.providersLabel')}
@@ -305,11 +305,21 @@ export function ProviderModelPickerDialog({
label={sourceLabel(candidate, cloudProviders, t)}
tone={slugTone(sourceSlug(candidate))}
/>
- <span className="flex min-w-0 flex-col items-start gap-0.5">
- <span className="truncate text-sm font-medium">
+ {/* `flex-1` + `min-w-0` is load-bearing, not cosmetic:
+ without it this wrapper sizes to its content instead of
+ shrinking, and a long provider name overflows the column
+ into the detail pane instead of wrapping inside it.
+ `min-w-0` alone does not shrink a flex item that was never
+ told it may flex.
+
+ The name wraps rather than truncating — a provider the
+ user cannot fully read is not a provider they can choose
+ between. The row is `h-auto`, so it grows to fit. */}
+ <span className="flex min-w-0 flex-1 flex-col items-start gap-0.5">
+ <span className="w-full text-left text-sm font-medium break-words whitespace-normal">
{sourceLabel(candidate, cloudProviders, t)}
</span>
- <span className="text-xs font-normal text-content-muted">
+ <span className="w-full text-left text-xs font-normal break-words whitespace-normal text-content-muted">
{sourceDetail(candidate, t)}
</span>
</span>