feat: prompt review gate, ComfyUI error surfacing, saved scene setups (1.3.0)

Issues #27/#33/#28. Generate now resolves the prompt first (saved draft
or H3 rewrite) and opens an editable review modal before enqueueing;
job history drawer shows each render's exact payload with copy-to-form.
ComfyUI 400s surface error.type + per-node messages; audio uploads go
flat and VHS audio: widgets are patched. Per-scene video settings
persist via scenes.video_settings_json (additive migration) and batch
generate honors them. Version bumped to 1.3.0.
This commit is contained in:
Benjiyaya
2026-08-31 03:20:25 +08:00
parent 792e9c57b1
commit 9c8ea8f28f
22 changed files with 1697 additions and 56 deletions
+31
View File
@@ -0,0 +1,31 @@
# 2026-08-31 — Calliope 1.3.0
Issue-driven update: prompt visibility (#27), ComfyUI error surfacing + audio fixes (#33), and scene-setup persistence (#28).
## Prompt review before Generate (#27)
- **Review gate**: Generate on a scene now opens a prompt preview modal first. It resolves the exact prompt that would be sent (saved draft → MiniMax H3 rewrite → deterministic fallback), lets you edit it, and only enqueues after you confirm.
- **Editable + saveable**: edit the text inline, Regenerate to re-run the H3 rewrite, or Save draft so future generates (single or batch) reuse it. A stale hint appears when the draft was saved against older scene content.
- **Render history**: the per-scene drawer (View prompt & inputs) is now a full job history — newest jobs for the scene as selectable chips, each showing the exact payload sent to ComfyUI, plus "Copy settings to form" to load a past job's input values back into the live form.
- Batch **Generate all** skips the modal: it uses each scene's saved draft when present and auto-rewrites the rest, and the completion toast reports how many drafts were applied.
## Better ComfyUI errors + audio input fixes (#33)
- Failed `/prompt` calls no longer surface as an opaque 400. ComfyUI's own `error.type` and per-node messages (e.g. `node 12: Invalid audio file: "x.m4a"`) are parsed and shown on the job.
- Audio uploads go to ComfyUI's flat input directory and return a bare filename, matching what `LoadAudio`'s file list expects.
- `VHS_LoadAudio` support: its widget is literally named `audio:` (with the colon) — both the media-uploader probe and the workflow patcher now handle it. The patcher's sibling-key fallback is strictly guarded to `text ↔ value` and `audio ↔ audio:` pairs.
- Upload failures (`/upload/image`) surface the same detailed error bodies.
## Saved scene setups (#28)
- The video stage's per-scene form (workflow pick, input values, video source) auto-saves to the scene and hydrates on reload — no more losing settings on refresh or app restart.
- **Generate all** honors each scene's saved setup, so batch renders keep per-scene tweaks.
- Prompt drafts persist per scene alongside the settings.
- Moved installs stay working: asset paths inside saved settings are rebased by the existing migration when the data directory changes.
## Under the hood
- `scenes.video_settings_json` column (additive migration, no data loss).
- New endpoint `POST /api/jobs/projects/{id}/preview-prompt`.
- `GenerateVideosRequest` accepts an optional `prompts` map (scene-id → confirmed text).
- 262 backend tests green; `svelte-check` clean.
+1
View File
@@ -2,6 +2,7 @@
Dated notes for GitHub releases. Newest first.
- [2026-08-31](./2026-08-31.md) — Prompt review gate, ComfyUI error surfacing, saved scene setups (1.3.0)
- [2026-08-29](./2026-08-29.md) — Model per agent + clip-native export fps + video-extend continue (1.2.3)
- [2026-08-24](./2026-08-24.md) — Agent + Assets Management (1.2.1)
- [2026-08-23](./2026-08-23.md) — 1.2.0 / 1.2.1 video, H3, picker, release notes