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