summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/tui/internal/components/dialog/models.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/tui/internal/components/dialog/models.go b/packages/tui/internal/components/dialog/models.go
index 110151147..e30a1068e 100644
--- a/packages/tui/internal/components/dialog/models.go
+++ b/packages/tui/internal/components/dialog/models.go
@@ -303,7 +303,8 @@ func (m *modelDialog) buildSearchResults(query string) []list.Item {
for _, match := range matches {
model := modelMap[match.Target]
// Create a unique key to avoid duplicates
- key := fmt.Sprintf("%s:%s", model.Provider.ID, model.Model.ID)
+ // Include name to handle custom models with same ID but different names
+ key := fmt.Sprintf("%s:%s:%s", model.Provider.ID, model.Model.ID, model.Model.Name)
if seenModels[key] {
continue
}