fix(FN-758): fix project-scoped real-time dashboard updates

- Add project-store-resolver to correctly scope SSE and WebSocket connections to the active project's TaskStore
- Fix shared resolver so multi-project setups deliver task events only to the right dashboard clients
- Add regression tests for project store resolver (routing, missing project, SSE integration)
- Remove unused import and clean up stale changeset
- Add changeset for published package patch bump
This commit is contained in:
gsxdsm
2026-04-02 23:11:47 -07:00
parent 7f4a956524
commit 38492af449
6 changed files with 329 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
---
"@gsxdsm/fusion": patch
---
Fix real-time dashboard updates for project-scoped views. Previously, project-scoped API routes and SSE subscriptions created separate TaskStore instances via `getOrCreateForProject()`, causing SSE listeners to attach to a different in-memory EventEmitter than the one handling mutations. A shared project-store resolver now caches and reuses TaskStore instances per project, ensuring live events reach SSE subscribers without manual refresh.