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

chore: release v2.41.0

[._.]/ Adam Eivy4048e7c6eaff
diff --git a/.changelog/NEXT.md b/.changelog/v2.41.0.md
similarity index 96%
rename from .changelog/NEXT.md
rename to .changelog/v2.41.0.md
index 0ec0d7f811..bf30fccc82 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/v2.41.0.md
@@ -1,4 +1,33 @@
-# Unreleased
+# Release v2.41.0
+
+Released: 2026-08-10
+
+## Highlights
+
+- **Series Pipeline earns its foundation before it writes.** Autopilot now builds the story's cast first and secures the world bible at a foundation gate before it spends on plot, repairs what that gate finds through the editor that actually owns it, and tracks convergence per editor instead of against one global score — so deepening a character no longer looks like regression. A full world bible no longer traps a run at the gate forever, duplicate volumes get repaired instead of preserved, and a resolve round that makes the draft worse is reverted rather than kept.
+
+- **Autonomous mode can now watch and improve itself.** A run can diagnose its own pipeline and file the fix (*Improve the pipeline itself*), or hand the wheel to a continuously self-dispatching observing orchestrator. New options let a run unlock everything the series owns first, split work between a writer and an independent critic, and pick a reasoning effort — and the Options popover now names the provider and model it will actually spend on before you start it.
+
+- **Video generation gets real local backends and a finishing pass.** MiniMax H3 animates stills and runs entirely on a 128 GB Apple Silicon Mac; Wan 2.2 TI2V-5B plus validated 4-step A14B Lightning text- and image-to-video profiles arrive through a pinned MLX runtime. Draft shots can now be re-rendered properly instead of only remixed, each chunk can carry its own prompt, multi-chunk renders keep their motion and conditioning across joins, and every model page says what runs where and under whose terms.
+
+- **Media model storage is manageable again.** Reclaiming disk space happens on the model's own row — catalog entries show their on-disk size and carry their own **Delete weights** button, built-ins included. Removing a catalog entry and deleting its weights are now distinct, differently-worded actions, and every multi-gigabyte delete arms an inline confirm first.
+
+- **Chief of Staff stops failing agents that did their job.** Agents whose deliverable is a commit or a report are scored on what they actually produced, a backgrounded reviewer no longer looks idle, a commit merely rebased or merged upstream is no longer blamed on the wrong agent, and a spawn rejected by the runner is requeued instead of penalized. Pause/Resume is now a real control in the UI, tasks naming an unresolvable app park as blocked instead of retrying forever, and recent unrated runs come back to you.
+
+- **AI provider health and routing got a lot less superstitious.** A timed-out stage no longer benches its provider as "quota exceeded", quality-first stages are no longer cut off at thirty minutes, recovering a provider takes effect on the very next routed run, and a retrying run is no longer killed a second before it recovers. Fallback models stay valid as provider catalogs move, and a spent Codex quota shows its meter and reset date instead of going blank.
+
+- **The Privacy Center holds a household, and holds it locally.** Your PII vault is now permanently machine-local by architectural decision; the Center supports more than one person, with per-subject consent enforced by the engine rather than the UI. Peer-sync pulls finally honor the same per-peer sharing settings that pushes already respected.
+
+- **Digital Twin's AI passes actually run.** Ten passes shipped with configuration but no prompt template behind them and threw on first use — all ten now have templates and a migration that installs them on upgrade.
+
+- **Every managed app gets an Issues tab, and JIRA moves to its own.** Issues are browsable per app, JIRA configuration and the sprint Kanban board live on the app's JIRA tab, Jira Cloud sprints and boards load again, a working token is no longer reported as expired, and a self-hosted GitHub Enterprise instance gets a real error instead of "gh failed for an unrecognised reason".
+
+- **iCloud-offloaded notes stop breaking the vault.** An offloaded file no longer blanks the UI or risks freezing a save, a file wrongly reported as "not downloaded" can be saved anyway, re-ingesting a video keeps its existing note, and "re-sync all entries" stops early when the vault is unavailable instead of grinding for hours.
+
+- **Smaller things you'll notice:** Music Video scene frames, clips, and final renders open in the shared lightbox; reference images work on Codex, Grok, and Agy — not just local FLUX; the Antigravity and Grok code reviewers can be pinned to a model; Universe Canon's "differentiate cast" actions run again; and Series Pipeline and Manuscript Editor scroll properly on mobile.
+
+- **Dependencies and security.** Two high-severity advisories cleared — all three PortOS workspaces now audit clean — alongside routine currency for the Postgres driver, HTTP client, icon set, WebSocket and IP-parsing libraries, and CSS processor.
+
## Media
@@ -275,3 +304,7 @@
- **Image Gen's agy model picker lists models again, instead of reporting an empty catalog against a healthy one.** Choosing `agy` as the Image Gen provider showed "agy models returned no model ids — renders will use the model saved in Settings → Image Gen", with `agy models` printing a full eleven-model catalog on stdout the whole time. The parser dated from a build that printed one bare model id per line; agy now prints `<id>\t<Label>` rows (`gemini-3.6-flash-high⇥Gemini 3.6 Flash (High)`), so every row failed the bare-id test and the list came back empty — which the picker correctly refuses to present as a real fetch. Both the id-only and the tab-labelled shapes are now accepted, since other installs run older builds and every previously-persisted catalog was parsed under the old rule. The label is anchored on the tab rather than split on first whitespace on purpose: agy's own banner prose ("Fetching available models…") leads with a word that passes the id pattern, and a whitespace split would have persisted "Fetching" as a model. The same stale parse sat in the provider-catalog refresh behind Settings → Providers → Refresh models, whose failure was louder (it throws rather than falling back to the shipped seed) but has the identical cause; both now share one definition — `parseAntigravityModelList` in `server/lib/antigravity.js`, mirrored into the vendored toolkit copy — with a test that fails if the two ever disagree on any output shape.
- **[issue-3761] A chained video render no longer re-encodes a single chunk, and archives each one exactly as the model rendered it.** Windowed continuation conditions chunk N+1 on the tail of chunk N, and LTX-2's extend pipeline returns `source + extension` — so every chunk after the first opens with an echo of that window, which the stitched timeline already holds. Cutting the echo used to mean rewriting each chunk file in place, and a frame-index cut can't be stream-copied: an N-chunk chain spent `(N−1)` full x264 crf-18 passes whose only product was a frame offset, then knocked the trimmed chunks out of codec lockstep with the never-trimmed chunk 0 and forced the concat to re-encode the whole timeline on top. The offsets now ride into the stitch instead of into the files: `stitchVideos` takes a `trims` map and applies the cuts inside its concat's own `filter_complex` graph (`buildTrimConcatArgs` in `server/lib/ffmpeg.js`, mirroring the normalization the video-timeline renderer already proved out — `scale`/`pad`/`setsar`/`fps` on the video leg and `aresample`/`aformat` on the audio leg are what keep ffmpeg from aborting with "Input link parameters do not match"). Total cost drops to the single timeline encode that was always going to happen (each hop still encodes its own ~1s conditioning window, which is unrelated), the trimmed chunks stop being graded one generation lossier than chunk 0, and the archived per-chunk gallery entries stay byte-identical to the render — carrying their echo, which is invisible since those entries are hidden by default. Audio legs are emitted only when *every* input has an audio stream, because `concat=a=1` needs one from each and referencing `[k:a]` on a silent clip aborts the run; a chain of silent renders takes the video-only graph. The old `reencode` and `frameCounts` options collapse into `trims`, and the hand-stitch path from Media History — which passes no offsets — keeps its demuxer stream-copy fast path untouched. One latent bug in the echo arithmetic closes along the way: `numFrames` is optional on the render route, and `generateVideo` resolves the model default before deriving `--extend-frames` — but the chain orchestrator read the raw request. A chained request that omitted `numFrames` therefore measured a ~120-frame extension against an assumed 8-frame one and called all but 8 frames of every hop "echo", which the old in-place trim then destroyed on disk. Both sides resolve the default now. A filter graph that fails to build no longer discards the chain: it falls back to the stream-copy concat over the untrimmed chunks (which were never re-encoded, so they are still in lockstep), replaying the context at each seam rather than losing every chunk already rendered.
+
+## Full Changelog
+
+**Full Diff**: https://github.com/atomantic/PortOS/compare/v2.40.0...v2.41.0
diff --git a/package-lock.json b/package-lock.json
index 17d8cb36e3..fed1c9434f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "portos",
- "version": "2.40.0",
+ "version": "2.41.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portos",
- "version": "2.40.0",
+ "version": "2.41.0",
"license": "MIT",
"dependencies": {
"pm2": "7.0.3"
diff --git a/package.json b/package.json
index 96ec6f4fbe..922333db0e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portos",
- "version": "2.40.0",
+ "version": "2.41.0",
"private": true,
"description": "Local dev machine App OS portal",
"author": "Adam Eivy (@antic|@atomantic)",
diff --git a/server/lib/primaryCheckoutGuard.test.js b/server/lib/primaryCheckoutGuard.test.js
index 3bb721f9b6..8f9233a9cd 100644
--- a/server/lib/primaryCheckoutGuard.test.js
+++ b/server/lib/primaryCheckoutGuard.test.js
@@ -275,6 +275,12 @@ describe('detectPrimaryCheckoutDrift', () => {
// a `/do:pr` rebase leaves behind) plus its own real work.
await execGit(['checkout', '-b', agentBranch, 'main'], repo);
await execGit(['cherry-pick', sharedCommit], repo);
+ // The copy's own sha — identical to `sharedCommit` only when the cherry-pick
+ // landed inside the same committer-timestamp second. `sibling-work` is never
+ // pushed, so this branch is the ONLY route by which the patch reaches origin;
+ // the contributor below must cherry-pick this sha, not `sharedCommit`, or the
+ // clone hits `fatal: bad object` whenever the two straddle a second boundary.
+ const agentCopy = (await capturePrimaryCheckoutState(repo)).head;
await commit('the agent\'s actual work');
await execGit(['push', 'origin', agentBranch], repo);
await execGit(['checkout', 'main'], repo);
@@ -287,7 +293,7 @@ describe('detectPrimaryCheckoutDrift', () => {
await execGit(['clone', join(scratch, 'origin.git'), contributor], scratch);
await execGit(['config', 'user.email', '[email protected]'], contributor);
await execGit(['config', 'user.name', 'Other Contributor'], contributor);
- await execGit(['cherry-pick', sharedCommit], contributor);
+ await execGit(['cherry-pick', agentCopy], contributor);
await execGit(['push', 'origin', 'main'], contributor);
await execGit(['fetch', 'origin'], repo);