diff options
| author | Dax Raad <[email protected]> | 2025-12-15 18:14:30 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-12-15 18:14:33 -0500 |
| commit | dbbcf0b8d041245a8b8feeff159d0bb9801b9924 (patch) | |
| tree | 714e316b5f6af31518a4243317a0c3293de5a10f /packages/desktop/src/components | |
| parent | efac8cebb3e3b5abb9672d7973aa508e9d9ef0d4 (diff) | |
| download | opencode-dbbcf0b8d041245a8b8feeff159d0bb9801b9924.tar.gz opencode-dbbcf0b8d041245a8b8feeff159d0bb9801b9924.zip | |
tui: fix model selection dialog to properly replace current dialog instead of creating nested dialogs
Diffstat (limited to 'packages/desktop/src/components')
| -rw-r--r-- | packages/desktop/src/components/prompt-input.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx index 840710152..f2821c3c7 100644 --- a/packages/desktop/src/components/prompt-input.tsx +++ b/packages/desktop/src/components/prompt-input.tsx @@ -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"} |
