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"}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue