fix app crash restoring messages without model (#25062)

This commit is contained in:
Luke Parker
2026-04-30 14:44:53 +10:00
committed by GitHub
parent 8ba374fefa
commit 9bddf7f3ef

View File

@@ -382,7 +382,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
setSaved("session", session, {
agent: msg.agent,
model: msg.model,
variant: msg.model.variant ?? null,
variant: msg.model?.variant ?? null,
})
},
},