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
commit 9bddf7f3ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,
})
},
},