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
guard the detached repo-state audit against an unhandled rejection
[._.]/ Adam Eivy6a4bd3af6de0
diff --git a/server/services/agentWorktreeCleanup.js b/server/services/agentWorktreeCleanup.jsindex a25014b60a..68b047c6ab 100644--- a/server/services/agentWorktreeCleanup.js+++ b/server/services/agentWorktreeCleanup.js@@ -100,7 +100,9 @@ export async function cleanupAgentWorktree(agentId, success, options = {}) {.catch(err => emitLog('warn', `🔎 Repo-state audit failed for ${agentId}: ${err.message}`, { agentId })),// A cleanup that threw has no end state to audit; `settled` still rejects.() => {}- );+ // Nothing awaits this chain, so a throw from the reporting itself would surface+ // as an unhandled rejection and take the process down outside any request.+ ).catch(() => {});return settled;}