Skip to content

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

docs: note that the hook-dispatch timeout stops waiting, not the hook itself (#2727)

[._.]/ Adam Eivy19b3afb24871
diff --git a/server/services/agentLifecycle.js b/server/services/agentLifecycle.js
index 6d63179073..20b5c4e653 100644
--- a/server/services/agentLifecycle.js
+++ b/server/services/agentLifecycle.js
@@ -911,6 +911,12 @@ export function resolveProgrammaticIoVerdict({ success, hookResult }) {
* proceeds and task-learning falls back to the exit code (the pre-#2727
* behavior). Generous by design — this is a hang backstop, not a latency budget;
* a slow-but-honest hook should still get to return its real verdict.
+ *
+ * Timing out only stops us WAITING — it can't cancel the hook, which keeps running
+ * and still lands its side effects (filing the issue, recording the run). That's
+ * the desired trade: the work completes, it just no longer pins a concurrency slot
+ * or gates the completion write. A late rejection is still handled (Promise.race
+ * subscribes to both), so it can't surface as an unhandled rejection.
*/
const OUTPUT_HOOK_TIMEOUT_MS = 5 * 60_000;