feat(FN-4743): complete Step 3 — wire mail cleanup into maintenance

Fusion-Task-Id: FN-4743
Fusion-Task-Lineage: 50d1d8e4-66d5-4299-843b-28072a904277
This commit is contained in:
Fusion (runfusion.ai)
2026-05-16 10:25:11 -07:00
committed by gsxdsm
parent 229f3a9467
commit 96be8d4cd7
3 changed files with 112 additions and 1 deletions

View File

@@ -657,6 +657,7 @@ export class InProcessRuntime
leaseManager: this.leaseManager,
hasActiveAgentExecution: (agentId: string) => this.heartbeatMonitor?.getTrackedAgents().includes(agentId) ?? false,
chatStore: this.chatStore,
messageStore: this.messageStore,
restartDurableAgentHeartbeat: async (agentId: string, context: { reason: string; attempt: number }) => {
if (!this.heartbeatMonitor) {
return false;