feat: add error toast when fork-session fails

This commit is contained in:
Ariane Emory
2026-01-30 02:50:21 -05:00
parent 805d8194a2
commit a4928c35f3

View File

@@ -252,6 +252,8 @@ function App() {
sdk.client.session.fork({ sessionID: args.sessionID }).then((result) => {
if (result.data?.id) {
route.navigate({ type: "session", sessionID: result.data.id })
} else {
toast.show({ message: "Failed to fork session", variant: "error" })
}
})
} else {
@@ -277,6 +279,8 @@ function App() {
sdk.client.session.fork({ sessionID: match }).then((result) => {
if (result.data?.id) {
route.navigate({ type: "session", sessionID: result.data.id })
} else {
toast.show({ message: "Failed to fork session", variant: "error" })
}
})
} else {