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 (codex): honor text-only target, persist dry-run plan, forward provider override
[._.]/ Adam Eivy6369c05522a1
diff --git a/client/src/components/pipeline/AutopilotPanel.jsx b/client/src/components/pipeline/AutopilotPanel.jsxindex 9c7d24b44b..5aac375f03 100644--- a/client/src/components/pipeline/AutopilotPanel.jsx+++ b/client/src/components/pipeline/AutopilotPanel.jsx@@ -228,18 +228,6 @@ export default function AutopilotPanel({ series, onSeriesUpdate, onIssuesUpdate{mode === 'dry-run' ? <span className="uppercase tracking-wider text-[10px] text-port-accent">dry-run</span> : null}{liveLabel}</div>- {plan ? (- <div className="mt-2 text-[11px] text-gray-400">- <div className="uppercase tracking-wider text-gray-500 mb-1">Planned steps</div>- <ul className="space-y-0.5">- {plan.map((p, i) => (- <li key={i} className="flex items-center gap-1.5">- <ChevronRight size={10} /> {stepLabel(p.kind)} ×{p.count}{p.note ? ` — ${p.note}` : ''}- </li>- ))}- </ul>- </div>- ) : null}{frames?.length ? (<div className="mt-2 max-h-28 overflow-y-auto text-[11px] text-gray-500 space-y-0.5">{frames.slice(-6).map((f, i) => <div key={i}>{frameLabel(f)}</div>)}@@ -248,6 +236,22 @@ export default function AutopilotPanel({ series, onSeriesUpdate, onIssuesUpdate</div>) : null}+ {/* Dry-run plan — rendered whenever a plan exists, so it survives after the+ dry-run stream closes (a dry-run persists no marker and completes+ immediately). Cleared when the next run starts. */}+ {plan?.length ? (+ <div className="px-3 pb-3 border-t border-port-border pt-2 text-[11px] text-gray-400">+ <div className="uppercase tracking-wider text-gray-500 mb-1">{active ? 'Planned steps' : 'Dry-run plan'}</div>+ <ul className="space-y-0.5">+ {plan.map((p, i) => (+ <li key={i} className="flex items-center gap-1.5">+ <ChevronRight size={10} /> {stepLabel(p.kind)} ×{p.count}{p.note ? ` — ${p.note}` : ''}+ </li>+ ))}+ </ul>+ </div>+ ) : null}+{/* Persisted status banner (paused / done / error) */}{!active && ap && ap.status && ap.status !== 'idle' && ap.status !== 'running' ? (<div className={`px-3 pb-3 border-t pt-2 ${ap.status === 'paused' ? 'border-port-warning/30' : ap.status === 'error' ? 'border-port-error/30' : 'border-port-success/30'}`}>diff --git a/server/services/pipeline/seriesAutopilot.js b/server/services/pipeline/seriesAutopilot.jsindex b3b57ff890..276ed1b4c8 100644--- a/server/services/pipeline/seriesAutopilot.js+++ b/server/services/pipeline/seriesAutopilot.js@@ -139,6 +139,17 @@ export function isComicTarget(series) {return (series?.targetFormat || 'comic+tv').includes('comic');}+// Effective "produce draft visuals?" decision. The `target` option overrides+// the `includeVisual` flag: 'text' forces text-only (no canon gate, no render),+// 'visual' forces visuals, and 'auto' (the default) honors `includeVisual`+// (which itself defaults true). Without this, a `target:'text'` request on a+// comic series would still run canonVerify + queue draft renders.+export function wantsVisual(options = {}) {+ if (options.target === 'text') return false;+ if (options.target === 'visual') return true;+ return options.includeVisual !== false;+}+function orderedIssues(issues) {return [...(Array.isArray(issues) ? issues : [])].sort(compareIssuesByPosition);}@@ -251,12 +262,12 @@ export function resolveNextStep(series, issues, runState = {}, options = {}) {// canon noun that appears where it'd be drawn must be described (an artist// can't render a name). Runs once per run; the gate blocks (pauses) on// undescribed drawn nouns. Only relevant when visuals will be produced.- if (VISUAL_DRAFT_ENABLED && options.includeVisual && isComicTarget(series) && !runState.canonVerified) {+ if (VISUAL_DRAFT_ENABLED && wantsVisual(options) && isComicTarget(series) && !runState.canonVerified) {return { kind: 'canonVerify', reason: 'canon descriptive integrity not yet verified this run' };}// STEP 6 — draft visuals (cover + back + all interior pages).- if (VISUAL_DRAFT_ENABLED && options.includeVisual && isComicTarget(series)) {+ if (VISUAL_DRAFT_ENABLED && wantsVisual(options) && isComicTarget(series)) {for (const issue of ordered) {if (setHas(runState.visualDrafted, issue.id)) continue;if (visualReady(issue)) continue;@@ -414,7 +425,9 @@ const runText = (issueId, record) => runChildToCompletion(record, {attemptedSet: record.runState.textAttempted,kind: 'text',id: issueId,- start: () => autoRunner.startAutoRunTextStages(issueId, { force: false }),+ // Forward the run's provider/model override so prose + scripts honor it like+ // every other step (autoRunner threads these into generateStage).+ start: () => autoRunner.startAutoRunTextStages(issueId, { force: false, ...providerIdOpts(record) }),isActive: autoRunner.isAutoRunActive,});@@ -719,7 +732,7 @@ function buildDryRunPlan(series, issues, options) {if (textNeeded) plan.push({ kind: 'textStages', count: textNeeded });if (isComicTarget(series)) plan.push({ kind: 'scriptVerify', count: ordered.length });plan.push({ kind: 'editorialReview', count: 1, note: `up to ${MAX_EDITORIAL_ROUNDS} rounds` });- if (VISUAL_DRAFT_ENABLED && options.includeVisual && isComicTarget(series)) {+ if (VISUAL_DRAFT_ENABLED && wantsVisual(options) && isComicTarget(series)) {plan.push({ kind: 'canonVerify', count: 1, note: 'descriptive integrity of drawn nouns' });const visualNeeded = ordered.filter((i) => !visualReady(i)).length;if (visualNeeded) plan.push({ kind: 'visualDraft', count: visualNeeded, note: 'cover + back + all pages (draft)' });diff --git a/server/services/pipeline/seriesAutopilot.test.js b/server/services/pipeline/seriesAutopilot.test.jsindex 9ada88648f..dd137edaf5 100644--- a/server/services/pipeline/seriesAutopilot.test.js+++ b/server/services/pipeline/seriesAutopilot.test.js@@ -200,6 +200,17 @@ describe('resolveNextStep (pure)', () => {comic,[issue({ stages: { idea: ready(), comicScript: ready(VALID_SCRIPT) } })],{ arcVerified: true, scriptChecked: new Set(['iss1']), editorialReviewed: true },+ { includeVisual: false },+ );+ expect(step.kind).toBe('done');+ });++ it('is done (no canon/visual) when target is text, even on a comic series', () => {+ const step = resolveNextStep(+ comic,+ [issue({ stages: { idea: ready(), comicScript: ready(VALID_SCRIPT) } })],+ { arcVerified: true, scriptChecked: new Set(['iss1']), editorialReviewed: true },+ { includeVisual: true, target: 'text' },);expect(step.kind).toBe('done');});