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 (gemini): avoid 0% progress flash on resume
[._.]/ Adam Eivy36c649f2a6a8
diff --git a/PLAN.md b/PLAN.mdindex 5d8bd3cc89..968f81f99c 100644--- a/PLAN.md+++ b/PLAN.md@@ -64,6 +64,7 @@ Items here need a research / design pass, an explicit decision, or a preconditio- [ ] [episode-video-provider-picker-runwayml-third-party] **Episode-video provider picker (RunwayML / third-party).** Once the abstraction lands, expose picker on EpisodeVideoStage.- [ ] [comic-book-pdf-export-once-stages-comicpages] **Comic-book PDF export.** Once `stages.comicPages` carries enough panel data + rendered images, export print-ready PDF.- [ ] [ai-assisted-panel-scene-prompt-generation-reserve] **AI-assisted panel/scene prompt generation.** Reserve `pipeline-comic-panel-image-prompt.md` and `pipeline-storyboard-image-prompt.md` for a future "turn script fragment into N image-gen prompts" button.+- [ ] [media-job-store-progress-on-job-record] **mediaJobQueue: persist progress/statusMsg on the job record.** `runJob`'s progress handler in `server/services/mediaJobQueue/index.js` only broadcasts to SSE — it doesn't mutate the job object. So `GET /api/media-jobs/:id` (used by `MediaJobsQueue.jsx` and any other non-SSE consumer) always reports 0 progress for in-flight jobs. SSE-attached pages don't see this (lastPayload replay), but list-view hydration does. Add `job.progress` + `job.statusMsg` updates inside the dispatcher's `progress` handler. Deferred from video-reload PR — cross-cutting across image/video/codex paths.- [ ] [unify-media-job-sse-hook-imagegen-videogen] **Unify ImageGen + VideoGen SSE attach into `useMediaJobSse` hook.** Both pages now have near-duplicate EventSource handlers (ImageGen `startLocalGeneration` lines 653-708 + resume block lines 317-328; VideoGen `attachJobEvents`). Build a hook on top of `useSseProgress` (`client/src/hooks/useSseProgress.js`) that handles the queued / started / status / progress / complete / error / canceled SSE types and consolidate both sites. Deferred from the video-reload PR — scope was just the bug fix.- [ ] [whole-episode-audio-generation-strategy-stop] **Whole-episode audio generation strategy.** Stop relying on per-clip audio; drive audio gen from episode-level prose/script arc. Generator candidates: Suno (commercial, duration control), MusicGen-MLX (local, bounded ~30s), AudioLDM2. New `audioMode: 'per-clip' | 'silent' | 'generated' | 'uploaded-track'`. Treat as a new sub-brainstorm when picked up — investigation first.diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsxindex f7f8bbc56d..0fe438181c 100644--- a/client/src/pages/VideoGen.jsx+++ b/client/src/pages/VideoGen.jsx@@ -514,7 +514,10 @@ export default function VideoGen() {if (p.mode) setMode(p.mode);if (p.chunks && p.chunks > 1) setChunks(p.chunks);setGenerating(true);- setProgress({ progress: 0 });+ // Skip a forced setProgress(0) here — attachJobEvents will replay the+ // server's last SSE payload synchronously after EventSource open, and+ // a job mid-render would otherwise visibly flash 0% before jumping+ // back to its real progress.setStatusMsg(job.status === 'queued'? (typeof job.position === 'number' ? `Queued (position ${job.position})` : 'Queued'): 'Resuming…');