[PR #11198] fix: show all provider models when no providers connected #13692

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

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

State: closed
Merged: Yes


When no providers were connected, the model dialog would hide models that were in the recent list, but the recent section wasn't being displayed. This caused models to completely disappear from the dialog.

The filter was checking "recentList" (which only contained non-favorite recent items) instead of "recents" (all recent items), causing models to be incorrectly filtered out of the main provider list when the recent section wasn't shown.

Changes

  • Changed "recentList" to "recents" in the filter function so all recent items are properly checked when filtering duplicates in sectioned view

Fixes: model dialog showing empty when no providers connected

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11198 **State:** closed **Merged:** Yes --- When no providers were connected, the model dialog would hide models that were in the recent list, but the recent section wasn't being displayed. This caused models to completely disappear from the dialog. The filter was checking \"recentList\" (which only contained non-favorite recent items) instead of \"recents\" (all recent items), causing models to be incorrectly filtered out of the main provider list when the recent section wasn't shown. ## Changes - Changed \"recentList\" to \"recents\" in the filter function so all recent items are properly checked when filtering duplicates in sectioned view Fixes: model dialog showing empty when no providers connected
yindo added the pull-request label 2026-02-16 18:18:31 -05:00
yindo closed this issue 2026-02-16 18:18:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13692