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 one return shape from runYtDlp by reporting output on the cancel path too
[._.]/ Adam Eivyc0513ab76417
diff --git a/server/services/ytdlpRun.js b/server/services/ytdlpRun.jsindex 99db1c9fea..f5744e52aa 100644--- a/server/services/ytdlpRun.js+++ b/server/services/ytdlpRun.js@@ -158,8 +158,10 @@ export async function runYtDlp({ ytDlp, args, onProgress, registerProcess }) {if (exit.signal === 'SIGTERM' || exit.signal === 'SIGKILL') {// Don't flush on cancel — a SIGKILL'd child leaves only a partial marker// line in the carry, and emitting it would fire a stray progress/stage- // callback right before the caller reports the cancellation.- return { canceled: true, code: exit.code ?? null, signal: exit.signal, reason: null, title };+ // callback right before the caller reports the cancellation. `output` is+ // still reported (minus that unflushed carry) so every return from this+ // function has the one shape its callers can rely on.+ return { canceled: true, code: exit.code ?? null, signal: exit.signal, reason: null, title, output: tail.text() };}// Flush any final line the child wrote without a trailing newline before exit.// yt-dlp's `ERROR:` line is often exactly that last line, so flushing has to