gsxdsm
d08ec053a6
FN-6488: centralize dashboard beforeExit cleanup
Centralize dashboard cleanup registration to prevent repeated module imports from accumulating beforeExit listeners.
- Add a Symbol.for-backed dashboard process lifecycle registry with one shared beforeExit listener.
- Register existing cleanup intervals through the shared lifecycle helper across dashboard modules.
- Cover repeated module evaluation and multi-cleanup dispatch with Vitest regression tests.
Files changed:
.../src/__tests__/process-lifecycle.test.ts | 76 ++++++++++++++++++++++
packages/dashboard/src/agent-generation.ts | 3 +-
packages/dashboard/src/ai-refine.ts | 3 +-
.../dashboard/src/milestone-slice-interview.ts | 3 +-
packages/dashboard/src/mission-interview.ts | 3 +-
packages/dashboard/src/planning.ts | 3 +-
packages/dashboard/src/process-lifecycle.ts | 63 ++++++++++++++++++
packages/dashboard/src/server.ts | 3 +-
packages/dashboard/src/subtask-breakdown.ts | 3 +-
9 files changed, 153 insertions(+), 7 deletions(-)
Fusion-Task-Id: FN-6488
Fusion-Task-Lineage: 3ec47f17-ae38-4ee3-a3fa-3132d23a2b12
2026-06-16 15:08:24 -07:00
..
2026-06-16 15:08:24 -07:00
2026-06-14 22:43:49 -07:00
2026-06-16 15:08:24 -07:00
2026-06-16 15:08:24 -07:00
2026-06-14 22:43:49 -07:00
2026-06-16 15:08:24 -07:00
2026-06-16 15:08:24 -07:00
2026-06-14 22:43:49 -07:00
2026-06-14 22:43:49 -07:00
2026-06-16 15:08:24 -07:00
2026-06-08 15:19:27 -07:00
2026-06-14 22:43:49 -07:00