Compare commits

...

1 Commits

Author SHA1 Message Date
Aiden Cline 72d9dcf470 fix(tui): preserve model variants across sessions 2026-08-10 04:58:15 +00:00
+5
View File
@@ -642,6 +642,7 @@ function App(props: { pair?: DialogPairCredentials }) {
category: "Session",
slash: { name: "new", aliases: ["clear"] },
run: () => {
const selection = local.model.selection()
route.navigate({
type: "home",
location:
@@ -649,6 +650,10 @@ function App(props: { pair?: DialogPairCredentials }) {
? (data.session.get(route.data.sessionID)?.location ?? location.ref)
: undefined,
})
if (selection) {
local.model.set(selection)
local.model.variant.set(selection.variant)
}
dialog.clear()
},
},