Skip to content

Feature/favorite models#21530

Open
SOUMITRO-SAHA wants to merge 3 commits intoanomalyco:devfrom
SOUMITRO-SAHA:feature/favorite-models
Open

Feature/favorite models#21530
SOUMITRO-SAHA wants to merge 3 commits intoanomalyco:devfrom
SOUMITRO-SAHA:feature/favorite-models

Conversation

@SOUMITRO-SAHA
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #12289

Related issue (pending for some time):
#19935
#3874
#19935

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR adds the ability to mark models as favorites with star icons in the model selection dialog.

How did you verify your code works?

  • Manually tested the favorites feature by toggling star icons on various models
  • Verified favorites persist after page refresh and app restart
  • Tested favorites behavior with both tagged and untagged models
  • Verified the Favorites section appears correctly at the top of the list

Screenshots / recordings

image image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Favorites are displayed in a separate section at the top of the list.
Clicking the star icon toggles the favorite status.
Add "dialog.model.group.favorites" to all 16 languages.

> Translations verified with Google Translate.
DialogManageModels is rendered via dialog.show() which places it outside
the LocalProvider context tree, causing "Local context must be used
within
a context provider" error when using useLocal().

Changed to use useModels() directly, which provides the same methods
(list, visible, setVisibility) and is available in the dialog context.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Hey! Your PR title Feature/favorite models doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, here are the potentially related PRs to PR #21530 (Feature/favorite models):

Potential Related PRs:

  1. feat(app): add global favourite / toggle models functionality (feat(app): add global favourite / toggle models functionality #16500)

    • Similar functionality for marking models as favorites
  2. feat(opencode): add option to mark sessions as favorite. (feat(opencode): add option to mark sessions as favorite. #15138)

    • Related favorites functionality, though for sessions rather than models
  3. feat(tui): expose favorite model cycling with Alt+C/Alt+X keybinds (feat(tui): expose favorite model cycling with Alt+C/Alt+X keybinds #16802)

    • Related to favorite model interaction/cycling
  4. fix(tui): show models in provider section even when in recents/favorites (fix(tui): show models in provider section even when in recents/favorites #15025)

    • Related to UI behavior with favorites section
  5. feat(tui): add toggle recent list in model selection dialog (feat(tui): add toggle recent list in model selection dialog #10518)

    • Related to model selection dialog features

These PRs appear to be related to the same feature domain (favorites/model selection), though PR #21530 is the primary implementation. You may want to verify whether any of these older PRs are still pending or if they address the same issue (#12289).

@SOUMITRO-SAHA
Copy link
Copy Markdown
Contributor Author

I’m not entirely confident that this PR will be merged. Over time, additional changes may introduce merge conflicts, which could further reduce its chances of being accepted.

As a result, I’ve decided to maintain my own fork of opencode. This message is for anyone interested in trying out these features—you can visit my fork and refer to the “Notes” section in the README.md for detailed guidance.

The setup process is straightforward and easy to follow.

https://github.com/SOUMITRO-SAHA/opencode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: favourites model search

1 participant