Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
keep optional chaining on the resumedTaskId read in featureAgents.js
[._.]/ Adam Eivy354d76f6598d
diff --git a/server/services/featureAgents.js b/server/services/featureAgents.jsindex 6587e2edbb..269bab6016 100644--- a/server/services/featureAgents.js+++ b/server/services/featureAgents.js@@ -632,7 +632,7 @@ cosEvents.on('agent:completed', async (agentData) => {// agent would never run again, by schedule or by hand, recoverable only by// Stop and re-activate. Those retirements fall through to// `recordRunCompletion` below, which clears the pointer as it always did.- const continuationTaskId = isQueuedContinuation(agentData) ? agentData.result.resumedTaskId : null;+ const continuationTaskId = isQueuedContinuation(agentData) ? agentData.result?.resumedTaskId : null;if (continuationTaskId) {// Compare-and-set against the retired agent's id, because this races the// spawn of the very continuation it points at: `requeuePausedTask` runs