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
bump claude-code CLI timeout to 15min and show elapsed-time banner during writers-room runs
[._.]/ Adam Eivyb1f85b99b42a
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 956c16c764..fc4ee0aa49 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -8,6 +8,7 @@## Changed+- **Writers Room analysis runs now show live elapsed-time feedback, and the Claude Code CLI provider timeout cap is raised to 30 minutes (default 15).** Long Opus-on-prose runs (e.g. `writers-room-script` with a 35k-char prompt) were dying at the old 5-minute provider cap; the in-tree provider for Claude Code now defaults to 900s and the validation cap on every provider's `timeout` field is raised to 1800s. The Writers Room work editor also gains a persistent status banner under the header while an analysis is running — analysis label, mm:ss elapsed, and reassurance text that escalates from "Working…" to "Still going — Opus on long prose runs 5–10+ minutes" so the UI no longer goes silent during multi-minute waits.- **`plan-task` scheduler now skips dispatch when PLAN.md has nothing to do, and the `plan-task` prompt waits for code review before merging.** The scheduled `plan-task` agent used to spin up an LLM round even when PLAN.md was empty, only had `<!-- NEEDS_INPUT -->` items, or had `> ⚠️ DRIFT:` flags on every unchecked entry — the agent would just exit cleanly, burning a model call for no work. The scheduler now classifies the plan locally (cheap, no git/gh round-trip) and short-circuits the dispatch entirely in those cases, plus when every otherwise-eligible item is already claimed by another agent in flight. `feature-ideas` is intentionally never gated — its job is to brainstorm into an empty plan. The `plan-task` prompt itself also gained an explicit "wait for the configured reviewer's findings" step in Phase 6 between `gh pr create` and `gh pr merge`; previously `gh pr merge --auto` waited only on required status checks and could merge before Copilot's auto-review even arrived (as happened to PR #418). The reviewer is now configurable per scheduled task — pick Copilot, Claude, Codex, or Gemini from the Schedule tab, same picker as the add-task form. Copilot polls for the auto-review and addresses comments before merging (cap 3 iterations); the local-CLI options hand off to `/do:rpr --review-with <agent>`. The prompt's opening line and Phase 1 header were also rewritten so the dual scheduler-pre-reserved / agent-picks paths read clearly instead of contradicting each other.- **GOALS.md now reflects the full app.** Added two missing core goals — **Creative Production Suite** (Writers Room, Universe Builder, Series Pipeline, Creative Director, Image/Video Gen, Timeline, LoRAs, Importer, Sharing) and **Cognitive Training & Lifelong Learning** (POST, Morse, Rapid Reader, Wiki). Reframed Purpose and tagline around "everything app," "create more than consume," and "interface with the world and with myself." Updated Status table and Secondary Goals (music/audio production, mood board, sketch canvas, federated sharing, cross-domain insights).- **[cover-prose-input-idea-input-in-canonusage-corpus] Universe canon cross-reference test suite now pins every stage the per-issue search reads** — a regression that silently drops a stage from the search now fails the test suite immediately.diff --git a/client/src/components/writers-room/WorkEditor.jsx b/client/src/components/writers-room/WorkEditor.jsxindex 040eb0fad3..50d9667615 100644--- a/client/src/components/writers-room/WorkEditor.jsx+++ b/client/src/components/writers-room/WorkEditor.jsx@@ -103,6 +103,7 @@ export default function WorkEditor({ work, onChange, onToggleExercise, exerciseOconst [places, setPlaces] = useState([]);const [objects, setObjects] = useState([]);const [runningKind, setRunningKind] = useState(null);+ const [runStartedAt, setRunStartedAt] = useState(null);const [drawer, setDrawer] = useState(null);const [overflowOpen, setOverflowOpen] = useState(false);const [mobileTab, setMobileTab] = useState(MOBILE_TAB.WRITING);@@ -465,15 +466,18 @@ export default function WorkEditor({ work, onChange, onToggleExercise, exerciseOconst runAnalysis = useCallback(async (kind) => {if (runningKind) return false;setRunningKind(kind);+ setRunStartedAt(Date.now());const snapshot = await runWritersRoomAnalysis(work.id, { kind }).catch((err) => {if (mountedRef.current) toast.error(`${ANALYSIS_LABELS[kind] || kind} failed: ${err.message}`);return null;});if (!mountedRef.current) {setRunningKind(null);+ setRunStartedAt(null);return false;}setRunningKind(null);+ setRunStartedAt(null);if (!snapshot) return false;if (snapshot.status === 'failed') {toast.error(`${ANALYSIS_LABELS[kind] || kind} failed: ${snapshot.error || 'unknown'}`);@@ -751,6 +755,14 @@ export default function WorkEditor({ work, onChange, onToggleExercise, exerciseO</div></div>+ {runningKind && (+ <AnalysisRunBanner+ kind={runningKind}+ label={ANALYSIS_LABELS[runningKind] || runningKind}+ startedAt={runStartedAt}+ />+ )}+{/* Mobile-only Writing/Storyboard toggle — desktop renders both side-by-side. */}<div className="lg:hidden flex border-b border-port-border bg-port-bg/40 shrink-0"><MobileTab active={mobileTab === MOBILE_TAB.WRITING} onClick={() => setMobileTab(MOBILE_TAB.WRITING)} icon={PenLine} label="Writing" />@@ -924,6 +936,51 @@ function MenuItem({ icon: Icon, label, onClick, running = false, active = false,);}+// In-progress banner for a writers-room analysis run. Renders a persistent+// status strip with elapsed time and reassurance text that escalates as the+// run drags on — so long Opus-on-prose runs (which can legitimately take+// 10+ minutes) don't look like the UI has gone silent.+function AnalysisRunBanner({ kind, label, startedAt }) {+ const [elapsed, setElapsed] = useState(() => (startedAt ? Math.floor((Date.now() - startedAt) / 1000) : 0));+ useEffect(() => {+ if (!startedAt) return undefined;+ setElapsed(Math.floor((Date.now() - startedAt) / 1000));+ const id = setInterval(() => {+ setElapsed(Math.floor((Date.now() - startedAt) / 1000));+ }, 1000);+ return () => clearInterval(id);+ }, [startedAt]);++ const mm = Math.floor(elapsed / 60);+ const ss = elapsed % 60;+ const timeStr = `${mm}:${ss.toString().padStart(2, '0')}`;++ // Reassurance ladder — escalating context so the user can tell the+ // difference between "normal" and "this is taking unusually long."+ const tone =+ elapsed >= 480 ? 'border-port-warning/50 bg-port-warning/5 text-port-warning'+ : 'border-port-accent/40 bg-port-accent/5 text-gray-200';+ const reassurance =+ elapsed < 30 ? 'Working…'+ : elapsed < 120 ? 'Still working — large prompts can take a few minutes.'+ : elapsed < 480 ? 'Still going — Opus on long prose runs 5–10+ minutes. Hang tight.'+ : 'Almost there — keep this tab open while the agent finishes.';++ return (+ <div+ role="status"+ aria-live="polite"+ className={`shrink-0 flex items-center gap-3 px-4 py-2 border-b text-[12px] ${tone}`}+ data-kind={kind}+ >+ <Loader2 size={14} className="animate-spin shrink-0" />+ <span className="font-semibold shrink-0">{label}</span>+ <span className="tabular-nums text-gray-300 shrink-0" aria-label="elapsed time">{timeStr}</span>+ <span className="truncate text-gray-400">{reassurance}</span>+ </div>+ );+}+function MobileTab({ active, onClick, icon: Icon, label }) {return (<buttondiff --git a/server/lib/aiToolkit/constants.js b/server/lib/aiToolkit/constants.jsindex 8d289a1df0..3aeea03f44 100644--- a/server/lib/aiToolkit/constants.js+++ b/server/lib/aiToolkit/constants.js@@ -20,7 +20,7 @@ export const RUN_TYPES = {};export const DEFAULT_TIMEOUT = 300000;-export const MAX_TIMEOUT = 600000;+export const MAX_TIMEOUT = 1800000;export const MIN_TIMEOUT = 1000;export const DEFAULT_TEMPERATURE = 0.1;diff --git a/server/lib/aiToolkit/validation.js b/server/lib/aiToolkit/validation.jsindex c49d30da4a..02c8aa5a60 100644--- a/server/lib/aiToolkit/validation.js+++ b/server/lib/aiToolkit/validation.js@@ -22,7 +22,7 @@ export const providerSchema = z.object({mediumModel: z.string().nullable().optional(),heavyModel: z.string().nullable().optional(),fallbackProvider: z.string().nullable().optional(),- timeout: z.number().int().min(1000).max(600000).optional(),+ timeout: z.number().int().min(1000).max(1800000).optional(),enabled: z.boolean().optional(),envVars: z.record(z.string()).optional(),secretEnvVars: z.array(z.string()).optional(),@@ -42,7 +42,7 @@ export const runSchema = z.object({command: z.string().optional(),prompt: z.string().optional(),screenshots: z.array(z.string()).optional(),- timeout: z.number().int().min(1000).max(600000).optional()+ timeout: z.number().int().min(1000).max(1800000).optional()});export function validate(schema, data) {