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
fix: honor Eidoverse cancellation before song mux
[._.]/ Adam Eivy82d97b0caae6
diff --git a/server/services/musicVideo/eidoverseRender.js b/server/services/musicVideo/eidoverseRender.jsindex eba2d69d9a..50df1aa5f2 100644--- a/server/services/musicVideo/eidoverseRender.js+++ b/server/services/musicVideo/eidoverseRender.js@@ -109,6 +109,7 @@ export async function encodeEidoverseComposition({ plan, project, audioPath, outif (!info.isFile() || info.isSymbolicLink() || info.nlink !== 1 || info.size === 0 || info.size > OUTPUT_LIMIT) throw new ServerError('Eidoverse produced an invalid video.', { status: 422, code: 'EIDOVERSE_OUTPUT_INVALID' });const [duration, geometry] = await Promise.all([probeVideoDuration(silent), probeVideoGeometry(silent)]);if (!Number.isFinite(duration) || Math.abs(duration - plan.durationSec) > 1 / plan.fps || geometry?.width !== plan.width || geometry?.height !== plan.height || Math.abs((geometry?.fps || 0) - plan.fps) > 0.01) throw new ServerError('Eidoverse output does not match the song duration and frame size.', { status: 422, code: 'EIDOVERSE_OUTPUT_INVALID' });+ signal?.throwIfAborted();onProgress?.(0.9);const span = windowEnd - windowStart;const mux = await runFfmpegProcess({ bin: ffmpeg, signal, args: [diff --git a/server/services/musicVideo/eidoverseRender.test.js b/server/services/musicVideo/eidoverseRender.test.jsindex b7fb5f342e..2d7190962f 100644--- a/server/services/musicVideo/eidoverseRender.test.js+++ b/server/services/musicVideo/eidoverseRender.test.js@@ -72,3 +72,11 @@ it('rejects symlink or short output instead of marking an unusable film completeawait expect(encodeEidoverseComposition({ plan, project, audioPath: '/example/song.wav', outputPath: '/example/final.mp4' })).rejects.toMatchObject({ code: 'EIDOVERSE_OUTPUT_INVALID' });expect(runFfmpegProcess).not.toHaveBeenCalled();});++it('does not start the song mux when cancellation arrives during output probing', async () => {+ const plan = await prepareEidoverseRender(project);+ const controller = new AbortController();+ probeVideoDuration.mockImplementationOnce(async () => { controller.abort(); return 10; });+ await expect(encodeEidoverseComposition({ plan, project, audioPath: '/example/song.wav', outputPath: '/example/final.mp4', signal: controller.signal })).rejects.toThrow();+ expect(runFfmpegProcess).not.toHaveBeenCalled();+});