[PR #5018] feat: add manual refresh shortcut for models in tui #11208

Open
opened 2026-02-16 18:16:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5018

State: open
Merged: No


resolves #4734

some notes about changes:

  • i think it's "cleaner" to have a way to just get new providers and return new providers using /config/providers?refresh=true, but afaik it needed much changes in the sync provider, specifically in the bootstrap method. so i did what was previously done in dialog-provider: just dispose and rebootstrap the client
  • since this adds the 3rd keybinding to the dialog-model screen, the modal width is not enough for all of them to sit in one row at the bottom of the dialog. one approach is to just wrap them, but imho it wasn't a nice ui. so i added some code to dialog-select to change from row layout to column when they don't fit in just one row. if you don't like it just tell me to remove it and add flexWrap.
  • i updated the js sdk. i didn't try to update stainless since i think it needs an account, and i updated the python sdk but the changes were way too much :) maybe i shouldn't touch that
  • i checked the desktop package to add the shortcut there too, but afaik there was no example of keyboard shortcuts there. i would be happy to add it if you tell me the convention

if there's any issues just let me know

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5018 **State:** open **Merged:** No --- resolves #4734 some notes about changes: - i think it's "cleaner" to have a way to just get new providers and return new providers using `/config/providers?refresh=true`, but afaik it needed much changes in the `sync` provider, specifically in the `bootstrap` method. so i did what was previously done in `dialog-provider`: just `dispose` and re`bootstrap` the client - since this adds the 3rd keybinding to the `dialog-model` screen, the modal width is not enough for all of them to sit in one row at the bottom of the dialog. one approach is to just wrap them, but imho it wasn't a nice ui. so i added some code to `dialog-select` to change from `row` layout to `column` when they don't fit in just one row. if you don't like it just tell me to remove it and add `flexWrap`. - i updated the js sdk. i didn't try to update stainless since i think it needs an account, and i updated the python sdk but the changes were way too much :) maybe i shouldn't touch that - i checked the desktop package to add the shortcut there too, but afaik there was no example of keyboard shortcuts there. i would be happy to add it if you tell me the convention if there's any issues just let me know
yindo added the pull-request label 2026-02-16 18:16:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11208