fix(FN-2364): harden diagnostics context and plugin reload imports

- Add explicit operation metadata to agent-generation and ai-session-store diagnostics for cleanup, recovery, and scheduled cleanup paths
- Extend dashboard guardrail coverage to explicitly enforce diagnostics protection for agent-generation.ts and ai-session-store.ts
- Stabilize plugin module reload imports by using temporary reload files with deterministic file URLs and cache updates
- Tighten CLI Vitest workspace cleanup to safely skip missing hidden dist directories during restore
This commit is contained in:
Fusion
2026-04-24 01:34:34 -07:00
committed by gsxdsm
parent 5e9cd88708
commit 4f9f36fe75
7 changed files with 58 additions and 42 deletions

View File

@@ -215,6 +215,8 @@ function cleanupExpiredSessions(): void {
diagnostics.info("Cleanup completed", {
cleanedSessions,
cleanedRateLimits,
ttlMs: SESSION_TTL_MS,
rateLimitWindowMs: RATE_LIMIT_WINDOW_MS,
operation: "cleanup-expired",
});
}