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
Release v2.14.0
Released: 2026-06-02
Added
[story-builder-embed-arccanvas] The Story Builder now lets you edit the plot arc and season roadmap right in the builder, and shows the reader-map beats as a visual timeline. Once a plot arc exists, the plot-arc step embeds the full Arc Canvas — edit the logline, summary, protagonist arc, themes, story shape, and the whole season/volume breakdown in place instead of a read-only summary with a link out to the Pipeline (the link is still there as a shortcut to the full page). The reader-map step gains a beat timeline: a quick visual of where the emotional beats land across the arc and how intense each one is, color-coded by type, above the existing list.
[manuscript-review-sync] Manuscript "Finish the draft" review comments now sync across your machines. The editorial comment set on a series — each note's text, severity, and whether you've accepted or dismissed it — now travels with the series when you share it to a bucket or sync it between federated machines, merging comment-by-comment so two machines can work the same review without clobbering each other. Editing the review on one machine now also nudges the sync on its own (previously only changes to the series record itself did), so a comment you dismiss on your laptop shows up dismissed on your desktop. (Accepted fixes already synced, since they write into the manuscript itself.)
[story-builder-arc-refine-feedback] You can now refine a Story Builder plot arc with a note instead of regenerating it from scratch. Once an arc exists, the plot-arc step shows an AI-feedback box (like the aesthetic, reader-map, and character steps): type what you want changed and it rewrites the logline, summary, protagonist arc, and themes accordingly — keeping your chosen story shape, reader map, and season breakdown intact — and reports what it changed.
[pipeline-audio-phase-4c-2-4c-3-4d-2-local-oss] The pipeline audio stage can now generate background music locally, and voice-over lines are mixed into the final episode. Background Music gains a "Generate (MusicGen)" option that renders a text-prompted track on-device via MusicGen on Apple Silicon — pick a model tier (Small / Medium / Large) and a clip length, and the result lands in your music library attached to the issue, no upload or API key needed (one-time setup:
INSTALL_MUSICGEN=1 bash scripts/setup-image-video.sh; until then the panel shows an install hint). Each voice-over line also gets a "Start (s)" field that places it on the episode timeline, and when the final cut is stitched those rendered lines are now mixed in at their offsets — with any background music automatically ducked beneath the dialogue so speech stays clear. (Commercial music engines like Suno are intentionally not wired up yet.)[vo-mux-preserve-clip-audio-under-ducked-vo] Episode clips that carry their own audio now keep that soundtrack under voice-over. When a stitched episode's video has its own sound (e.g. from audio-capable AI video models) and you've placed voice-over lines, that clip audio is now preserved and automatically ducked beneath the dialogue — alongside any background music — instead of being silently replaced by the voice-over mix. Silent clips are unaffected.
[importer-screenplay-teleplay-seed] Importing a screenplay now keeps your script verbatim as the episode's teleplay. A screenplay import seeds each issue's teleplay stage with your original text (ready to render) instead of routing it through prose and regenerating it — matching how comic-script imports already preserve the verbatim comic script. The Review panel names the teleplay stage so it's clear where the text lands.
[conflict-journal-media-collections] Media collection name/description/cover edits are now protected when two machines change the same collection. If a peer's edit to a collection's name, description, or cover image would overwrite a change you made independently, your version is archived to Sharing → Conflicts so you can review and restore it — the same safety net universes and series already had. Images filed into the collection were never at risk (both sides' images are always kept); only the collection's text/cover fields could silently lose an edit, and now they don't.
[story-builder-issue-llm-seeding] Story Builder can now generate issues straight from the arc. The issues step gains a "Generate issues from arc" button that breaks every season of your plot arc into episodes and creates one issue per episode — seeded with each episode's logline and synopsis — without leaving the builder for the Pipeline. Locked or empty seasons are skipped and reported rather than blocking the rest, and you can still plan issues in the Pipeline as before.
[story-builder-sse-progress] Story Builder generate/refine buttons now show live progress instead of a blank spinner. Expanding an idea, aesthetic, plot arc, or reader map — and refining any step — now streams its current phase ("Planning the plot arc…", "Saving seasons…") onto the button as it runs, and no longer ties up the page while a long generation finishes. A slow arc overview tells you where it's at rather than leaving you watching a spinner.
[brain-bucket-chip-reorder] Reorder bookmarks within a bucket by dragging. On the Brain Links bucket board you can now drag a chip to a new spot inside its own bucket — a marker shows where it will land as you drag — instead of only being able to move chips between buckets or reorder the buckets themselves.
[local-llm-large-narrative-models] Local LLM install picker now suggests a large narrative / long-context tier. Added Mistral Large 2 123B, Command R+ 104B, Llama 3.3 70B, Qwen3 30B-A3B, and Google Gemma 4 (31B dense + 26B-A4B MoE, both 256K context, vision) to the curated catalog — workstation-class (64–128GB unified memory) models suited to whole-manuscript editorial review where prose quality and a long context window matter most. Verified Ollama pull ids and sizes; the Gemma 4 builds also ship MLX variants (
gemma4:31b-mlx/gemma4:26b-mlx) for faster inference on Apple Silicon. Qwen3 235B is intentionally omitted (142GB won't fit 128GB).[context-aware-editorial-budgeting] Manuscript editorial passes now scale to the target model's context window — whole-manuscript when it fits, chunked when it doesn't. A new
contextBudgethelper plus acontextWindowprovider field (inferred large for frontier CLI/cloud providers, fromnumCtxfor local Ollama) drive all three passes: the completeness pass ("Finish the draft"), manuscript-fix ("Generate fix"), and per-issue editorial analysis. Big-context models (Claude 4.8 ~1M, GPT 5.5) now receive the entire manuscript in one call instead of being capped at the old hardcoded 200K/48K-char limits; models too small to hold the book chunk by issue — completeness feeds each chunk a digest of prior-chunk findings for cross-chapter continuity and merges with first-wins dedupe, manuscript-fix concatenates per-chunk edits — instead of silently truncating. The completeness/fix API responses now reportchunked+chunkCount, and the Manuscript Editor shows a "Reviewed in N chunks" badge (with an explanatory tooltip) when a review had to chunk. Design record:docs/plans/2026-05-31-context-aware-manuscript-editorial.md.[video-resume-restore-keyframes] Video Gen first/last-frame mode now has a multi-keyframe picker, and a mid-render reload restores it. With an LTX-2 model selected you can switch on multi-keyframe interpolation and anchor 2–8 gallery images at specific frame positions for the model to interpolate between, instead of only a single first and last frame. Reloading the page while such a render is in flight now repopulates the keyframe picker — each anchor's image and frame position — along with the rest of the form, rather than losing it.
[scene-level-wardrobe-picking-per-scene] Storyboard scenes can now pin each character to a specific outfit. Each scene in the Storyboards stage gains a collapsible "Wardrobe" picker listing the characters the scene mentions; choose one of a character's saved wardrobes and that outfit's description is added to the character's look for that scene's image and video renders, on top of (never replacing) their canonical physical description. Picks are per-scene and explicit — nothing is guessed — and selecting "default outfit" clears the pin.
[ai-assignment-inventory] Settings now has an AI Assignments admin page. It inventories provider/model pins across the provider registry, embeddings, Voice, Messages, Brain, Universes, Story Builder, Pipeline series, CoS schedules, Loops, Feature Agents, and social agents, with per-row edits plus a bulk provider migration control.
[manuscript-multi-edit-fixes] Manuscript "Finish the draft" fixes can now propose and apply multiple anchored edits at once. The manuscript-fix LLM contract moved from a single
{ find, replace }to{ edits: [{ issueNumber, find, replace, note }] }, so a broad or unanchored editorial comment can generate several concrete insertions — across multiple issue sections when needed — instead of falling back to manual editing. The editor's comment card renders each suggestion as an inline diff with a per-edit checkbox and editable replacement, and accept applies the selected edits atomically through a new serialized batch write (updateStagesWithLatest) that snapshots prior text into runHistory and re-checks each anchor inside the per-series write lock. The prompt template embeds manuscript/premise/anchor content in distinct (non-backtick) fences with an explicit "treat as quoted source" guard; migration060-manuscript-multi-edit-fix-prompt.jsauto-upgrades the prior single-edit prompt on existing installs. Backward compatible: legacy single-edit{ find, replace }accepts still resolve to one target.[llm-playground-cancel-in-flight] You can now cancel a running Local LLM Playground test. While a chat or comparison is running, the Run button becomes a Cancel button — stop a slow model immediately instead of waiting out the timeout, and the model on the other end stops generating too.
[provider-fallback-model] Provider fallbacks can now pin a model, not just a provider. Each AI provider's editor gains a "Fallback Model" selector beside "Fallback Provider" (populated from the chosen fallback provider's model list; blank = use that provider's own default), persisted as a new
fallbackModelfield.providerStatus.getFallbackProvider()returns the configured model alongside the provider, and every fallback path runs it:createRun's pre-flight swap,runPromptThroughProvider's innercreateRunand runtime-retry paths (staged LLM + all prompt callers), and the CoS-agent lifecycle (provider- or task-level pin overrides the per-task model selection).
Changed
[unify-llm-picker-components] The Series AI-provider picker now renders through the same shared provider/model selector used by the other pickers, consolidating the last hand-rolled copy of that markup (no user-facing change).
Comic-script prompt-migration hashes resynced. Internal fix so the comic-script stage-prompt auto-upgrade recognizes the current shipped template across all install ages (no user-facing change).
[story-builder-hash-shape-vs-derivation-tests] Hardened the Story Builder step-locking test so it verifies the stamped staleness hash is actually derived from the step's upstream inputs, not merely a hex string — guarding against silent drift in the staleness detection (no user-facing change).
[wan22-hunyuan-setup-pin-shas] Installing the Wan 2.2 and HunyuanVideo local video runtimes now pins to a tested version. The optional installers for both community MLX ports previously cloned whatever was on the project's latest commit that day, so two machines set up days apart could end up with different (and possibly broken) code. They now check out a known-good commit (each repo's latest as of 2026-06-02) for reproducible installs; set
WAN22_PIN=mainorHUNYUAN_PIN=mainto track upstream instead.[consolidate-client-url-normalize] Consolidated the three near-identical "add
https://to a bare URL" routines behind Brain Links, the quick-capture bar, and Feeds into one shared, unit-tested helper, preserving each spot's existing behavior (no user-facing change).[nav-tabbed-page-coverage-guard] A few page tabs that were only reachable by clicking are now searchable from ⌘K and voice. The Goals "Tree" view, the Insights "Genome-Health", "Taste & Identity" and "Cross-Domain Patterns" views, and the Settings "Catalog Types" tab are now jump-to destinations in the command palette and voice navigation, alongside every other tab. A new test keeps every tab of a tabbed page registered for search, so future tabs can't silently go unreachable.
[nav-tabbed-page-coverage-guard-post] Extended that tab-registration test to cover the POST page's tabs too, so they also can't silently drop out of command-palette/voice search (no user-facing change).
[settings-header-switch-tab-parity-guard] Added a test pinning every Settings tab in the tab bar to a matching renderer in the page, so a future Settings tab can't end up showing the wrong panel (no user-facing change).
[comic-script-generation-panel-hardening] Comic scripts now reliably break each page into discrete panels. The script generator is now explicitly told never to put action, dialogue, or scene content in a page's description — that's reserved for short layout notes — and that every page must decompose into numbered panel blocks (how many follows the existing pacing guidance — typically 4–6, a splash, or the occasional dense grid). This prevents the occasional malformed page that dumped a whole scene into the page header with no panel breakdown (which the comic renderer couldn't draw). Existing installs auto-upgrade unless they've customized the comic-script prompt.
[conflict-source-attribution] Sync conflicts now record which machine they came from. When two of your machines edit the same universe, series, or issue and one push loses, the archived entry in Sharing → Conflicts now names the peer it collided with instead of showing an empty source — so you can tell which machine's edit you're reviewing. Previously every conflict was logged as an anonymous "sync".
[conflict-restore-additive] "Restore mine" in Sharing → Conflicts is now a faithful restore of your whole version. Restoring a universe's archived version now replaces its categories exactly as your version had them — a category that slipped in from the other machine's edit (after the timestamp-overwrite) is removed, instead of lingering. Merging back a single field still overlays it without disturbing the rest of the record.
[series-merge-season-rehoming] Merging two series now keeps each issue in its season. When you merge a duplicate series into another, issues that belonged to a season are placed into the surviving series' matching season (paired by season number) instead of all landing un-grouped for you to re-file by hand. Issues that had no season stay un-grouped, as before.
[merge-cascade-no-rollback] A merge that fails partway no longer leaves a broken half-merge — just re-run it. If re-pointing a duplicate universe's child series (or moving a duplicate series' issues) fails mid-merge, the duplicate is now kept intact instead of being deleted over records that didn't move, and the merge reports exactly which children are stuck. Because every step is idempotent, simply running the merge again finishes the job cleanly.
[conflict-journal-deep-diff] The Sharing → Conflicts tab now shows which sub-entry changed, not a wall of JSON. For structured fields — universe categories and canon (characters/places/objects), series arc and seasons, issue stages — a conflict now breaks down into one focused before/after diff per changed entry, labelled by its name or key (e.g. just the character "Alice", or the "tone" category), instead of diffing the entire field as a single JSON blob. Restoring and merging still operate on the whole field.
[arccanvas-sync-shared-hook] Internal refactor: the Arc Canvas host-wiring duplicated between the Pipeline series page and the Story Builder arc step now sits behind one shared hook. No user-visible change.
[extract-use-universe-load-hook] Internal refactor: the duplicated "load the linked universe" logic in pipeline stages now sits behind one reusable hook. No user-visible change.
[series-llm-override-resolution-helper] Internal refactor: the series provider/model fallback that three pipeline LLM actions each inlined now lives in one shared helper. No user-visible change.
[story-builder-extract-image-render-hook] Internal refactor: the single-image render lifecycle the Story Builder characters step and universe base-style probe each re-implemented now sits behind shared hooks, and the Story Builder's provider/model picker reuses the shared selector. No user-visible change.
[bucket-record-path-helper] Internal refactor: the share-bucket exporter and importer now build record-file paths through shared helpers instead of repeating the same hand-joined path in ~10 places. No user-visible change.
[season-continuity-extract-honors-series-llm] Committing a season's episodes now extracts continuity canon with the series' chosen model. When you accept a season breakdown, the automatic bible/continuity extraction uses the LLM pinned to that series (and honors a per-run model override) instead of falling back to your global active provider — matching how on-demand canon and scene extraction already behave.
[story-builder-refine-fallback-changes] Refining a reader map no longer reports edits it didn't make. When a reader-map refinement comes back empty and your existing map is kept unchanged, the builder now reports no changes instead of listing the edits the discarded attempt had described.
[conflict-journal-issues] Sync conflicts on individual issues are now captured and restorable, like universes and series. When two of your machines independently edit the same issue while offline and then sync, the older edit is no longer silently overwritten — it's archived in Sharing → Conflicts where you can review what differs and restore your version (covering the issue's title, status, arc placement, length, and stage content such as prose and comic pages). Previously only universe and series conflicts were journaled; child issues rode last-write-wins silently.
[manuscript-editorial-jump-pinned-overlay] Jumping to an editorial comment in the Manuscript editor now keeps that comment on screen. Clicking "Jump" (or the issue link) on an editorial feedback item still scrolls the manuscript to its anchor, but the comment is now also pinned as a floating, dismissable overlay over the manuscript — so its note, suggestion, and Generate-fix/Accept/Dismiss actions travel with the scroll instead of being lost off-screen (previously the sidebar card stayed put on desktop and was pushed far below the fold on mobile's stacked layout). The overlay reuses the existing comment card, auto-closes when the comment is accepted or dismissed, and dismisses on Escape or its close button.
[rich-text-editor-for-prose-stage-replace-plain] The pipeline prose stage now edits in the same reading-comfortable editor as the Writers Room. Drafting a prose stage uses a serif, roomy-line-spacing, spellchecked editor with a heading-hint placeholder instead of the old code-style monospace box — so prose reads like prose while you write it. The script-shaped stages (comic script, teleplay) keep their monospace editor.
[inline-confirm-row-primitive] Consolidated the duplicated Brain delete-confirmation rows onto one shared component, so inline confirm prompts stay visually and behaviorally consistent (no user-facing change).
[inline-confirm-row-border-b-variant] Delete confirmations across Notes, the wiki browser, the daily log, and link buckets now share one consistent look. The four full-width "are you sure?" bars moved onto the same shared confirm component as the rest of the app, so their buttons and text now match every other inline delete prompt.
[confirm-ux-button-pair-popover-audit] Inline "confirm/cancel" delete buttons across Apps, Feature Agents, local-LLM models, time-capsule snapshots, character reference sheets, and catalog types now look and behave the same. Six places that each had their own slightly different little confirm buttons now use one shared control, so confirming a delete feels identical wherever you do it.
[coalesce-fallback-provider-failure-storm] AI provider failovers no longer thrash the disk when many requests hit a down provider at once. When a provider goes down with several requests in flight, PortOS now benches it and picks the fallback a single time for the whole burst instead of repeating that work per request, so failover stays fast and quiet under load.
[capabilities-cheap-memory-count] Capabilities overview counts Brain memories more cheaply. The frequently refreshed status overview now reads the active-memory total directly, keeping it lighter as memory history grows.
[conflict-journal-push-flush-coalesce] When a peer reconnects and many records sync in one burst, the conflict-tracking base-hash file is now rewritten once for the whole burst instead of once per record — less disk churn during convergence, no behavior change.
[conflict-journal-subscribe-fanout-flush-coalesce] Sharing a record to several machines at once (or enabling sync for a whole category) likewise rewrites that same conflict-tracking file once for the batch instead of once per record/peer — no behavior change.
[conflict-journal-base-hash-prune] The conflict-tracking base-hash file no longer accumulates dead entries: deleting a universe, series, issue, or media collection now drops its entry, and the sync housekeeping pass sweeps any strays whose record is gone — so the file stays small on long-running machines. No behavior change.
[mediacollections-parallel-merge-prune] Applying a large incoming media-collection sync snapshot and the collection tombstone cleanup now process records concurrently (bounded) instead of one-at-a-time, so a big sync or cleanup settles faster — no behavior change.
[media-collections-per-record-store] Media collections now persist per-record instead of in one monolithic file.
data/media-collections.jsonis split intodata/media-collections/<id>/index.json(plus a type-levelindex.jsonstamping the storageschemaVersion) via the sharedcreateCollectionStorelayout — the same per-record shape universes / series / issues already use. Every collection write (addItem,bulkUpdateCollectionItems, merges, tombstone GC) now serializes on its own record queue, so high-frequency render-filing no longer rewrites the whole ~200 KB document per image or blocks unrelated collections' writes. Migration059-split-media-collections.jsperforms the one-time split (idempotent, backs the legacy file up as.bak-059), the boot-time verifier checks the on-disk version, and the dataSync snapshot watcher tracks the directory so per-record edits still invalidate the checksum cache. The wire sync payload is unchanged, so collections still sync across peers of mixed versions.[chrome-canary-followups] Custom Chrome setup writes browser config through the shared atomic writer. The Canary setup script now uses
server/lib/fileUtils.js#atomicWritefor browser-config updates, so it gets the same temp-file/rename behavior and Windows fallback as the rest of PortOS config persistence.[setup-browser-canary-headless] The PortOS-managed browser now runs visible (headed) by default. New installs — and opting into Chrome Canary at setup — launch a window you can see, since the whole point of a dedicated managed browser is to watch its automation. On update, existing installs still carrying the old headless default are flipped to headed; if you'd previously turned headless off (or any non-default value) it's left untouched. If you actually want headless, set
"headless": truein the browser config again.[media-job-throttled-progress-persist] Live media-job progress is now debounce-persisted to disk so a mid-render restart recovers the last snapshot.
runJobschedules a ~250ms-debouncedpersist()after eachprogress/statusMsgmutation — coalescing the dozens-per-second diffusion progress events instead of writing per event — and drains it interminate()before the terminal transition, mirroring theappendAgentOutputLinesbatching pattern. The terminal sink (terminate) is now async and made idempotent via aterminalStartedguard, which also closes the watchdogmod.cancelrace the async drain would otherwise widen.[media-job-store-progress-on-job-record] Render queue rows now hydrate live progress from the job record. The media job queue now stores
progressandstatusMsgon the running job whenever image/video runners emit progress or status events, exposes those fields throughGET /api/media-jobs/:idand list responses, and preserves them in persisted queue snapshots. The Image / Video render queue uses that snapshot to show a compact progress bar during polling, so non-SSE consumers no longer reset in-flight jobs to 0% until the next live event arrives.[shared-bounded-concurrency-mapper] Bounded-concurrency worker pool extracted to a shared helper. The cursor-based worker-pool idiom that was hand-rolled in
embeddings.js,catalogExtraction.js, androutes/imageVideoModels.jsis now a single testedserver/lib/mapWithConcurrency.js(order-preserving, concurrency-bounded), with all three call sites migrated and behavior unchanged.Bumped the bundled slashdo submodule (
lib/slashdo) to latestmain(11cb89c).[media-job-progress-persist-debounce-count-test] Hardened the test suite so the media-job progress-save coalescing can't silently regress to a per-event disk write.
[unify-media-job-sse-hook-imagegen-videogen] Image Gen and Video Gen now share one live-render progress subscriber, consolidating duplicated streaming code with no change to behavior.
[runs-route-fallback-model-tests] Added route-level tests pinning that an AI provider failover runs the fallback's own model (or its configured pin) rather than leaking the benched primary's model, so this behavior can't silently regress.
[importer-progress-hook] The Importer's live analyze-progress checklist now runs on a shared, tested progress hook instead of page-local socket wiring — no change to behavior.
[mediacollections-deterministic-loadone-fastpath] Universe/series media-collection lookups now resolve their linked bucket in one direct read instead of scanning every collection, trimming the work done on each cross-machine sync push (no user-facing change).
[data-versioning-centralize-cosagents-settings] Saving settings is now crash-safe and serialized.
settings.jsonis written through the shared atomic temp-file/rename writer and overlapping saves run one at a time, so a mid-write crash can no longer truncate the file and two near-simultaneous settings changes can no longer clobber each other (no user-facing change).[setup-data-import-drift-tables-from-migrations] The setup script's "a prompt migration is pending" warning now derives its hash tables directly from the migration files instead of a hand-maintained copy, so the warning can't silently fall out of sync when a new prompt migration ships (no user-facing change).
[migration-043-line-ending-precedent] Documented in the story-builder prompt seed migration that a future migration amending those prompts must switch to the hash-driven update pattern (no user-facing change).
[makesplitmigration-shared-factory] Collapsed the four monolithic→per-record data-split migrations onto one shared factory, preserving each one's exact behavior — less duplicated migration scaffolding to keep in sync (no user-facing change).
[cos-on-demand-mark-app-review-started-dedupe] When several on-demand improvement requests for the same app are processed in one CoS dispatch cycle, the app's activity record is now marked review-started once instead of once per request (no user-facing change).
[shared-tolerant-fetch-json-helper] Hardened the HTTP clients that talk to local model backends, the managed browser, and the background agent runner: a non-JSON/HTML error response now surfaces the real error instead of crashing with "Unexpected token <", via one shared tolerant JSON-body reader (no user-facing change).
[tolerant-fetch-json-additional-clients] Extended that same tolerant JSON-body reader to the remaining fetch clients (calendar/message sync, the memory and insights LLM calls, the local-LLM playground, Civitai, Telegram, and the code-review runner), so a non-JSON/HTML error body surfaces the real error instead of crashing — and the code-review runner now reports the server's actual error text instead of a misleading "no content" (no user-facing change).
[insights-callprovider-nonjson-test] Added regression-test coverage pinning the insights LLM client's non-JSON-error guard so a malformed provider response can't silently overwrite the cached cross-domain narrative or theme analysis, and consolidated the hand-rolled fetch-
Responsetest mocks across the server suites onto one shared helper (no user-facing change).[cos-agent-output-write-amplification] Streamed CoS agent output no longer rewrites the entire agent-state file once per line. A shared ~250ms output batcher now coalesces the runner's per-line output events and direct-CLI stdout/stderr into single state writes (draining before an agent is marked complete), cutting agent-state write churn on chatty agents from dozens of writes/sec to a few — with no change to the live output tail (no user-facing change).
[subagent-spawner-top-level-side-effects] The CoS agent spawner now initializes explicitly at server startup instead of as a side effect of being imported, so importing it (in tests or elsewhere) no longer re-arms its event listeners and timers (no user-facing change).
[settings-getsave-callers-stale-base] Saving or clearing the HF / Civitai API keys now runs its read-modify-write inside the settings write queue, so a save landing at the same moment can't clobber it with a stale snapshot (no user-facing change).
[settings-shallow-getsave-callers-tidy] Saving Telegram config (method, bot token/chat id, forwarded types) and system-health alert thresholds now runs inside the settings write queue too, closing the same stale-snapshot clobber window (no user-facing change).
[json-state-serialization-one-mechanism] The Chief-of-Staff state file now serializes its writes with the same shared queue the rest of the app's JSON stores use, instead of a separate bespoke lock — one fewer concurrency mechanism to maintain (no user-facing change).
[worktree-remove-helper] The four agent-worktree cleanup paths now share one robust "remove, then force-clean if git refuses" helper instead of four hand-copied versions — same cleanup behavior, less duplicated code to drift (no user-facing change).
[extract-single-flight-map-helper] The provider-fallback path now uses a shared "coalesce concurrent calls onto one in-flight result" helper instead of a hand-rolled version, standardizing the cleanup idiom for future reuse (no user-facing change).
[plan-task-prefer-merge] The scheduled "ship the next PLAN.md item" agent now prefers a real merge commit over a squash when closing its PR. Its merge step tries auto-merge first, then a plain
--merge, then squash/rebase as fallbacks — matching the merge style the manual review flow already uses, so scheduled and manual work land in your history the same way. Existing installs auto-upgrade the prompt unless you've customized it.[wardrobe-appearance-id-route-validation] Rendering a storyboard scene with a stale outfit pick now fails clearly instead of silently ignoring it. If a scene's wardrobe selection points at a character or outfit that no longer exists (e.g. it was deleted after the pick was made), the render returns a clear error instead of quietly rendering the character without that outfit.
[create-issue-preload-series-for-batch] Seeding a whole season's episodes into issues now reads the series record once for the batch instead of once per episode (no user-facing change).
[prune-orphan-subscriptions-for-deleted-records] Deleting a synced record no longer leaves a dead sharing subscription behind. Once a deleted universe, series, or collection is finally cleaned up, its leftover per-peer sharing subscriptions are swept away with it — so the sync logs stop reporting phantom "pending pushes" for records that no longer exist. Internal housekeeping with no change to what you share.
[shared-optional-provider-picker] The Importer and Universe Builder now render the same shared provider/model picker as the rest of the app instead of each hand-rolling their own inline copy. Same controls and behavior; the two selectors pick up the app's standard dropdown styling, so they look consistent with every other provider picker.
[health-test-updatesettingswith-mock] Restored the system-health route test suite after a settings-helper migration left its mock incomplete (test-only fix, no user-facing change).
[nav-route-manifest-coverage-guard] Added a test that fails the build if a newly added page route isn't registered in the navigation manifest, so a page can no longer ship unreachable from the command palette and voice navigation (no user-facing change).
[memory-mgmt-new-endpoint-tests] Added test coverage for the five memory-management endpoints (model load/unload, whisper start/stop, TTS status/unload) so future regressions surface as test failures (test-only, no user-facing change).
[llm-playground-shared-target-key] The Local LLM compare-model key used by the Settings model picker and the Playground compare view now comes from one shared, tested helper instead of being hand-written in several places, so the two can't disagree on which models you selected (no user-facing change).
[flux2-runner-sidecar-tests] The image-generation metadata builder (the record saved alongside each rendered image) was factored into a separately tested helper and given coverage for its reference-image fields, so future changes to how render settings are recorded surface as test failures (test-only, no user-facing change).
Fixed
- [hidream-requires-hf-token-fail-fast] HiDream image models now fail fast with a clear message when your Hugging Face token is missing. HiDream needs a gated Llama text encoder, and without an accepted license / valid token the renderer used to grind through a multi-gigabyte download before dying with an opaque error. It now checks access up front and tells you exactly which license to accept and to set your token before any download starts.
- [story-builder-refine-returns-provider] Refining a Story Builder reader map or plot arc now reports which AI model ran. Those two refine actions used to omit the provider/model from their result, so the completion notice couldn't say which model produced the change the way the other Story Builder refine steps do; both now include it.
- [qwen-image-edit-init-image-required] Qwen-Image-Edit now asks for a source image instead of crashing on a text-only prompt. Qwen-Image-Edit only edits an existing picture, so submitting just a text prompt used to fail deep in the renderer. The Image Gen page now marks its source image as required, disables Generate until you upload one, and the server refuses a text-only edit request with a clear message.
- [story-builder-import-partial-commit] A failed import in Story Builder can now be retried without duplicating issues. When importing a finished work, if the universe, arc, and characters saved but creating the issues failed partway, the rolled-back issues used to be re-sent in full on the next click — risking duplicate issues and overwriting the arc you'd just imported. The "Import & start building" button now recognizes that case, flips to "Retry issues & start building", and re-creates only the issues — leaving the already-saved arc, seasons, and canon untouched — matching how the standalone Importer already recovers.
- [story-builder-import-commit-ok-session-fail] Retrying an import that finished saving but failed to open the builder no longer re-creates everything. If an import committed successfully (universe, arc, and issues all saved) but the final step of opening the Story Builder hit an error, clicking the button again now only retries opening the builder — it no longer re-runs the whole import, so your issues aren't duplicated and the arc isn't overwritten. The button reads "Retry starting the builder" in that state to make the narrower retry clear.
- [story-builder-goto-step-gate-divergence] Story Builder no longer jumps to a step it didn't actually switch to. If switching steps (clicking the step rail, or the "Lock & continue" auto-advance) failed on the server, the builder used to land on the target step anyway while the saved position stayed behind — so reopening the story dropped you back where you started. Both paths now stay put on a failed switch, show a brief notice, and resync the step rail to your real position.
- [story-builder-create-rollback] Starting a new Story Builder session that fails partway no longer leaves a stray, empty universe behind. When seeding a fresh session, the universe shell is created just before the series; if the series creation failed, that orphan universe used to linger in your Universes list (and on synced machines) with nothing pointing at it. The half-created universe is now cleaned up automatically when the session can't finish — a universe you picked yourself is never touched.
- [comic-allcaps-continuation-vs-cue] Importing a comic script no longer splits a balloon when a character shouts a one-word line in all caps. A short all-caps line like "STOP" or "NO" at the end of someone's dialogue used to be mistaken for a new speaker, breaking the balloon in two; it now stays with the original speaker when nothing follows it but the next panel (or the end of the script).
- [importer-retry-arcsummary-empty] Clearing an imported story's arc summary before retrying the issue split now sticks. If you blanked the arc summary in the import Review panel and hit "retry issue split", the importer used to quietly fall back to the logline as the summary; it now respects the cleared field and lets the split proceed without it.
- [importer-progress-reconnect] The importer's analyze checklist no longer gets stuck on "Starting…" after a brief network blip. If your connection drops and reconnects while an import is being analyzed (a multi-minute, multi-pass step), the live stage checklist now catches back up to where the analysis actually is — showing which passes finished and which is running — instead of sitting on "Starting…" until the whole analysis returns. Opening the page mid-analysis in another tab shows the live progress too.
- [voice-taskcomplete-announce-once-guard] The voice assistant no longer repeats "your coding task is done" if a finished task is edited again. Each voice-dispatched coding task now announces its completion (or failure) once; a later edit to an already-finished task won't re-trigger the spoken line, while a task that genuinely changes outcome — say a blocked task that later succeeds — still speaks its new result.
- [cos-runner-client-non-json-response-handling] CoS agent and run failures now surface the runner's actual error instead of a cryptic "Unexpected token <" crash. When the background agent runner returns a non-JSON error response (for example while it is restarting mid-request), PortOS reports the runner's real message rather than choking on the unparseable body.
- [cos-task-id-uniqueness-validation] Reordering a CoS task list with duplicate task IDs no longer silently drops tasks. If a hand-edited or corrupted task file holds two tasks sharing the same ID, reordering it previously kept only one and discarded the rest; every task is now preserved, with any collision given a distinct ID.
- [banner-icon-aria-hidden] Screen readers no longer announce the decorative icon on alert banners. The warning/error/info banners' leading icon is now hidden from assistive tech by default, so only the message text is read aloud instead of an unhelpful icon name preceding it.
- [media-job-sse-transient-reconnect-resilience] A brief network blip mid-render no longer fails the whole image or video generation. The live progress stream now distinguishes a transient connection hiccup — which the browser silently reconnects, picking up where the render left off — from a real disconnect, so a momentary Wi-Fi/Tailscale drop while a render is in flight no longer aborts it with a "Lost connection to server" error.
- [ollama-context-truncation] Local-Ollama runs no longer silently truncate long prompts to ~4K tokens. PortOS sends stage prompts to Ollama's OpenAI-compatible
/v1/chat/completions, which defaults to a ~4K context window and silently drops anything past it — so whole-manuscript editorial passes (the completeness pass concatenates up to 200K chars ≈ 50K tokens) were really only reviewing the tail of the manuscript with no error raised. The toolkit runner now sends a per-requestnum_ctxwhen the provider config carries one (a new optionalnumCtxprovider field, honored by Ollama and ignored by other OpenAI-style endpoints), andensureBackendProviderdefaults the Ollama provider to a generous window at boot (OLLAMA_NUM_CTXenv override, default 32768). LM Studio is unaffected (it sets context at model load). Cloud providers were never affected. This is the urgent half of the editorial context work; the full context-window-aware full-manuscript↔chunked strategy is planned indocs/plans/2026-05-31-context-aware-manuscript-editorial.md([context-aware-editorial-budgeting]). - [provider-fallback-model-leak] Falling back to another provider no longer leaks the primary's model id onto it. When a stage's primary provider was unavailable (e.g. Codex benched after an OpenAI content-safety refusal), the model resolved against the primary —
codex-configured-default— was carried verbatim onto the fallback provider, so the run loggedLM Studio/codex-configured-defaultand then 400'd because LM Studio has no such model (and Claude Code rejected it the same way).stageRunnernow re-resolves the model against the fallback provider (honoring its configuredfallbackModel, else its own default / args-baked model) instead of forwarding the primary's resolved model, and the toolkitcreateRunrun record + log line do the same. - [ltx2-fflf-skips-last-image-resize-when-both-frames-set] ltx2 FFLF now resizes both anchor frames. The two-keyframe ltx2 FFLF path passes both
--imageand--last-imageintoscripts/generate_ltx2.py, but Video Gen only resized the start image when both anchors were present. The end frame could therefore reachKeyframeInterpolationPipeline.generate_and_save()at its original dimensions.videoGen/local.jsnow treats ltx2 true-FFLF as a real last-image consumer and runs the same ffmpeg resize/crop pass used for multi-keyframes, with a regression test asserting the helper receives resized start and end paths. - [ref-watch-phosphene-teacache-extend-a2v-denoise] TeaCache now accelerates ltx2 Extend and A2V Stage 1.
scripts/generate_ltx2.pynow patches the LTX-2extendanda2vid_two_stagedenoise-loop import sites (the modules whereExtendPipeline/AudioToVideoPipelineactually callguided_denoise_loop), activating the existing Stage-1 TeaCache controller only around Extend and A2V calls and clearing the gate afterward. TeaCache stays default-on for those slow paths, with--no-teacacheto opt out and--teacache-threshto trade fidelity for speed (~1.2× at the 0.5 default, up to ~3× at 1.5). - [dup-detect-collection-count-undercount] Duplicate-universe suggestions now count collection items correctly. On the Sharing → Duplicates tab, a universe that owned more than one media collection had its collection-item total reported as just the last collection's size rather than the sum, which could understate which duplicate held the most content; the count now adds up every linked collection.
- [universe-create-named-preserves-draft] Naming a universe from the selector's "Create" option no longer discards the idea you just generated. In the Universe Builder, if you expanded a starter idea into a draft (starter prompt, categories, canon…) and then typed a name in the universe search box, clicking the "Create «name»" row in the dropdown created a blank universe carrying only the name — silently obliterating all the generated content. That row now preserves the in-progress draft (it persists the full draft, same as the header Create button) when no universe is currently open; the blank-new-record behavior is kept only for typing a new name while an existing universe is already selected, where cloning the open universe would be wrong.
- [llm-playground-preserve-partial-output] A timed-out Local LLM Playground run now keeps the text the model already produced. When a playground chat or comparison run hit its timeout (or was otherwise interrupted) mid-response, the result showed only the timeout error and discarded everything the model had streamed so far. The partial output is now shown beneath the timeout message with a "Partial" badge, can be copied, and is saved on the run record — so a slow model that didn't quite finish no longer leaves you with nothing.
- [style-probe-image-uses-draft-not-saved] The Universe Builder base-style image won't render from unsaved style edits anymore. The base-style probe is built from your current embrace/avoid influences, but its rendered image is pinned to the saved universe — so taking a probe with unsaved influence changes could attach an image the saved world never actually had (and it stuck around even after you discarded the edits). The probe's render button is now disabled, with a "save your style changes first" hint, until your influence edits are saved.
- [vitest-security-bump] Bumped the dev test runner (Vitest) past a critical advisory. Server and client now pin
vitest/@vitest/coverage-v8to4.1.8, clearing GHSA-5xrq-8626-4rwp (arbitrary file read/execute via the Vitest UI server, affecting< 4.1.0). Dev-only dependency, never run in production, but kept current. Landed on 4.1.8 rather than 4.1.0 because the 4.1.0 release had avi.resetModules()module-resolution regression that made the per-test dynamic-import isolation inloras.test.jsflaky (a host with a Civitai API key indata/settings.jsonwould intermittently fail the "no key" auth-error assertion); 4.1.8 resolves it. No user-facing change.
Removed
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.13.0...v2.14.0