fix: recover parent sessions during bootstrap

Preserves referenced parents when child sessions arrive before roots
Avoids publishing orphan-only bootstrap snapshots
Adds tests for bootstrap session merging
This commit is contained in:
Bohdan Triapitsyn
2026-07-18 21:52:11 +03:00
parent 3eb5ccd291
commit fee6a55bab
4 changed files with 75 additions and 10 deletions
+4
View File
@@ -61,6 +61,10 @@ Examples:
- per-directory session/message bootstrap
- session/message/part SSE updates
Directory bootstrap must publish a closed session hierarchy: when a child is
returned before the roots query catches up during cold startup, retain or
recover its referenced parent instead of exposing an orphan-only snapshot.
### Global session list
Use `useGlobalSessionsStore` when the UI needs a **shared global session cache**.