fix: add optional chaining to session_status access (#27247)

This commit is contained in:
Brendan Allan 2026-05-13 12:09:36 +08:00 committed by GitHub
parent c5961205ef
commit 3be65dff46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,7 +209,7 @@ export function createChildStoreManager(input: {
sessionTotal: 0,
session_status: {},
session_working(id: string) {
return this.session_status[id].type !== "idle"
return this.session_status[id]?.type !== "idle"
},
session_diff: {},
todo: {},