fix(app): reload instance after workspace reset

This commit is contained in:
Adam
2026-01-19 12:44:35 -06:00
parent 3fd0043d19
commit c2f9fd5fef
2 changed files with 40 additions and 20 deletions

View File

@@ -1056,7 +1056,16 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
let session = info()
if (!session && isNewSession) {
session = await client.session.create().then((x) => x.data ?? undefined)
session = await client.session
.create()
.then((x) => x.data ?? undefined)
.catch((err) => {
showToast({
title: "Failed to create session",
description: errorMessage(err),
})
return undefined
})
if (session) navigate(`/${base64Encode(sessionDirectory)}/session/${session.id}`)
}
if (!session) return