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
address review (claude): render ACE-Step 1.5 output in a temp dir, widen healthProbe
[._.]/ Adam Eivye6627c559533
diff --git a/scripts/generate_acestep15.py b/scripts/generate_acestep15.pyindex 3e17ddef1a..eb792a1705 100644--- a/scripts/generate_acestep15.py+++ b/scripts/generate_acestep15.py@@ -13,6 +13,7 @@ import jsonimport osimport shutilimport sys+import tempfileimport wave@@ -97,23 +98,28 @@ def main():seed=-1,)stage("generate", f"{duration:.1f}s")- result = generate_music(- dit_handler=dit_handler,- llm_handler=None,- params=params,- config=GenerationConfig(batch_size=1, audio_format="wav"),- save_dir=output_dir,- )- if not result.success or not result.audios:- reason = getattr(result, "error", None) or getattr(result, "status_message", "unknown error")- print(f"ERROR: ACE-Step 1.5 generation failed: {reason}", file=sys.stderr, flush=True)- return 1-- produced = result.audios[0].get("path")- if not produced or not os.path.isfile(produced):- print("ERROR: ACE-Step 1.5 returned no audio file", file=sys.stderr, flush=True)- return 1- if os.path.abspath(produced) != os.path.abspath(args.output):+ # Render into a per-invocation temp dir, not directly into the shared+ # PortOS music library (output_dir): any extra or partial file the vendor+ # call writes to save_dir beyond the one we move out — including on a+ # failed/partial generation — is cleaned up automatically when the `with`+ # block exits, instead of lingering as a phantom track in the library.+ with tempfile.TemporaryDirectory(prefix="acestep15-") as tmp:+ result = generate_music(+ dit_handler=dit_handler,+ llm_handler=None,+ params=params,+ config=GenerationConfig(batch_size=1, audio_format="wav"),+ save_dir=tmp,+ )+ if not result.success or not result.audios:+ reason = getattr(result, "error", None) or getattr(result, "status_message", "unknown error")+ print(f"ERROR: ACE-Step 1.5 generation failed: {reason}", file=sys.stderr, flush=True)+ return 1++ produced = result.audios[0].get("path")+ if not produced or not os.path.isfile(produced):+ print("ERROR: ACE-Step 1.5 returned no audio file", file=sys.stderr, flush=True)+ return 1shutil.move(produced, args.output)stage("encode-wav")print("RESULT:" + json.dumps({diff --git a/server/services/pipeline/musicGen.js b/server/services/pipeline/musicGen.jsindex 1b785db920..d724640d7b 100644--- a/server/services/pipeline/musicGen.js+++ b/server/services/pipeline/musicGen.js@@ -215,7 +215,11 @@ export const ENGINES = Object.freeze({installEnv: 'INSTALL_ACESTEP15',// ACE-Step 1.5's handler imports the fixed snapshot's custom// modeling_acestep_v15_turbo.py via transformers AutoModel trust_remote_code.- healthProbe: 'import torch; from transformers import AutoModel; from acestep.handler import AceStepHandler',+ // Probe the generation import path too (acestep.inference), not just the+ // handler — a venv missing that submodule would otherwise report healthy+ // and fail generation with a bare ImportError instead of the actionable+ // "runtime not found" 503.+ healthProbe: 'import torch; from transformers import AutoModel; from acestep.handler import AceStepHandler; from acestep.inference import GenerationConfig, GenerationParams, generate_music',lyrics: true,customModels: false,fixedModelInstall: true,