Follow-up to anomalyco/opencode#48789
This is the patch I validated locally (byte-identical in-place edit of the shipped Desktop/Web assets) that resolves all four points raised in the issue. I'm happy to open a PR against \dev\ with the source-level changes if maintainers want them.
1. Selector popover — \packages/app/src/components/dialog-select-model.tsx\ (\ModelSelectorPopoverV2View)
\\diff
- MenuV2.Content class="w-[284px] overflow-hidden ..."
- MenuV2.Content class="w-[min(90vw,560px)] overflow-hidden ..." \\
\\diff
- ScrollView data-slot="model-selector-scroll" class="max-h-[220px] min-h-0"
- ScrollView data-slot="model-selector-scroll" class="max-h-[60vh] min-h-0" \\
The list stays scrollable on small screens; on a normal monitor this shows ~3x more rows.
2. "Manage models" dialog — \packages/app/src/components/dialog-manage-models.tsx\ (\DialogManageModelsV2)
\\diff
- <DialogV2 size="large" ...>
- <DialogV2 size="x-large" ...> \\
\x-large\ already exists in \dialog-v2\ (\width: min(100vw - 32px, 980px); height: min(100vh - 92px, 600px)), so no new styles are needed and it degrades gracefully on small windows. \large\ (640x480) is tight even for stock providers; with several custom providers (1000+ models) it is unusable without scrolling constantly.
\\diff
- scrollbar-width: none
- scrollbar-width: thin \\
\\diff
- ::-webkit-scrollbar { display: none }
- ::-webkit-scrollbar { display: block; width: 6px; }
- ::-webkit-scrollbar-thumb { background: ...; border-radius: 3px; } \\
The panel scrolls but hides the scrollbar completely, so there is no affordance that more models are below. The \ScrollView\ component follows the same pattern with its custom thumb at \opacity: 0, which only flashes while actively scrolling.
- \SettingsRowV2 title={item.name}\ (and the \ runcate\ span in the popover items) ellipsizes even when the dialog has plenty of horizontal room. In an \x-large\ dialog, wrapping (\white-space: normal) or dropping \ runcate\ when space allows would satisfy the "no ellipsis when there is available space" expectation.
Tested on Windows (OpenCode Desktop) with 1000+ models across several custom providers. The result matches the expected behavior described in the issue: taller/wider popover, ~3x more visible rows, visible scrollbar affordance, and full model names when space allows. Compact behavior preserved on small windows.
Happy to open a PR against \dev\ with the source-level changes if that is useful.