fix(app): recover state after sse reconnect and harden sse streams (#13973)

This commit is contained in:
Shoubhit Dash 2026-02-17 18:40:39 +05:30 committed by GitHub
commit 3dfbb70593
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 75 additions and 6 deletions

View file

@ -270,6 +270,11 @@ function createGlobalSync() {
setGlobalStore("project", next)
},
})
if (event.type === "server.connected" || event.type === "global.disposed") {
for (const directory of Object.keys(children.children)) {
queue.push(directory)
}
}
return
}