Merge pull request #2256 from bashrusakh/fix/issue-2244-todo-event-resilience

fix(sync): route directory-less todo updates
This commit is contained in:
Serhii Dziupin
2026-08-06 18:09:24 +03:00
committed by GitHub
4 changed files with 101 additions and 7 deletions
+4
View File
@@ -363,6 +363,10 @@ Keep this in sync with `handleDirectoryEvent` in `sync-context.tsx`:
| `question.asked/replied/rejected` | `question` |
| `lsp.updated` | `lsp` |
### Directory-less session events
The global stream can omit a directory for a session-addressed event. Resolve it through the session routing index first. If the index is briefly stale during a session transition, route only when the event session matches the active session and that directory store exists; otherwise leave it un-routed rather than updating another directory.
## Adding a new event type
1. Add the case to the event reducer (`event-reducer.ts`)