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

review: clarify multipart parser comment + UI mode docstring

Adam Eivy6b9ecc91a440
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 883931b07e..d2f3a58bdf 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -14,6 +14,8 @@
* frame, so when both are provided the last is ignored)
* - extend: pick a previous render → its last frame becomes the source
* image for a new image-to-video generation
+ * - a2v: audio-to-video (uploaded WAV/MP3 drives the video's motion +
+ * audio track) — dgrauet/ltx2 runtime only
*
* Batch queue: client-side serial executor. The form's "Add to queue" button
* appends a job to the queue (preserving the current params). When no job is
diff --git a/server/routes/videoGen.js b/server/routes/videoGen.js
index 654713bb29..eed53b281c 100644
--- a/server/routes/videoGen.js
+++ b/server/routes/videoGen.js
@@ -32,9 +32,11 @@ import { enqueueJob, attachSseClient, cancelJob, listJobs } from '../services/me
const router = Router();
// Single uploader handles both sourceImage (image/fflf modes) and audioFile
-// (a2v mode). They're mutually exclusive per request — the parser keeps the
-// first matching file part and discards bytes for any other file fields, so
-// this is safe even if a malformed client sends both.
+// (a2v mode). The UI never sends both in one request, so the parser's
+// "last matching file wins" behavior is fine in practice; a malformed client
+// that did send both would only leak the first part's tmp file (gets reaped
+// on reboot) and the route's fileFilter ensures whatever survives is the
+// correct content-type for its claimed fieldname.
const mediaUpload = uploadSingle(['sourceImage', 'audioFile'], {
limits: { fileSize: 100 * 1024 * 1024 },
fileFilter: (_req, file, cb) => {