mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 06:50:26 +00:00
tui: fix model selection dialog to properly replace current dialog instead of creating nested dialogs
This commit is contained in:
parent
efac8cebb3
commit
dbbcf0b8d0
3 changed files with 41 additions and 34 deletions
|
|
@ -864,7 +864,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||
as="div"
|
||||
variant="ghost"
|
||||
onClick={() =>
|
||||
dialog.push(() => (providers.paid().length > 0 ? <DialogSelectModel /> : <DialogSelectModelUnpaid />))
|
||||
dialog.replace(() =>
|
||||
providers.paid().length > 0 ? <DialogSelectModel /> : <DialogSelectModelUnpaid />,
|
||||
)
|
||||
}
|
||||
>
|
||||
{local.model.current()?.name ?? "Select model"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue