[PR #821] [CLOSED] feat(tui): add filter to model selection #9720

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/821
Author: @joshmedeski
Created: 7/10/2025
Status: Closed

Base: devHead: models-filter


📝 Commits (1)

  • 5083ecb feat(tui): add filter to model selection

📊 Changes

1 file changed (+171 additions, -30 deletions)

View changed files

📝 packages/tui/internal/components/dialog/models.go (+171 -30)

📄 Description

Closes #803

Adds the ability to hit / when the /modals dialog is open which activates a filter input that allows the user to choose model by typing out the model name.

SCR-20250709-ubbp SCR-20250709-ubdi

Considerations

  • I haven't gotten the up and down arrows to work for selecting yet, which is annoying if models have the same name
  • The current solution only filters by name, perhaps adding the ability to filter by provider (ex: "(Anthropic)") might help as multiple providers often provide the same models
  • I don't LOVE how it works, but it is a starting point
  • There's no visual indicator that this feature exists, not sure the best place to put it (or just let vim/terminal people experiment to find it)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/821 **Author:** [@joshmedeski](https://github.com/joshmedeski) **Created:** 7/10/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `models-filter` --- ### 📝 Commits (1) - [`5083ecb`](https://github.com/anomalyco/opencode/commit/5083ecb51ffecbb7dac8f3a0e26b8c846c95de4a) feat(tui): add filter to model selection ### 📊 Changes **1 file changed** (+171 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/dialog/models.go` (+171 -30) </details> ### 📄 Description Closes #803 Adds the ability to hit `/` when the `/modals` dialog is open which activates a filter input that allows the user to choose model by typing out the model name. <img width="1238" alt="SCR-20250709-ubbp" src="https://github.com/user-attachments/assets/17c265c4-456f-4f54-aa05-88ac9a953f53" /> <img width="1251" alt="SCR-20250709-ubdi" src="https://github.com/user-attachments/assets/fa1a555f-cc63-4b53-b354-870b53730172" /> ## Considerations - I haven't gotten the up and down arrows to work for selecting yet, which is annoying if models have the same name - The current solution only filters by name, perhaps adding the ability to filter by provider (ex: "(Anthropic)") might help as multiple providers often provide the same models - I don't LOVE how it works, but it is a starting point - There's no visual indicator that this feature exists, not sure the best place to put it (or just let vim/terminal people experiment to find it) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:03 -05:00
yindo closed this issue 2026-02-16 18:14:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9720