Skip to content

Conversation

@IdrisGit
Copy link
Contributor

What does this PR do?

Add a toggle recent list keybind, to toggle on/off the recent list in model selection list. (default to recent on)

How did you verify your code works?

tested the toggle locally with selecting a model in each category and toggling the recent list and ran multiple sessions to verify the toggle persists across sessions.

screenshot of the new keybind:
recent ON
image

recent OFF
image

closes #10408 and maybe also closes #3874

@github-actions
Copy link
Contributor

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

No duplicate PRs found

@IdrisGit
Copy link
Contributor Author

IdrisGit commented Jan 25, 2026

typecheck and test is failing because of addition of "model_list_recent_toggle" in the config for the keybind, which required generating the types using the type gen script

@IdrisGit
Copy link
Contributor Author

@rekram1-node what are your thoughts on this comment (https://discord.com/channels/1391832426048651334/1394667004979445931/1465302781211574417) from @ariane-emory .

I would prefer keeping the keybind as it makes the toggle, keyboard accessible on the model selection list itself, however I do understand that it can be tricky to introduce a new keybind and team prefers adding a command first.

I have used "ctrl+h" as it and "shift+h" are quite common keybind in TUIs for showing and hiding lists, I open to any suggestions on the keybind itself.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting of model_list_recent_toggle across multiple lines is inconsistent with the formatting of the surrounding lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is being auto formatted by the type gen script, that's why I left it like this

1769446230585.mp4

Copy link
Contributor

@ariane-emory ariane-emory Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I would recommend setting "formatter": false, in your configuration file and then asking a model to clean it up to be consistent with the formatting of the other nearby items, after which it should save without disruption. The default formatter settings tenaciously insist on disrupting the established formatting in the Opencode source.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ariane-emory updated

@IdrisGit IdrisGit force-pushed the feat-add-model-list-recent-toggle branch from 0c79978 to df0dc55 Compare January 29, 2026 20:59
@thdxr thdxr force-pushed the dev branch 4 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
@IdrisGit IdrisGit force-pushed the feat-add-model-list-recent-toggle branch 2 times, most recently from 7512162 to 54de8a7 Compare January 31, 2026 14:51
@IdrisGit IdrisGit force-pushed the feat-add-model-list-recent-toggle branch from 8f2ee3c to 1d9896a Compare February 3, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]:(TUI) Toggle Recent Models Section [FEATURE]: Have Recents Seperate From The Model Lists

2 participants