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
treat autopilot 'paused' frame as terminal in useSseProgress
[._.]/ Adam Eivy1342514e4c57
diff --git a/client/src/hooks/useSseProgress.js b/client/src/hooks/useSseProgress.jsindex 33e42411e7..bd62d16daf 100644--- a/client/src/hooks/useSseProgress.js+++ b/client/src/hooks/useSseProgress.js@@ -3,7 +3,11 @@ import { useEffect, useRef, useState } from 'react';// Both cancel spellings are terminal. Every emitter normalizes on `canceled`// (single l); `cancelled` stays tolerated defensively so a stream from an// emitter that drifts back to the double-l spelling still terminates.-const TERMINAL_TYPES = new Set(['complete', 'canceled', 'cancelled', 'error']);+// `paused` is terminal too: the series-autopilot runner ends a run by+// broadcasting `paused` (budget/non-convergence/canon gate) and then closing+// the SSE server-side, so the client must treat it as stream-ending. Inert for+// other consumers — no other runner emits a `paused` frame.+const TERMINAL_TYPES = new Set(['complete', 'canceled', 'cancelled', 'error', 'paused']);/** True when a frame is one of the stream-ending types this hook closes on. */export const isTerminalSseFrame = (frame) => TERMINAL_TYPES.has(frame?.type);