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
Release v2.6.0
Released: 2026-05-21
Added
- Character reference sheets can now render in multiple styles. Alongside the existing illustrated turnaround, characters can now also render a "Blueprint concept sheet" — annotated front/back/side/3-quarter views with close-ups of facial features, costume details, and accessories, on a clean white background with glowing accent linework over a structured base color (both colors auto-picked from the character's palette). The panel under each character in Universe Builder now shows one render row per registered variant, with its own Generate / Regenerate / Delete buttons and thumbnail. Adding a new style ("noir", "isometric", etc.) is a one-entry change in the server-side
SHEET_VARIANTSregistry plus a prompt-builder function — the UI catalog endpoint (GET /api/universe-builder/reference-sheet-variants) surfaces every registered variant automatically, so no new routes, schema fields, or storage shape changes are needed per variant. Storage stays back-compat: the legacyreferenceSheetImageReffield continues to hold the illustrated turnaround, every other variant lands in a newreferenceSheets[<id>]map. SharedreadSheetPointer/listSheetPointers/applySheetPointerToCharacterhelpers (mirrored client + server inlib/sheetPointers.js/storyBible.js) encapsulate the dual-shape read/write so every prune, purge, exporter, asset collector, and UI callback routes through one place. - [codex5-client-error-reporter] Browser-side errors and unhandled promise rejections surface in Review Hub. Crashes that used to vanish into the browser console now land as Review Hub alerts so they can be triaged alongside server errors and CoS work. Repeats of the same error within a day aggregate into a single entry, and bursty render storms are throttled so the hub stays readable.
- [codex5-dashboard-intent-layouts] Dashboard layouts for Deep Work, Health, and Agent Watch — plus a time-window "morning default." Three new built-in layouts ship alongside Everything / Focus / Morning Review / Ops, picked for task-focus, health framing, and CoS monitoring respectively. Any layout can now carry an auto-activate window (e.g. 06:00–11:00) — when the dashboard opens during that window it loads with the matching layout selected, unless you manually picked something else today. The layout editor adds a one-click "Set as morning default" toggle and a custom time-window picker. The dashboard also surfaces inline "Add <Widget>?" suggestion chips when a layout omits a widget whose data is populated (e.g. Quick Stats shows up once you have apps registered).
- [versioning-diff-view-per-stage-persist-last-n] Pipeline text stages now keep a version history. Each regenerate snapshots the prior draft (up to five back) and a new "History" button on the Idea / Prose / Comic Script / Teleplay editors opens a side-by-side word diff against the current version with one-click restore.
Changed
- [per-stage-timeout-overrides] Each prompt stage can now carry its own timeout, and provider/stage timeout inputs show a human duration.
stage.timeout(ms) overrides the provider default whenever a stage is run viarunStagedLLM; callers can also passtimeoutOverrideto beat both. The Prompts manager (stage editor) and the Writers Room's inline stage picker both gain a "Timeout override (ms)" field with the active provider's value as the placeholder, and the AI Providers timeout input now displays a≈ 15m 0s per runhint below the box.min/max/stepare wired (1000 / 1,800,000 / 1000) on every timeout input so the OS-level spinner is sensible. Server-side:PUT /api/prompts/:stagevalidates the timeout field via Zod (rejects garbage like"abc", coerces numeric strings, caps at 30 min); the runner also coerces a legacy stringifiedstage.timeoutso older installs still work; non-positive values are ignored so a stray0can't silently cancel runs. - 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-scriptwith 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'stimeoutfield 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-taskscheduler now skips dispatch when PLAN.md has nothing to do, and theplan-taskprompt waits for code review before merging. The scheduledplan-taskagent 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-ideasis intentionally never gated — its job is to brainstorm into an empty plan. Theplan-taskprompt itself also gained an explicit "wait for the configured reviewer's findings" step in Phase 6 betweengh pr createandgh pr merge; previouslygh pr merge --autowaited 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.
- [extract-shared-requiretoolkit-helper] Internal: consolidated three duplicated AI toolkit accessors into one shared module. No behavior change; cuts ~30 lines and makes future toolkit-state changes one-touch.
- [backport-pre-023-migrations-to-_lib] Internal: collapsed seven settled prompt-update migrations onto the shared
_lib.jshelper. Drops ~465 lines of duplicated migration scaffolding so future prompt-replace migrations are easier to read and review. The shared helper now also handles the rename/retire case migration 003 needed for the long-renamedpipeline-tv-script.mdtemplate — older installs that still carry that file get it removed cleanly on next startup. - [bump-stale-shipped-md5-on-settled-migrations] Internal: prompt-replace migrations 003 / 004 / 005 / 013 now track the live
data.samplehash and ship per-migration test files. Each migration'sNEW_SHIPPED_MD5was advancing-and-then-stale (e.g. 005'spipeline-arc-overview.mdhad been re-evolved by 019, 013'spipeline-comic-script.mdby 027), so a fresh install whosedata/migrations.applied.jsonwas reset would misclassify the live sample as "customized" and skip the upgrade. Bumped each NEW hash to the current live sample, appended every intermediate hash toACCEPTED_OLD_MD5per the 019 convention, and added a<num>.test.jsfor each migration so the drift catch fails fast on future template edits. The sharedrunPromptMigrationTestshelper grew acreateIfMissingopt-in so migration 005's missing-file branch can be asserted directly. - [codex5-bundle-lazy-routes] Dashboard widgets load on demand. A dashboard layout now only downloads the widgets it actually uses — the first paint of a slimmed-down layout no longer drags in every widget in the registry, and slow widgets render their own placeholder while loading instead of blocking sibling cells. Also adds an
npm run build:analyzescript for inspecting bundle composition during development. - [strip-stage-runhistory-from-list-payloads] Pipeline list views stay lean as version history grows. The sidebar's recent-issues list and the per-series issue list no longer ship each stage's full draft history on every read — the History button on an issue's detail page still shows the full set, but list responses can no longer balloon to many megabytes once a series has many issues with deep histories.
- GOALS.md is now purely strategic; CoS runtime guidance lives in
docs/GOALS_OPERATIONAL.md. The per-domain operational goals, task-generation priorities, and core principles that the autonomous agent reads have been split out of GOALS.md so each file has a single concern. No behavior change — the Goal Progress dashboard still reads the same goals; only the file path moved. - [useautorefetch-poll-result-dedup]
useAutoRefetchcallers can now opt into skipping re-renders when the poll result is logically unchanged. The hook accepts an optionalcompare(prev, next)callback; when it returns true the previous data reference is preserved, so React's set-state bail-out kicks in and the subtree doesn't re-render. The first fetch always sets data (the comparator only runs when both sides are non-null). Useful for monotonic snapshots like(a, b) => a.updatedAt === b.updatedAton widgets that poll every few seconds. No behavior change for existing callers; rollout to individual widgets tracked separately. - [useautorefetch-compare-caller-rollout] Brain, Digital Twin, and the pipeline Episode Video stage skip wasted re-renders when their polls return unchanged data. Brain (30s) and Digital Twin (30s) headers now stay stable through identical poll ticks instead of flashing through a fresh render every interval. The Episode Video stage's bespoke "skip if updatedAt/status match" check inside
setCdProjectis gone — that dedup now lives in the shared hook alongside the rest of the polling surface, so a long render session no longer churns the UI when nothing has changed. The other audited high-frequency surfaces (Processes, Agents, the render queue, Chief of Staff, Browser status, and the MeatSpace overview fan-out) were left as-is because their payloads carry continuously-changing CPU/memory/runtime fields where the comparator would almost never fire. - [useautorefetch-shared-visibility-listener] Internal:
useAutoRefetchconsumers now share onevisibilitychangelistener. Each caller used to attach its owndocument.addEventListener('visibilitychange', …), so a Dashboard with 20+ widgets ran 20+ listeners and 20+ near-simultaneous refetches on every tab show. A newuseVisibilityEventhook keeps the document-level listener count at one regardless of subscriber count, fanning out to all subscribers from a singleton emitter. No user-visible behavior change. - [useautorefetch-compare-caller-rollout-widgets] Five Dashboard widgets stop re-rendering on unchanged poll ticks. Backup, Chief of Staff, Decision Log, Goal Progress, and Proactive Alerts widgets now pass a
comparecallback touseAutoRefetchso a 30s–5min poll that returns the same aggregated state — same backuplastRun, same today's task counts, same alert set, same per-goal progress — keeps the prior data reference and skips the React subtree update. Each comparator covers every field the widget actually renders (counts, status flags, per-row tuples, per-cell heatmap distribution) so genuine changes still flow through unchanged. A new shareduseTimeTick(intervalMs)hook drives wall-clock-derived UI (relative timestamps like "5 min ago", thresholds like the backup health 25h/49h windows, the goal-stall 14-day boundary) so those labels stay accurate across deduped polls — N widgets at the same cadence share one underlyingsetInterval. Sites that own their own state viasetX(...) ; return null(Brain summary, Digital Twin status, meatspace Overview, MediaJobsQueue, Chief of Staff page, Browser status, AgentsPage, ProcessesTab, Loops, brain LinksTab) get no benefit fromcompareand are tracked under theuseautorefetch-pollonly-modeplan item instead. - [useautorefetch-pollonly-mode]
useAutoRefetchgains a{ pollOnly: true }option for side-effect-only callers. Eleven pollers (Chief of Staff, the meatspace Overview tab, Loops, Browser, Image Gen's queue tick, the brain Links tab clone watcher, the apps Update health-check, the cos AgentCard process-stats tick, the media render queue, and the CyberCity HUD's running-agent + system-health sub-fetches) drove all their state throughsetStatecalls insidefetchFnand ignored the hook's returneddata/loading— they now opt in topollOnly: true, which tells the hook to skip thedata/loadingstate updates on every tick (theuseStatehooks still exist — React requires their call sites to be stable — but nosetData/setLoadingfires) and return{ refetch }only, removing thereturn null;ceremony and a wasted re-render per tick. No user-visible change. - [agents-tab-cooldown-tick-extraction] Internal: collapsed the agents-tabs cooldown ticker into a shared hook.
OverviewTab,ToolsTab, andWorldTabeach ran their own 1-secondsetIntervalfor rate-limit countdown labels with a refetch when every cooldown cleared; the newuseCooldownTick({ cooldownEnds, onAllExpired })hook owns that pattern in one tested place. No behavior change. - [codex5-polling-consolidation] PortOS pages stop polling the server while the tab is hidden. Twenty pages and widgets (Brain, Digital Twin, Chief of Staff, CyberCity, Image Gen, Loops, Browser, the apps Processes/Update tabs, the cos Insights/Summary/Agent panels, the meatspace Overview, the media render queue, the pipeline Episode Video stage, the Creative Director detail, the brain Links tab, the System Health page, the agents process list, and the city HUD) used to fire their refresh requests on a fixed timer regardless of tab visibility; now they pause while the tab is in the background and refresh once when it comes back. Effect: less background network and battery drain, no perceptible change while a tab is actually in use.
Fixed
- AI provider failures fall back to a configured backup model instead of queuing "Investigate AI provider failure" tasks. When a CLI or API run failed (LM Studio unreachable, Claude Code CLI exit 1, network blip), the auto-fixer used to queue a plan task immediately even when
fallbackProviderwas configured. The runner now retries once with the fallback when a primary fails — if the fallback succeeds the deferred investigation task is cancelled and the call returns transparently (usedFallback: truefor callers that care). The failed primary is also marked unavailable for a category-appropriate cooldown (5 min for rate-limit, 2 min for network errors, etc.) so subsequent calls within that window skip it proactively instead of repeating the same fail-and-retry round-trip. Investigation tasks still fire when no fallback exists or when the fallback also fails.providerStatus.markUnavailable()is now the generic primitive; the existingmarkUsageLimit/markRateLimitedare thin wrappers on it. - [universebuilder-collection-hook-flaky-batch-enrich] Universe Builder batch-enrich test no longer flakes under full-suite load — internal test stability fix; production behavior unchanged.
- [feeds-ssrf-ipv6-bracket-hostname-gap] RSS feed subscriptions now reliably reject IPv6 loopback, link-local, and unique-local addresses — previously the loopback
http://[::1]/feedcase was blocked only incidentally by DNS errors; subscribing to feeds at literal private IPv6 addresses is now refused outright, including IPv4-mapped variants like[::ffff:192.168.1.1]. - [feeds-ssrf-aaaa-record-blindness] RSS feed subscriptions now check the IPv6 address family too — a hostname that pointed to a public IPv4 address but a private IPv6 one used to slip past the SSRF guard because only the IPv4 records were checked; now both families are resolved together, any private address in either family rejects the feed, and IPv6-only hostnames (which used to fail outright) are accepted when they resolve to a public address.
- [legacy-series-canon-orphan-universe-leak-on-throw] Retrying a failed peer-share import no longer leaves empty "(auto-migrated)" universes behind — when a transient disk error interrupted importing a peer's series, each retry used to mint a fresh empty universe; the importer now reuses the same one across retries so the import either lands cleanly or is harmless to retry.
- [ansistrip-osc-alternative-unreachable] TUI output no longer leaks window-title and hyperlink escape bodies — terminal OSC sequences (the ones CLIs use to set window titles or emit clickable links) are now stripped in full instead of leaving fragments like
0;title␇visible in agent/TUI transcripts, prompt-runner logs, and arc-planner output. - Migration 003 no longer crashes
update.shwhen a stage prompt was renamed upstream.pipeline-tv-script.mdwas renamed topipeline-teleplay.mdin a later commit, leaving older installs unable to run migration 003 (ENOENT on the missing sample file). The migration now treats a sample-side rename/retirement as a soft delete: unmodified copies of the old file are removed cleanly, customized copies emit a warning so edits can be merged into the replacement manually. - [agent-spawn-widen-try-finally-guard] A failed agent spawn no longer permanently blocks the task that triggered it. Previously, when an agent failed to start due to a transient I/O or disk error mid-setup, the autonomous task scheduler could enter a state where that specific task was treated as "already spawning" forever and was silently skipped until the server restarted. Now any such failure releases the in-flight guard immediately so the next scheduler tick can retry the task.
- [queueEligibleImprovementTasks-route-through-rich-generator] Auto-queued
plan-taskandfeature-ideasagents pick distinct PLAN.md slugs again — no more duplicate PRs against the same item. The scheduler's queue path (sys-*task ids) was writing a one-line stub description and skipping the rich generator entirely, so the agent it dispatched had noanalysisType/planIdmetadata and no Phase 1-7 instructions — the in-flight scan (git branch -a+gh pr listmatching documentedclaim/<slug>/cos/<task>/<slug>/<agent>refs) never ran. Twoplan-taskagents 2h apart could both pick the same slug; the second branched asworktree-<slug>and opened an overlapping PR for already-claimed work. The queue path now routes throughgenerateManagedAppImprovementTaskForTypesoapplyPlanIdMetadatapre-picks the planId (and silently skips when every slug is blocked or already in flight) and the agent receives the full prompt template with{planConstraint}substituted. Regression-pinned inservices/cos.test.js. - Upgrading users with legacy
autoClean: trueno longer silently inherit denoise. Before the cleanC2PA / denoise split, image-gen settings carried a singleautoCleanflag, and the resolver mapped a pre-splitautoClean: trueinto BOTH new flags — meaning anyone who'd opted into auto-cleaning before the split was still getting the lossy median+sharpen pass on every render, even though the Settings UI defaults denoise off for everyone else.resolveCleanersFromConfig(server + client mirror) now defaults denoise tofalseunconditionally; legacyautoClean: truecontinues to implycleanC2PA: true(which defaults on regardless) but no longer turns on denoise. Users who want denoise back can toggle it per-provider in Settings → Image Gen.
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.5.0...v2.6.0