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

fix(pipeline): gate Regenerate/Verify arc buttons on generated text content

[._.]/ Adam Eivy44733bd87951
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 1a0741734c..3dc564ede3 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -924,6 +924,15 @@
## Fixed
+- **Arc header — "Generate arc" stays accurate when only a shape is picked.**
+ After the sanitizer started preserving shape-only arcs, any series created
+ with a Vonnegut shape but no other arc content immediately showed
+ *Regenerate arc* and the *Verify arc* button — even though the LLM hadn't
+ written any logline/summary/themes yet. New `hasGeneratedArc` check gates
+ on actual text content (`logline || summary || protagonistArc ||
+ themes.length`), so the button reads *Generate arc* and Verify stays
+ hidden until the LLM has actually produced an arc to regenerate or verify.
+
- **Storyboards scene extraction now uses the per-series configured LLM.**
Clicking "From Teleplay" / "From Prose" on the Storyboards stage was
calling Claude Code (the system default) regardless of the
diff --git a/client/src/components/pipeline/ArcCanvas.jsx b/client/src/components/pipeline/ArcCanvas.jsx
index 3e659c6240..d6807bbedd 100644
--- a/client/src/components/pipeline/ArcCanvas.jsx
+++ b/client/src/components/pipeline/ArcCanvas.jsx
@@ -209,7 +209,15 @@ function ArcHeader({ series, onSeriesUpdate, onIssuesUpdate, onFlushPending }) {
}
};
- const generateBtnLabel = arc ? 'Regenerate arc' : 'Generate arc';
+ // A picked `shape` alone counts as an "arc" record (it's an explicit
+ // narrative-design decision the sanitizer preserves), but it isn't a
+ // generated arc — the LLM hasn't written anything yet. Use the
+ // text-content check to drive the "Generate" vs "Regenerate" affordances
+ // so the user isn't told to regenerate something that doesn't exist yet.
+ const hasGeneratedArc = !!(
+ arc && (arc.logline || arc.summary || arc.protagonistArc || arc.themes?.length)
+ );
+ const generateBtnLabel = hasGeneratedArc ? 'Regenerate arc' : 'Generate arc';
return (
<section className="bg-port-card border border-port-border rounded-lg p-4 space-y-3">
@@ -230,7 +238,7 @@ function ArcHeader({ series, onSeriesUpdate, onIssuesUpdate, onFlushPending }) {
{running === 'generate' ? <Loader2 size={14} className="animate-spin" /> : <Sparkles size={14} />}
{generateBtnLabel}
</button>
- {arc ? (
+ {hasGeneratedArc ? (
<button
type="button"
onClick={runVerify}