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

address review (codex): seed storyboard description from the beats clause on the canonical path

[._.]/ Adam Eivy13313d8ad258
diff --git a/server/routes/pipeline.test.js b/server/routes/pipeline.test.js
index 6aa14f2ee4..ac7b338bf9 100644
--- a/server/routes/pipeline.test.js
+++ b/server/routes/pipeline.test.js
@@ -1109,6 +1109,9 @@ describe('pipeline routes', () => {
expect(r.body.stage.scenes[0].heading).toBe('Scene 1 — EXT. ROOFTOP — DUSK');
expect(r.body.stage.scenes[0].slugline).toBe('EXT. ROOFTOP — DUSK');
expect(r.body.stage.scenes[1].slugline).toBe('INT. KITCHEN — NIGHT');
+ // description seeds from the beats clause (summary) so the scene is renderable.
+ expect(r.body.stage.scenes[0].description).toBe('the hook');
+ expect(r.body.stage.scenes[1].description).toBe('the confrontation');
expect(r.body.stage.scenes[0].imageJobId).toBeNull();
expect(r.body.stage.status).toBe('ready');
// The deterministic path never reaches the LLM extractor.
diff --git a/server/routes/pipeline/issues.js b/server/routes/pipeline/issues.js
index 1803281b36..587efd4804 100644
--- a/server/routes/pipeline/issues.js
+++ b/server/routes/pipeline/issues.js
@@ -475,7 +475,11 @@ router.post('/issues/:id/stages/storyboards/extract-scenes', asyncHandler(async
// Adapt a canonical scene to the pipeline storyboards UI shape: alias
// `visualPrompt → description` (the textarea binding) and reset the per-scene
// image-gen job fields. Rich fields (heading/summary/dialogue/...) ride along.
- const toStoryboardScene = (s) => ({ ...s, description: s.visualPrompt || '', imageJobId: null, prompt: null });
+ // Fall back to the scene `summary` when there's no visualPrompt so the
+ // beat-sheet path (which carries the beats clause as summary, not a visual
+ // prompt) still seeds a non-empty description — the refine/image/video paths
+ // require one, so an empty description would leave those scenes un-renderable.
+ const toStoryboardScene = (s) => ({ ...s, description: s.visualPrompt || s.summary || '', imageJobId: null, prompt: null });
// Prefer the beat sheet's canonical `## Scenes` list when present (#1552):
// it's deterministic, free (no LLM), and guarantees `storyboards.scenes`