Skip to content

[ref-watch-phosphene-live-video-stage] Put forming renders on the main stage #4588

Description

@atomantic

From reference-watch review of Phosphene (commits e0a5efca, ee16a684, 3f80c5af, 61e8c5fb, 2026-08-19).

These commits turn an in-flight local video render into a guarded, full-size main-stage preview, retain an animated loop when available, fall back to still frames, and use the job's resolved dimensions for portrait/landscape rendering. PortOS already has stepwise image previews and socket/SSE video progress, but VideoGen currently waits for the completed MP4 before offering a gallery preview; adding this would materially shorten feedback time for LTX/H3 renders without stealing a clip the user is actively watching.

Fix: Extend scripts/generate_ltx2.py#run_text()/run_image() and the H3 helpers (scripts/generate_minimax_h3.py#main(), scripts/generate_minimax_h3_cuda.py#main()) to publish bounded, job-scoped preview frames; update server/services/videoGen/local.js#generateVideo() and server/services/videoGen/events.js#videoGenEvents to forward an explicit preview contract; add a client/src/components/videoGen/LiveVideoStage.jsx (or equivalent) and wire client/src/pages/VideoGen.jsx to show live frames with safe hold/return behavior and the render's width/height aspect ratio. Cover preview cleanup, stale-job isolation, portrait geometry, animated-loop fallback, and completion handoff in the corresponding server/client tests.

Estimated scope: large.

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort:highDispatch reasoning effort: highmodel:heavyDispatch capability: strongest available coding modelneeds-inputNeeds human clarification before it can be claimed autonomouslyplanTracked by /do:replanreference-watchProposed from a reference-repo watch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions