[PR #7495] fix: prevent model picker overflow with Zen in new sessions #12416

Closed
opened 2026-02-16 18:17:19 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7495

State: closed
Merged: Yes


fixes issue #7494

Adding Zen as a provider caused the model picker to overflow in new sessions, rendering a black bar at the bottom. This was due to the picker having a fixed height while the model list grew.

Fix:
Clamp overflow in ModelSelectorPopover by adding overflow-hidden to Kobalte.Content, ensuring content stays within the fixed 320px height while remaining scrollable.

Change:

- <Kobalte.Content class="w-72 h-80 flex flex-col ... outline-none">
+ <Kobalte.Content class="w-72 h-80 flex flex-col ... outline-none overflow-hidden">

Tested:

Add Zen provider

Open model picker in a new session

Confirm no black bar and models scroll correctly

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7495 **State:** closed **Merged:** Yes --- fixes issue #7494 Adding Zen as a provider caused the model picker to overflow in new sessions, rendering a black bar at the bottom. This was due to the picker having a fixed height while the model list grew. Fix: Clamp overflow in ModelSelectorPopover by adding overflow-hidden to Kobalte.Content, ensuring content stays within the fixed 320px height while remaining scrollable. Change: ``` - <Kobalte.Content class="w-72 h-80 flex flex-col ... outline-none"> + <Kobalte.Content class="w-72 h-80 flex flex-col ... outline-none overflow-hidden"> ``` Tested: Add Zen provider Open model picker in a new session Confirm no black bar and models scroll correctly
yindo added the pull-request label 2026-02-16 18:17:19 -05:00
yindo closed this issue 2026-02-16 18:17:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12416