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

fix: preserve render completion if temporary audio cleanup fails

[._.]/ Adam Eivy70da7be90fea
diff --git a/server/services/htmlComposition/index.js b/server/services/htmlComposition/index.js
index 1e5be46bcf..84a8a8463b 100644
--- a/server/services/htmlComposition/index.js
+++ b/server/services/htmlComposition/index.js
@@ -120,7 +120,9 @@ export async function renderComposition({ jobId, ...input }) {
failure = error;
} finally {
await page?.close();
- if (audioDirectory) await rm(audioDirectory, { recursive: true, force: true });
+ if (audioDirectory) await rm(audioDirectory, { recursive: true, force: true }).catch(() => {
+ console.warn('⚠️ Could not remove temporary composition audio');
+ });
if (!success) {
for (const path of deliveredPaths) await unlinkGuarded(path).catch(() => {});
await unlinkGuarded(outputPath).catch(() => {});