[PR #542] [CLOSED] Add Favorites to Models Dialog #9640

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/542
Author: @timoclsn
Created: 6/29/2025
Status: Closed

Base: devHead: add-favorite-models-config


📝 Commits (6)

  • f18bef5 Add favorites config
  • 2716e95 Mock config and simplify code
  • 03e11f0 Revert change
  • 4542642 Add comment and rename var
  • 633a7fe fix typo in config description for favorite models list
  • cb2242a fix scroll offset calculation in dialog component

📊 Changes

2 files changed (+69 additions, -7 deletions)

View changed files

📝 packages/opencode/src/config/config.ts (+6 -0)
📝 packages/tui/internal/components/dialog/models.go (+63 -7)

📄 Description

This implements an easy way to define favorite models and switch between them quickly:

  • Adds a new optional "favoriteModels" key to the config (an array with "provider/model" strings).
  • If the user has models in the favorites list, add them to the list of providers as a additional "provoder" (in first place) to display them in the /models dialog as the first page.

Bildschirmfoto 2025-06-29 um 20 54 56

Closes #541


🔄 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/542 **Author:** [@timoclsn](https://github.com/timoclsn) **Created:** 6/29/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `add-favorite-models-config` --- ### 📝 Commits (6) - [`f18bef5`](https://github.com/anomalyco/opencode/commit/f18bef550a90a572d36b39a5aa686839ec412c16) Add favorites config - [`2716e95`](https://github.com/anomalyco/opencode/commit/2716e957f4910ecc8576217241894494cffc019a) Mock config and simplify code - [`03e11f0`](https://github.com/anomalyco/opencode/commit/03e11f0b17832d372b3c3edae4562fd0b1eaa68e) Revert change - [`4542642`](https://github.com/anomalyco/opencode/commit/45426424d769605eeee34b4d025ae3b2f5132515) Add comment and rename var - [`633a7fe`](https://github.com/anomalyco/opencode/commit/633a7fefaea9be5a458de816d4a28c1a8c5a9f7b) fix typo in config description for favorite models list - [`cb2242a`](https://github.com/anomalyco/opencode/commit/cb2242a3b3d84b9a5c330fefb4787c2170af6e8d) fix scroll offset calculation in dialog component ### 📊 Changes **2 files changed** (+69 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/config.ts` (+6 -0) 📝 `packages/tui/internal/components/dialog/models.go` (+63 -7) </details> ### 📄 Description This implements an easy way to define favorite models and switch between them quickly: - Adds a new optional "favoriteModels" key to the config (an array with "provider/model" strings). - If the user has models in the favorites list, add them to the list of providers as a additional "provoder" (in first place) to display them in the /models dialog as the first page. ![Bildschirmfoto 2025-06-29 um 20 54 56](https://github.com/user-attachments/assets/50abdb12-cecf-4f12-90ac-1eb43db02d74) Closes #541 --- <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:13:54 -05:00
yindo closed this issue 2026-02-16 18:13:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9640