summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-12-15 18:14:30 -0500
committerDax Raad <[email protected]>2025-12-15 18:14:33 -0500
commitdbbcf0b8d041245a8b8feeff159d0bb9801b9924 (patch)
tree714e316b5f6af31518a4243317a0c3293de5a10f /packages/desktop
parentefac8cebb3e3b5abb9672d7973aa508e9d9ef0d4 (diff)
downloadopencode-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')
-rw-r--r--packages/desktop/src/components/prompt-input.tsx4
-rw-r--r--packages/desktop/src/context/notification.tsx1
2 files changed, 4 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"}
diff --git a/packages/desktop/src/context/notification.tsx b/packages/desktop/src/context/notification.tsx
index 9843066ea..839ebfad7 100644
--- a/packages/desktop/src/context/notification.tsx
+++ b/packages/desktop/src/context/notification.tsx
@@ -58,6 +58,7 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
time: Date.now(),
viewed: false,
}
+ console.log(event)
switch (event.type) {
case "session.idle": {
const sessionID = event.properties.sessionID