opencode
opencode copied to clipboard
feat: add manual refresh shortcut for models in tui
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 thesyncprovider, specifically in thebootstrapmethod. so i did what was previously done indialog-provider: justdisposeand rebootstrapthe client - since this adds the 3rd keybinding to the
dialog-modelscreen, 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 todialog-selectto change fromrowlayout tocolumnwhen they don't fit in just one row. if you don't like it just tell me to remove it and addflexWrap. - 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
@rekram1-node could you please approve for workflows?
/review
Thanks for making this also if format or sdk fail, just ignore them Dax has something he said he'd fix w/ them.
PR may need some small tweaks but this functionality is needed
lgtm
sure just tell me about those tweaks