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.43.0
Released: 2026-08-13
Highlights
- Quota Burn got a full reliability pass. Steps can now be marked "Run once" so a burn plan can be a one-shot series instead of a forever rotation, and every read/refresh/save path on the page now surfaces a named error with a Retry instead of silently reverting or blanking the screen.
- Chief of Staff automation stopped burning quota on its own runaway loops. Branch reconciliation no longer re-launches itself indefinitely, respects a task's park state, skips branches whose session is still running, and stays quiet on a healthy automated run instead of flooding notifications.
- Merge follow-ups actually land now. Agent tasks on providers without native slash commands (Grok, OpenCode, Codex, Antigravity) were being stranded by a
app: nullbug and other completion-detection issues; an Antigravity run hitting its account quota is now recognized as spent rather than logged as a success, and stranded merge follow-ups from before this fix are revived on upgrade. - Unsaved work is now protected everywhere it can be lost. SongBook, Story Builder, the Prompt Manager's job skills, the pipeline manuscript editor, and the writers-room editor all gained an inline "Discard changes?" guard that catches sidebar clicks, ⌘K jumps, voice navigation, and the browser Back button — not just tab close.
- A broad accessibility pass added proper labels,
aria-expanded/aria-pressed/aria-currentstates, and screen-reader-friendly descriptions across the Digital Twin panels, Soul Creation Wizard, canon cards, notification panel, and collapsible sections throughout the app. - Several database-heavy operations got batched. Catalog slice export, universe canon saves, and ingredient tag normalization went from one-query-per-item to a small constant number of queries, cutting import/save latency substantially on larger universes.
- Story Builder polish: Lock & continue no longer discards in-flight arc edits, an AI generate/refine now survives switching steps mid-run, and the Seed/Import intake tabs are deep-linkable and preserve a pasted manuscript when switching between them.
- Series Autopilot can now pin one provider/model for every stage in a run (overriding per-stage pins, including the judge), and the arc verifier can finally see the world canon it was judging entries against, clearing a permanent false-positive that was stalling the foundation gate.
- The Usage page now tracks subscription cost, prorating what you pay for Claude/Codex/Antigravity/Grok plans against the API-rate cost they saved you.
- Federation/sync hardening: a schema-version gate now catches newer catalog bundle shapes correctly, a stripped-key retry loop against older peers stopped re-firing every cycle, and media-library pulls from multiple peers now serialize instead of racing on the same file.
- Changelog entries now merge cleanly across parallel branches — each branch writes its own small fragment file instead of appending to a shared
NEXT.md, eliminating a recurring source of merge conflicts. - Terminal input fixes: typing on the Shell page no longer doubles capital letters and spaces, and voice dictation into the terminal no longer garbles corrections mid-sentence.
- Git submodules are now managed per-app (with an optional auto-commit of pointer bumps) instead of from one global Dev Tools page, and the Add App wizard no longer silently drops a PM2 config into every imported project.
Added
- CoS now notices when a scheduled task (the overnight branch-reconcile loop) finishes the same work over and over in short-lived agent runs. It parks a looping coordinator so it stops burning quota and keeps the per-run duration signal local for a future Layered Intelligence run to assess and, only when justified, turn into a concrete planned fix.
- Git submodules are now managed per app instead of on one global Dev Tools page. Any managed app whose repo has a
.gitmodulesgets a Submodules tab showing each submodule against its remote, so PortOS's own bundled slashdo is maintained from the PortOS app page alongside its git, processes and update controls. Updating a submodule can now also commit the pointer bump for you: leave "Commit the pointer bump" on and the update stages just that submodule and commits it on the repo's default branch. It refuses to commit — and says why — when the repo is checked out on some other branch, so the bump can't land in the middle of unrelated work. The old/devtools/submoduleslink redirects to PortOS's own tab. - Quota Burn steps can now be marked Run once, so a burn plan can be a one-shot series instead of a rotation that repeats forever. A plan is walked lap after lap until a quota gate closes, which is right for a standing audit and wrong for work that only needs doing once — that work was simply re-done every lap for as long as the window had quota left. A step marked Run once records its dispatch, drops out of the rotation, and shows when it ran, with a ↺ Re-arm on the row (and Re-arm all on the plan) to put it back. Re-arming spends nothing; the next cycle still faces every gate. Existing plans are unaffected: steps repeat by default, exactly as before. A plan whose steps have all run also stops paying for the multi-second provider quota scrape every interval, and reports "every enabled job has already run once" rather than looking misconfigured.
- The Usage page can now record what you pay each month for your AI subscriptions (Claude, Codex, Antigravity, Grok) and shows what those plans saved against the estimated API cost. Each plan's price is prorated across whatever report window is selected, so both sides of the comparison cover the same days, and every plan gets its own row: monthly price, cost for this window, the API-rate cost its usage ran up, and the difference. Usage no subscription covers — pay-as-you-go API providers and pre-breakdown legacy rows — is reported separately instead of being credited to a plan.
- Series Autopilot can now run every stage on one provider and model. Picking a provider for a run only ever set a soft default, so any stage carrying its own pin on the Prompts page kept its own provider, model or reasoning effort — which meant "run this series on Sol" quietly left script verification (pinned to Codex in the shipped stage config) and every other pinned stage where it was. A new "Use this provider and model for every stage" option under Autopilot → Options overrides those pins for the whole run, including the judge pin, and is saved as a default for future runs. Scheduled runs get the same checkbox next to their provider picker. Stage tiers (quick/coding/heavy) still resolve against whichever provider ends up running, and the separate judge and per-stage routes in the same panel still win — the option removes the stage-config pins from the comparison, not your own choices. Leaving it off keeps today's behaviour exactly.
- Changelog entries are now written as one small file per branch under
.changelog/next/instead of being appended to the end of a shared file. Parallel agents each wrote their entry into the same place inNEXT.md, so their branches conflicted on merge — routinely stalling every second pull request of a parallel run, and more than once landing conflict markers on main. Two branches writing two different files merge cleanly every time.npm run changelog:add -- fixed "…"writes the entry,npm run changelog:collectfolds them all back into the release notes before a release, andnpm run changelog:previewreads the assembled unreleased notes without changing anything.
Fixed
- "Lock & continue" in the Story Builder no longer discards arc edits that are still on screen. Locking a step makes it read-only server-side and swaps the embedded Arc Canvas for read-only field blocks, so an open logline / summary / protagonist-arc editor was torn down with its unsaved draft and any dirty series-bible field lost its chance to save. The lock action now runs the same pre-flight flush the generate / verify / save paths use, and that flush reaches one level deeper: the arc editor hands its host a committer while it is open (
useArcCanvasSync→registerDraftFlush), so the draft lands before the lock request goes out. Unlocking skips the flush — it re-opens the step and has nothing to preserve. The full Arc Canvas page gets the same coverage, so its Save and Generate buttons pick up an open arc editor too. - Turning on scheduled backups now actually schedules them. The daily backup cron was registered once at server start, so if backups were off — or no destination folder was set — when PortOS booted, enabling them in Backup settings did nothing until the server was restarted, and no backup ever ran. The schedule is now kept in sync with your settings: enabling backups or picking a destination registers it immediately, editing the schedule re-registers it, and turning backups off cancels it.
- Canon entry cards in a universe bible are usable on a phone again. The card's icon action strip sat as a full-height column beside the entry's content, so on a phone it squeezed the description box and every collapsible editor under it to about a third of the card — the description was clipped after a few words and the "Reveal timing" and "Outfits" headers wrapped into tall centered stacks. The action strip now shares the entry's title row and the content spans the full card width beneath it. Long entry names wrap instead of being cut off mid-word (variation and reference-board rows on the same page too), a collapsed "Outfits" header clips its outfit list to one line, and the character colour rows leave their hex field enough room for the description beside it.
- Wrapped labels inside buttons no longer render as a centered ragged stack. Browsers center button text by default, which is invisible while a label fits on one line and only shows up once it wraps — so it surfaced on phones, in section headers across the app, and not on desktop. Buttons that lay their contents out in a row now read left-aligned unless they explicitly ask to be centered.
- Voice dictation into the Shell terminal no longer garbles what you said. Apple dictation streams progressively refined guesses and rewrites what it already typed ("determin" → "determine" → "determines"); the terminal forwarded every insertion but none of the matching deletions, so a dictated sentence arrived at the prompt as an accumulating pile-up ("ddedeterdetermindeterminedetermines if any code…"). Dictation edits are now translated into the deletions and insertions a terminal understands, so the prompt shows the sentence you dictated.
- The Branch & PR Reconciliation task no longer re-launches itself indefinitely when branches are left behind. Its drain re-issued itself through the same queue a human "Run Now" uses, and that queue's handler cleared the convergence state on every hop — so the "nothing changed, stop" brake was wiped before it could ever apply, and the task spawned roughly forty coordinator agents in one night against the same two branches. Automated re-issues now inherit that state, so an unchanged branch set parks after one cycle as designed.
- Branch reconciliation now leaves branches alone while their session is still running. A live agent's (or live
/claim's) branch with a clean worktree and an open PR was treated as work to finish, so the reconciler raced the running session's commits — and every push it made counted as "progress" that earned another reconciliation run. Those branches are now reported and skipped, and a reconcile whose only remaining branches are live is finished rather than retried. Ownership is read from the branch name as well as the worktree, so an agent that has already cleaned up its worktree but is still working is still recognized. - Automated reconciliation runs no longer raise a "nothing to do" notification. Only a run you started by hand reports back, so a healthy overnight drain converges quietly instead of leaving a pile of notifications.
- Branch reconciliation no longer mistakes GitHub's mergeability lag for progress. GitHub answers
UNKNOWNuntil it finishes computing whether a PR can merge, so consecutive checks of a completely unchanged PR looked like a branch advancing. - Both reconciliation tasks (branches and stale issues) now stop after a bounded number of back-to-back runs even when each run does make some progress, and wait for their next scheduled check. Nothing is dropped — the remaining work is found again on that check.
- A task that has parked itself no longer gets restarted anyway the moment its previous run finishes. Parking is what stops a drain-until-done task from running all night, but it was only ever read by the scheduled path — the automatic "keep draining" restart never checked it, so a task could park and be relaunched on the very next completion, indefinitely. That restart now honors the park, and the bounded back-to-back run limit applies to every drain-until-done task rather than only the two reconciliation ones. The claim-and-ship task types are deliberately left unlimited so a healthy overnight run is not throttled, and pressing "Run Now" is unaffected.
- Tapping the notifications bell on a phone now opens a panel that stays on screen. It was anchored to the bell — which sits mid-screen in the sidebar — so the panel ran off the right edge, clipping notification titles and putting every per-item dismiss button and the mark-all/clear-all controls out of reach with nothing to scroll to them.
- The notification panel's "+N more notifications" line is now a "Show N more" button, so the notifications past the first ten can be read and dismissed instead of being permanently unreachable.
- Notification dismiss and "Mark read" buttons are now full-size, always-visible tap targets on touch devices — they were sized to their bare icon, and the dismiss button was only revealed on hover, which a phone has no way to do.
- The notification panel now closes on Escape, and long notification descriptions wrap to two lines instead of being cut off mid-word.
- Agent tasks run by a provider without slash commands (grok, OpenCode, codex, antigravity) now actually get their pull request merged. PortOS drives the whole push/PR/merge lifecycle for those providers via a follow-up task — and that task was written to the task file with
app: null, which read back as an app named "null" and blocked the follow-up before it started. The PR, its branch, and its worktree were then left behind with nothing in the system that would ever land them. - Merge follow-ups already stranded that way are revived on upgrade, so the pull requests they left open finally land. Their blocking reason was exempt from both the failed-task reaper and the automatic retry, so they would otherwise have sat blocked forever.
- Task metadata that has no value is no longer written to the task file at all. Any unset field previously became the literal word "null", which every reader then saw as a real value — the same class of bug as the blocked merge follow-up above. Task files an older version already wrote are repaired on read.
- Blocking a task that exists to merge a pull request now raises a notification naming that PR, so it can be landed by hand instead of going unnoticed. This covers every way a task can get blocked, not just the one fixed above.
- An Antigravity (agy) agent no longer sits doing nothing on "Verifying your account…" until it is reaped. PortOS already held such a run open for a grace window instead of killing it, but that wait could never work: the banner is agy rejecting the submission — the prompt is discarded and the composer goes back to empty and idle — so nothing was ever in flight for the wait to notice, and the window's only possible outcome was to expire. PortOS now re-sends the prompt every 20 seconds for the length of the window (which is what the banner itself asks for), so a verification that clears — the normal case, in seconds — gets the work done on the provider you picked instead of failing over.
- Fixed the reason those runs hung for their full idle timeout rather than failing over at all. PortOS decided the provider had come back if it saw agy's
esc to cancelfooter — but agy shows that same footer for its slash-command menu, so merely opening the menu in a parked session (a/usagecheck, or a glance from the Shell page) counted as recovery. That permanently disarmed both the retry and the fail-over, and the run was finally recorded as "idle with no changes". Recovery is now judged only on chrome agy paints while a request is genuinely running. - A series' pinned image backend now actually renders its comic pages and covers. The pin was saved on the series and honoured by first-pass portraits, but the comic stage sent the install-wide default as an explicit choice — which outranks any pin — so a series pinned to one backend quietly rendered every page and cover on another. The Pipeline visuals default from Settings → Image Gen now applies to these renders too, and a pin naming a backend you have since turned off falls back instead of failing the render.
- Typing on the Shell page no longer doubles capital letters and spaces.
Hi Therearrived at the shell — or at a watched agent TUI — asHHii TThere, which made typing a message to a running agent unusable. The terminal forwards most printable keys on keydown and cancels the event there, but hands capitals and space to the browser's keypress default action, which then also fires an input event for the same character. The dictation bridge (which reads those input events to keep voice dictation from garbling) was translating that second event into a second keystroke; it now recognizes an insertion the keypress path already sent and leaves it alone. Voice dictation and soft-keyboard input, which arrive with no keypress behind them, are unaffected. - An Antigravity (agy) run that hits the account's subscription quota is now recognized as a spent quota instead of being recorded as a success. When the quota is gone agy paints
⚠ Individual quota reached. Please upgrade your subscription to increase your limits. Resets in 3h51m14s.where the answer would have been, and then goes silent — so the run's output-idle fallback finished it as a successful run whose "response" was the repainted prompt screen. Downstream that is worse than a failure: a Series Autopilot foundation-judge call read the JSON example out of its own echoed instructions, and the run died reporting "foundation judge response parsed but its rubric is incomplete or contains placeholders" — a manuscript problem, for what was purely an exhausted provider quota. Both attempts burned on the same dead provider, because nothing had marked it unavailable. PortOS now fails such a run the moment the banner appears, benches agy until its quota frees up, and lets the call retry on a fallback provider. CoS agent runs classify the same banner as a usage limit rather than an unknown error, so they stop re-picking the spent provider too. - Two CoS agents running without a worktree can no longer steal each other's completion. Agents whose task needs no code change (the issue-filing and reasoning types) all run in the primary checkout, and every one of them wrote its done-signal to the same
.agent-donefile — so with two running at once the second overwrote the first's summary, and each run's 2-second poll finalized on whichever sentinel happened to be there, attributing one agent's result to the other and killing a session that was still working. The sentinel is now named per agent instance (.agent-done-<agentId>), resolved from one helper by every side that touches it — the path written into the agent's prompt, the 2-second poll, the durable runner's watch, the CLI exit check, the structured-payload read, and the worktree-cleanup ignore — so a run reads, cleans up, and reports only its own. A Layered Intelligence reasoning run, where that file is the deliverable, was also being handed two different filenames in one prompt; its instructions now defer to the sentinel path the briefing gives it. The one behaviour to know about on upgrade: an agent still mid-run when the server restarts was told the old shared name, so it finalizes through its normal idle/exit path rather than the sentinel poll. - The SongBook index no longer shows "No songs yet" when the song list fails to load. A network blip or server error left the page in the same state as an empty repertoire, so the page read as "your songs are gone" with no hint that a fetch had failed. The list is now
nulluntil it is actually fetched, and a failed load renders a retryable error banner naming the failure instead of the teaching empty state. - Story Builder no longer discards a pasted manuscript and its analysis preview when you switch between the Seed and Import intake tabs; the active tab is now deep-linkable via
?intake=.
Changed
runBackup— the backup service's main lifecycle — now has direct unit tests. It was previously covered only throughbackupStatusForPg, with the route and scheduler suites mocking the function out entirely, so nothing exercised the parts that fail quietly: theisRunningre-entrancy guard, thebackup:started/backup:completed/backup:failedsocket payloads, and the error path that must release the lock and stampstatus: 'error'intodata/backup/state.json. Four tests now drive the real function against a temp destination with rsync stubbed at the spawn boundary (Postgres is never touched —dumpPostgrestakes its file escape hatch), asserting the rsync argv including the--excludepairs, the snapshot layout and manifest hashes, the persisted state, a concurrent call returning{ skipped: true }without a second rsync, and both failure paths leaving the lock free for the next run.restoreSnapshotin the backup service now has tests for the three things a restore gets exactly one chance to get right. A restore rsyncs a snapshot over the user's livedata/, and the suite previously only covered thesubdirFilterrejection cases and which rsync binary gets spawned. It now asserts thesnapshotIdallow-list rejects separators and shell metacharacters before anything spawns; that a bare..— which passes the character allow-list — is still stopped by theresolve()/relative()traversal check; that a validsubdirFilterproduces the exact ordered rsync argument array (--include=<dir>/***,--include=*/,--exclude=*, in that order, since a reordered chain silently widens a targeted restore into a full-tree one), and that no include/exclude flags appear when no filter is given; and thatreloadSettings()runs after a live restore but not after a dry run or a failed one, so a restoredsettings.jsoncan't sit behind a stale in-memory cache.- A failed "Continue a story" fetch on the Story Builder index no longer looks like your saved stories were deleted. The list swallowed its own error and fell back to an empty array, and an empty array renders nothing — so a dropped connection or a restarting server left the sidebar section silently gone, with no indication anything had failed and no way to try again short of a reload. The section now reserves itself while the fetch is in flight with three pulsing placeholder rows, and on failure renders an error banner naming the error with a Retry button that re-runs the fetch and restores the list. Only a successful, genuinely empty list still hides the section.
restorePostgresnow has tests for the three paths a PostgreSQL restore can go wrong on. A missingpsqlbinary surfaces as a spawn'error'event rather than a'close', so without its listener the restore promise would never settle and the UI would hang — the suite now drives that emit and pins the{ status: 'failed', reason: 'restore_error' }result. The--single-transaction/ON_ERROR_STOP=1pair is what makes a failed replay roll back instead of leaving the live database half-dropped, so both flags (and the-vflag's actual value, not just its presence) are asserted, along with theportosPGPASSWORD default and an explicitPGPASSWORDoverriding it. Amanifest.jsonthat exists but is unparseable reads as absent —readJSONFilereturns itsnulldefault, so hash verification is skipped and the restore proceeds; that is now pinned in both the dry-run and real-restore directions, so changing it to a hard failure has to be a deliberate decision.- The Story Builder's footer "Next >" button now says why it can't be clicked. It was inert whenever the active step was unlocked or had gone stale, but carried no tooltip and no accessible description — and since the step rail beside it is deliberately un-gated, a dead Next read as a bug rather than as guidance. It now carries a
titleplus a screen-reader hint naming the actual blocker ("Lock this step to advance to the next step." vs. "An upstream step changed — re-lock this step to advance."), and usesaria-disabledinstead ofdisabledso keyboard and screen-reader users can still reach the button and hear the reason. - The AI provider/model dropdown on the Digital Twin personality panel — the one shown before any traits have been analyzed — now carries a screen-reader label. It sat in a centered row next to the Analyze Traits button with no
id, no<label htmlFor>and noaria-label, so focusing it announced only an option string like "Example Provider - example-model" with nothing saying what the choice was for. A visually hidden<label htmlFor="personality-model-select">AI Provider & Model</label>now names it without changing the layout. docs/PORTS.mdnow matches the code it documents. The allocation table labelledportos-ui's port 5554ui, but the baseline app entry inserver/services/apps.jshas always registered it asdevUi— so anyone matching the doc against/api/appsoutput saw a label that wasn't there. The recommended-range table was drifting the other way: it opened the core block at 5554, leaving the:5553loopback HTTP mirror undocumented as a reserved port, and closed it at 5560, which putportos-dbon 5561 inside the "reserved for PortOS extensions" band. Core services now read 5553-5561 with extensions starting at 5562, and the common-labels list gained theapi-localanddevUientries the table already uses.- The series arc verifier can now see the world canon it was already judging against. A Universe Builder world keeps its factions, locations, vehicles, artifacts and interfaces as category variations; the named-canon trunks the verify prompt rendered stay empty until prose mints entities into them. So the verifier was handed a block labelled "world canon" that omitted the entire built world, and reported locked faction cards as invented and "absent from the World Canon" — findings no arc edit can ever close. That is a stall rather than a nuisance: the foundation gate's structure repair reverts its whole rewrite whenever verification leaves any blocker, so one permanent false positive discards every real fix beside it and the autopilot pauses. The sibling arc-resolve and volume-verify prompts already rendered this block, which is exactly why the verify/resolve pair could never converge. The arc-verify prompt now renders the category and composite canon, states that a listed entity is grounded, and a new contract test holds the pair to one world — plus the field-level half of the same class, asserting that every record field the checklist cites is one the context actually renders.
server/lib/ports.js— the ESM mirror of thePORTSobject inecosystem.config.cjs— was missing both PostgreSQL ports, so server code reaching for a database port found nothing to import and hardcoded 5432/5561 by hand. The mirror now carriesPOSTGRES_DOCKERandPOSTGRES_NATIVE, with the config's mode-dependentPOSTGRESexposed asresolvePostgresPort(pgMode)rather than a constant, since resolving it eagerly would mean reading.envfrom a module nearly every server file imports. A new drift test compares the mirror against the config key by key and fails if either side gains, loses, or renumbers a port.- The three collapsible result sections in the digital-twin list enrichment view — Item-by-Item Analysis, Patterns Detected and Personality Insights — now announce whether they are open. Their headers were plain
<button>s whose only expanded/collapsed signal was the chevron glyph swapping between down and right, so a screen reader read the same label before and after activation with no state to report. Each header now carriesaria-expandedbound to its own visibility flag andaria-controlspointing at the panel it toggles, and the panels carry the matching ids. - A federated catalog bundle whose live rows sit outside
ingredientsno longer bypasses the peer-sync schema-version gate.applyIncomingPushdecided whether to gate thecatalogcategory by looking atcatalogBundle.ingredientsalone, but the exporter already ships ingredient-free bundles (refsonly), and catalog schema v4–v8 addedrelations,tags,mediaandcatalogTypesblocks — so a peer on a newer catalog schema could push forward-shaped rows straight into an older receiver, which then tried to apply structures it can't interpret. The gate now counts a live row in ANY block of the bundle, including one added by a catalog version newer than the receiver knows about, and such a push is rejected with the usual 409PEER_SYNC_SCHEMA_VERSION_AHEAD. Tombstone-only bundles stay exempt, so federated catalog deletes still converge across a version gap. - Adding an app no longer writes a PM2 config into the project on its own. Importing a directory ran the PM2 standardizer the instant detection finished — dropping an
ecosystem.config.cjsinto the repo, commenting the ports out of its.envand Vite config, and cutting a git backup branch — before you had even saved the app. Only iOS/macOS/Swift/Xcode projects were exempt, so Docker stacks, Python services, static sites, and anything else you start another way all got a PM2 config they will never use, plus an LLM call nobody asked for. Standardizing is now a button in the Add App wizard that says what it will rewrite, and it is still available later from the Apps list. The wizard also shows the standardizer's live per-step detail while it runs (including the "no git repository, backup skipped" case) instead of one undifferentiated row. - Standardizing an app is now refused server-side for apps PortOS never runs under PM2, and for PortOS itself. The rule previously lived only in which buttons happened to render, so the socket and HTTP entry points would happily standardize an iOS app — or rewrite PortOS's own
ecosystem.config.cjs, the canonical source of its port map, from an LLM analysis. The Standardize button on an app's Overview tab is now hidden for PortOS too, matching the Archive button beside it. - A behaviour-preserving refactor pass tidied several long-standing hot spots without changing what PortOS does.
spawnTuiAgent's paste/retry/max-runtime machinery moved into its own controller instead of sharing a ~1400-line function's mutable scope;agentCompletionstopped importinggetConfigfromcos.js, which was the closing edge of ~82 circular import chains; three inlined bodies in the series-autopilot dispatcher moved out toarcSteps.jsalongside its sibling step runners; Layout's 85-line full-width-route boolean, ImageGen's mode-label ternary and peerSync's 15-branch lister ladder became lookup tables; the daily/weekly/custom schedule cases collapsed to one shared interval evaluation;server/index.jsandBrowser.jsxnow use the canonicalPORTS.APIandformatDurationMsinstead of local copies; and a batch of dead imports was removed. The full test suite passes unmodified — no test file was edited — so return values, side effects, error messages and public API shapes are all unchanged. - The fork-aware self-update flow is now documented on its own page (
docs/SELF_UPDATE.md) and indexed in the docs README. It explains why release polling always queries upstream while the update itself pulls from your own origin, what theFORK_SYNC_REQUIREDandFORK_DIVERGEDresponses mean, and what each of the three fork-specific update buttons does — previously this only existed as a terse note in the repo's agent instructions. - The README now matches what PortOS actually is. Its feature list had drifted behind roughly a year of surfaces — Sprites, Game asset binding, the 3D image-to-mesh page, Authors, Story Builder, LoRA training, the Pipeline's editorial/continuity/voice-fingerprint checks, the Privacy Center (vault, organizations, change-of-address, data brokers), the activity timeline, SongBook, iMessage/Signal/X, Workspaces, Flows, the local-LLM playground, and the public API surface were all missing. Several stated facts were also wrong: React 18 (it's 19), 117 curated genome markers (116), six agent skill templates (seven), five POST domains (six — the whole Cognitive domain was unlisted), a provider roster missing Grok Build, Cursor Agent and OpenCode, and a contributing note claiming PortOS has "no auth" when an optional instance password has shipped for some time.
- The setup scripts now require Node 22 instead of 18. Vite 8 needs ^20.19 || >=22.12, so a v18 machine passed the version gate and then failed several minutes later at the client build with a much less obvious error. The README's stated requirement was updated to match.
- Notification panel placement now goes through the shared popover-positioning hook that the theme switcher beside it already used, so it clamps into the viewport and flips above/below on its own instead of relying on hand-written positioning.
- The Code Review Defaults panel now names every CLI reviewer in its help text, generated from the reviewer roster itself — the sentence used to spell them out by hand and fell behind twice as new reviewers shipped, telling users their CLI reviewers ran a different way than they do.
- The remaining trigger-anchored dropdowns — "Run on App" on a scheduled task, and the Share and Sync buttons on series and universe cards — now use the same shared popover-positioning hook as the notification panel. "Run on App" opened a panel pinned to its button's left edge that merely got narrower on a phone rather than moving, so it ran off the right edge; the Share and Sync menus always opened downward even with no room below. All three now clamp into the viewport, flip when there is no room, and stay attached to their button as the page scrolls.
- The theme switcher, the media collection picker, and the Shell photo composer now dismiss through the shared click-outside hook instead of three private copies of the same two-ref check, so the rule that a portaled panel counts as "inside" its own trigger lives in one place. Escape still closes each of them.
- Collapsible section headers in the canon cards, the character detail editor, and the digital-twin interview analysis card now announce their open/closed state to a screen reader. They were five separate hand-rolled copies of the same header, none of which reported that state, and all five now share one primitive so a layout fix lands in one place instead of three.
- The memory list and timeline endpoints now validate their query strings against the Zod schemas that were written for them. Both handlers had been hand-parsing
req.query, so the declared bounds went unenforced: an unknown memory type, a garbledlimit, or a nonsense date range was quietly accepted and passed to the database. Both schemas now also accept the comma-separated, string-valued form a query string actually arrives in, and the listlimitceiling is 500 — the bound the route has always enforced in practice — rather than the 100 its schema claimed. The timeline endpoint also finally honours anappIdfilter, which both of its backends have always supported but the hand-written parsing never passed along. - Agents run on an API provider (LM Studio, raw OpenAI/Anthropic — anything with no native filesystem tools) now receive the per-directory
CLAUDE.mdfiles too, not just the global and repo-root ones. Those agents read nothing off disk on their own, so a convention that lived inserver/CLAUDE.mdorclient/src/CLAUDE.mdreached them as a pointer with no contents — which is how relocating a backup rsync-exclude rule out of the root file silently removed a data-loss guard from that whole class of agent. Nested files are now discovered under the workspace and spliced in after the root one, each labeled with its repo-relative path, bounded to 10 files and 5 levels deep and skipping vendored, generated, and runtime trees. - The Node version PortOS requires is now written down in exactly one place and checked before anything slow runs. The floor was copied into five sites that could drift apart — both setup scripts,
.nvmrc, the CI workflows and the README — while the install path the README actually documents (npm run setup,npm start) checked none of them, so an unsupported Node installed happily for several minutes and then failed inside Vite with an error that never named the cause.scripts/checkNodeVersion.jsnow owns the number (22.12), runs first in the rootsetup,startanddevscripts so an old Node fails in the first second, and a drift test holds the other sites to it — the shell gates and the README to the floor exactly,.nvmrcand CI to at-or-above it, since running CI on 24 while supporting 22.12 is a preference rather than a mistake. All fourpackage.jsonfiles now declareenginesas well. - The Pipeline's Reverse Outline map now keeps the selected scene in the URL (
?scene=<id>) instead of component state, so the open scene detail survives a reload and can be linked to or shared. A stale id — after regenerating the outline, say — falls back to the "click a marker" placeholder rather than a blank card, and regenerating clears the selection outright. - The six "file too large" toasts — album covers, artist portraits, tracks, author headshots, reference audio and OpenClaw attachments — now render their size cap through the shared
formatByteshelper instead of each dividing by 1024 twice and gluing on "MB". The rendered text gains a space before the unit (12 MBrather than12MB), which is what the rest of PortOS already shows and what the reference-audio toast already read. The OpenClaw combined-attachment message picked up the same treatment for its decoded-size estimate, so the two limits it can report no longer print their units two different ways. - The post-restart agent-recovery path is now its own function instead of a 65-line branch inlined at the top of
handleAgentCompletion, so a change to either it or the live in-memory completion path no longer means reading past the other. The pause guard that path sits behind — the one keeping a stray completion event from cleaning the worktree out from under a later resume — is now pinned by tests that call the real function rather than by a source-text assertion that broke the moment the code moved. - Every inline
new Date(x).toLocaleDateString()/.toLocaleTimeString()in the client — roughly seventy across fifty components, from the calendar views and CyberCity HUD to the CoS tabs, goals, media queue and app-update panels — now routes throughclient/src/utils/formatters.js, so a change to how PortOS renders a date is one edit rather than fifty. The helper set grew to cover the shapes that were being spelled out by hand (formatDateNumeric,formatTimeOfDaySeconds,formatMonthDay,formatMonthYear,formatWeekdayShort,formatWeekdayDate,formatWeekdayTime), andformatClockTimegainedseconds/hour12options instead of a second copy of itself. Two long-standing paper cuts go with it: a bareYYYY-MM-DDis now anchored at local midnight everywhere (a plainnew Date('2026-03-05')is UTC midnight and renders as the 4th anywhere west of Greenwich — call sites used to fix this by hand, and the ones that forgot showed the wrong day), and a missing or malformed timestamp renders a caller-chosen fallback instead of the literal text "Invalid Date" — including the calendar event-detail formatter, which had ended up guarding its all-day branch but not its timed one. - The ~460-line Sprite Manager block in
server/lib/validation.jsnow lives in its ownserver/lib/spriteValidation.js, matching the eleven other per-domain validation files. A straight lift wasn't possible: the block leans on four fragments (recordRenderPinFields,cloudModelIdString,grokVideoDurationSchema,isSafeSubdirFilter) that music video, universe builder, series, video gen and backup also use, and a domain file can't read them back out ofvalidation.js— ESM hoists itsexport * fromre-exports, so the read lands in the temporal dead zone. Those four moved to a new leafserver/lib/sharedSchemas.jsfirst, withvalidation.jsstill re-exporting them, so every existing deep import keeps working unchanged. - The TUI runner's response-file tests no longer fail at random on a busy machine. They drive the runner's one-second size-stability window with fake timers, but the polls behind that window read the response file from real disk — and a real read finishes on Node's threadpool, which advancing fake timers does not wait for. Under load a poll's read could land after the test had already moved on, so the run took the timeout or fallback path and the failure looked like a regression in whatever diff happened to be under test. Those five tests now serve the response file from memory, so every read settles as a microtask the timer advance always drains, and the assertions are unchanged.
- The unused
toolUseLocalModelFilterexport was removed from the client's provider helpers. It offered to hide non-tool-capable local models from a picker, but nothing ever called it, and the approach it represented was already settled the other way: agent and coding pickers annotate each option (🔧 tool use/⚠ no known tool use) and warn below the select rather than filtering, because the underlying heuristic is a positive allowlist — a non-match means "not a recognized tool-caller", not a proven negative, so filtering would make a newer tool-capable family unselectable. The rationale now lives on the annotation helper that survived. - Deleting or uploading a SongBook attachment no longer crashes when the attachment presence lookup failed on page load. That failure parks the attachment state on a
'failed'sentinel string so the synced list still renders with presence unknown, but both mutation handlers treated it as an array: the delete handler called.find()on it and threwTypeError: prev.find is not a function, leaving the row on screen, and the upload handler spread the string into six single-character rows. Both now check for an array first, falling back to the record's own synced list on upload and leaving presence genuinely unknown on delete rather than stamping a false "not on this machine" pill. - Uploading several SongBook attachments at once no longer stops at the first failure. The upload loop awaited each file without catching, so one rejected read or a single server error broke out of the loop: the remaining files in the selection were never attempted, and the one generic "Upload failed" toast gave no clue which file failed or that anything had been skipped. Each file's read-and-upload now catches on its own, toasting a message that names the file, and the batch continues so the successful files still land.
- Keyboard-shortcut hints across the client now render the right modifier for the machine they're on.
client/src/utils/platform.jsexports amodKey(⌘/Ctrl) label, but only the command palette and the keyboard-help sheet read it — five other hints hardcoded a glyph instead: the 404 page and the Ask composer advertised⌘K/⌘/Ctrl + Enterto Windows and Linux users, the OpenClaw composer printed both forms side by side, the Writers Room save button's tooltip saidCtrl/Cmd+S, and the digital-twin enrichment prompt saidCtrl+Enteron a Mac. All five now readmodKey, which prefersnavigator.userAgentData.platformover the deprecatednavigator.platformand degrades to non-Mac when neither exists — behaviour the module now has tests for. - Leaving the SongBook editor with unsaved edits now asks first. The editor holds every change — sheet text, practice notes, metadata — in an in-memory draft until an explicit Save, so clicking View, following the "All songs" link, or closing the tab dropped the work silently. The page now compares the draft against the saved song (numerically for capo, since the number input hands back a string and retyping the stored value would otherwise read as an edit) and defers those exits behind an inline "Discard your unsaved changes?" band under the header, with Discard resetting the draft and Keep editing leaving it intact; a tab close or reload arms the browser's own prompt. Saving clears an armed confirm, since the draft is no longer dirty.
client/src/utils/cityChronotype.jsnow exports onlycomputeChronotypeEnergy. Its six internal pieces — the two range constants, the neutral-modifier sentinel, and theparseHour/computeEnergy/energyModifierssteps — were exported purely so the unit tests could reach them, but the utils barrel re-exports every module flat, so generic names likeparseHourandcomputeEnergysat in the shared namespace waiting to collide with a future module. The tests now drive every one of those behaviors through the public entry point (an unparseable or out-of-range peak window yields the neutral no-op; the:30half-hour still lands the peak center at 11.25), plus one assertion that the module's export list stays a single name.- An AI generate or refine started in the Story Builder now survives clicking another step on the left rail. The step panel is keyed by the active step, so navigating away unmounted it — which tore down the SSE progress stream and threw away the completion handlers, leaving the run to finish on the server with no phase updates, no success or failure toast, and a stale view until a manual refresh. Each run's stream, phase and handlers now live in a provider mounted above the rail (
client/src/hooks/useStoryStepRuns.jsx), one slot per step id, so runs on different steps can be in flight at once and the panel picks its own run back up — including which character a refine targets — when the user navigates back to it. docs/SELF_UPDATE.mdnow documents thatupdate.sh/update.ps1check outmainbefore pulling, stashing a dirty working tree first so the checkout can proceed. The doc described only thegit pull --rebase --autostash, so anyone running an in-app or CLI update from a feature branch or a detached HEAD was surprised to find their checkout moved tomainwith their work parked ingit stash— the scripts print the restore commands on completion, but nothing said so up front.- The Vite dev server example in
docs/PM2.mdno longer tells you to point PM2 atnode_modules/.bin/vite. PM2 resolves a relativescriptagainst its own working directory rather than the app'scwd, and the.binentry itself varies by platform and package manager (symlink,.cmd/.ps1wrapper, generated shell script), none of which the Node interpreter launches uniformly — so a config copy-pasted from the doc crashed on startup. Both the standalone snippet and the complete monorepo example now use the absolutepath.join(__dirname, 'client', 'node_modules', 'vite', 'bin', 'vite.js')form that PortOS's ownportos-uiapp has always used, with a note explaining why. - A failed URL import in the SongBook importer no longer leaves the form looking untouched. The error had only a transient toast behind it, so once it faded the URL still sat in the input with no preview, no explanation, and a Save button that answered with the unrelated "Nothing to save — paste or fetch a tab first". The From URL tab now keeps an inline alert under the input naming the failure with a Retry button next to it, clears that alert as soon as the URL is edited, and drops any previously fetched draft (and the title/artist it auto-filled) so a failed fetch can't leave the earlier song previewed under a URL that never loaded. The disabled Save button now says why it's disabled instead of waiting for the click. A result that lands after the URL has been edited (or after the user has left the tab) is discarded rather than written under whatever is on screen now.
- The Digital Twin rating scale is now legible to a screen reader. Its 1–5 buttons carried only a bare number as their accessible name and nothing marking the current selection, so navigating by rotor or keyboard announced "1, 2, 3, 4, 5" with no indication of which end meant Strongly Disagree or which option was already chosen. Each button now names itself as "1 - Strongly Disagree" and reports
aria-pressed, the row is a labelled group carrying the question text so the rating is announced in context, and a caller-suppliedlabelsarray shorter than five positions falls back to the default wording per position instead of announcing "undefined". - The Digital Twin confidence gauge is now announced to screen readers. The circular SVG ring and the per-dimension bars beneath it were plain
<div>s with a decorative SVG inside, so assistive tech either skipped them or read the loose "72%" text node with nothing to say what it measured. The overall gauge now carriesrole="meter"witharia-label="Digital Twin overall confidence", the min/max/now values, and anaria-valuetextpairing the percentage with its Strong/Moderate/Needs Work band; each dimension bar carries the same meter semantics under its own dimension label, and the ring SVG is markedaria-hiddenso its geometry isn't read twice. - Pushing a series or music video project to a peer running an older PortOS no longer fires the same rejected request every sync cycle forever. When the older peer's strict schema rejects a newer bundled key (
manuscriptReview,reverseOutline,linkedTrack), the sender strips it and retries — and deliberately withholdslastPushedHashso the stripped doc is re-sent once that peer upgrades. With nothing else recorded, the next cycle had no way to tell a settled record from a new edit, so every 60-second tick re-ran the same 400-plus-retry pair for content that had not moved. A second water-mark (lastPushedLegacyHash) now records what was actually delivered in stripped form, so an unchanged record short-circuits; any real edit still moves the hash and re-attempts the full push, and thepeer:onlinere-probe still pushes unconditionally, which is where the stripped key finally lands after an upgrade. A pending doc the receiver reported (its bundled merge threw) is left un-water-marked, since that one is transient and must genuinely retry. - A failed first read on the Quota Burn page no longer strands you on a dead end.
load()swallowed the error and leftconfignull, and the unavailable branch returns before the header — so the only control that could re-read, "Refresh quota", was never rendered, and the one line on screen named neither the cause nor a way out short of reloading the browser tab. The read's failure is now kept in its own state (null= never failed, distinct from "the server answered and has no plan"), and the unavailable branch renders an error banner carrying that message with a Retry button that re-reads and clears it on success. - Deleting a prompt variable now asks first. The 14px trash icon on each row in the Prompt Manager's Variables list fired
DELETE /api/prompts/variables/:keyon the first click, so a mis-click — easy on a touch screen or with tight cursor tracking — destroyed the variable and its template content with no warning and no undo. The trash button now arms an inline confirm row in place of that row ("Delete "Tone Guide"?" with Delete / Cancel), using the shareduseConfirmDelete+InlineConfirmRowpattern, so only one row is armed at a time and cancelling leaves the variable untouched. The trash button's accessible name now also names the variable it deletes instead of the generic "Delete variable". - Media-library sweeps from two or more full-sync peers no longer race on the same asset file. The in-flight pull guard is keyed by
(peer, kind, filename)on purpose — a re-render pushed by one peer should still be able to overwrite an older copy another peer served — but that also meant two peers advertising the same filename, which is exactly what a mirrored library looks like, both passed the guard and downloaded and wrotedata/{images,videos,audio,music}/<name>at the same time. Pulls now serialize on a queue keyed by the destination alone, so the later peer waits its turn rather than writing alongside the first, and the local file is re-checked against the advertised hash once the turn arrives: for every asset kind, not just images, matching bytes mean a hash instead of a second download. The all-peers sweep also picked up a global re-entrancy guard, since a sweep that outran the 60-second tick let the next tick start peer B while peer A was still mid-pull, and the derivedmedia_assetsreconcile now runs on a single tail with concurrent requests collapsed into one pass instead of stacking overlapping full-table rebuilds. - "Refresh quota" on the Quota Burn page no longer blanks the page or hides a failed re-scrape. The handler flipped the same
loadingflag as the first read, so every family card, control, and status number was replaced by a full-page "Loading burn plan…" spinner for the length of a 10–20s PTY quota scrape — and because the read's error was swallowed, a scrape that timed out simply put the stale numbers back with nothing saying they were stale. The refresh now reports itself on the button that asked for it (spinning icon, "Refreshing…", disabled) while the plan stays on screen, and a failure raises a toast naming the cause. The unavailable-state Retry button shares the same path; it stays banner-only there, since the banner already names the error. - A failed job-catalog read on the Quota Burn page no longer empties the config form silently. The fetch was
.catch(() => {}), so a 500 or a network blip left the catalog at its empty default: the "Add a preset job" picker returned null and vanished, "Add job" sat disabled, and every job row's Job Type / Apps / Universes / Image Modes dropdown rendered blank — with nothing on screen naming a cause, and editing a step in that state savingjobType: ""into a 400 that stalls the whole save. The catalog read now keeps its failure in its own state (with a 200 carrying zero job types reported as its own distinct cause rather than as a successful load), and an expanded family card renders an inline warning banner naming it with a "Retry catalog load" button that re-reads the catalog in place — no browser reload, and the plan itself stays on screen throughout. - Opening a job skill in the Prompt Manager now shows up in the URL. The Stages and Variables tabs already encode their selection as
?stage=/?var=, but the Job Skills tab kept the open skill in local state, so the editor could not be linked or bookmarked and a reload — or a round-trip through another tab — dropped the user back on the "Select a job skill" placeholder. Selection now lives in?skill=, and aselectedJobSkill-keyed effect fetches the template and metadata, so?tab=job-skills&skill=<name>opens that skill's editor directly and a cleared param resets the panel. - Exporting a catalog slice no longer issues three database queries per ingredient.
exportSliceForRefhydrated scraps, refs and media one ingredient at a time, so a universe holding 100 ingredients cost 300 round-trips and pinned the connection pool for the length of the export. The three lookups are now batched withWHERE ingredient_id = ANY($1)and grouped in memory (listScrapsForIngredients/listRefsForIngredients/listMediaForIngredients, sharinggroupRowsByIngredient), so one slice costs four queries regardless of how many ingredients it holds. The per-ingredient helpers stay on the same names and shapes — they now delegate to the batched query — and the exported payload, its ordering (scraps oldest-first, portraits ahead of other media) and its empty-array handling are unchanged. - A failed job-skill save in the Prompt Manager no longer looks like a successful one.
saveJobSkillsent the PUT with{ silent: true }and an empty.catch(() => {}), so a network blip, an auth failure, or a 500 dropped the edit on the floor while the Save button simply re-enabled — the exact shape of a save that worked. The failure now raises a toast naming the cause, a successful save confirms itself ("Job skill saved"), and the Preview button on the same panel likewise reports a failed render instead of leaving the preview panel blank with no explanation. - Saving a universe no longer issues one database read per canon entry.
projectToCatalog— which runs synchronously insideupdateUniverseto keep each catalog row in step with its embedded character/place/object entry — calledgetIngredientonce per entry just to compare timestamps, so a universe with 50 canon items cost 50 single-rowSELECTs before the first write, on the request the user is waiting on. The freshness lookup is now a single batched query (getIngredientTimestamps,WHERE id = ANY($1), two columns rather than the whole jsonb row), with the loop-break guard applied before the batch so a guarded ingredient is never fetched at all. The LWW rule is unchanged (an entry at least as fresh as its row wins; an older one is skipped), missing rows still count as skipped instead of being confused with stale ones, and a per-entry write failure is still logged and skipped without aborting the rest of the pass. - Unsaved Quota Burn edits are no longer lost silently when you navigate away. The page has no Save button — edits persist on a 500ms trailing edge — and the dismount flush that catches everything typed inside that window swallowed its own failure with
.catch(() => {}), so leaving the page while the header still read "Saving changes…" dropped a pasted work prompt or a changed interval for good, with no toast and nothing on screen having said so. A failed flush now raises an error toast naming what happened and keeps the patch in tab-scopedsessionStorage; the next visit that successfully reads a plan replays it through the normal save path, so the edits come back on screen AND get re-sent to the server instead of waiting for the user to retype the field. A visit whose own read failed leaves the stash alone for the visit after it, and a stash that is not a patch object is ignored rather than replayed into a 400. - Clearing a Quota Burn number box no longer discards the edit without saying so.
NumberFieldheld an uncommitted draft so an empty box could not commitNumber('') === 0into a 400, but on blur it simply dropped the draft and snapped the input back to the stored value — a user who cleared "Check every (minutes)" or "Reserve (%)" and clicked away saw the old number reappear with nothing on screen explaining why. An empty, non-numeric or out-of-range draft now stays on screen next to an inline error naming what the field accepts ("Must be between 5 and 720"), wired up witharia-invalid/aria-describedby; the error clears the moment the draft is committable again, and only a committable draft is released back to the stored value. Out-of-range numbers are also no longer committed mid-typing, so a 721-minute interval is caught in the field rather than by the server. - Applying an inbound catalog sync envelope no longer writes each legacy-tagged ingredient twice. The friendlify-on-sync repair — which rewrites an older peer's raw
from-universe/universe:<id>tags to the friendly universe name — ran as a follow-upupdateIngredientafterupsertIngredientFromPeerhad already written the row, so an envelope carrying N such ingredients cost 2N queries and left a redundantcatalog_ingredient_revisionsentry for every one of them. The rewrite now happens on the row before it is upserted, so it lands cleaned in a single write with no extra revision history. Behavior is otherwise unchanged: the universe name map is still built lazily and only once per apply, a row whose universe is not resolvable locally still lands with its machine tags intact for a later pass, an LWW skip still touches nothing, and a failure to build the map is isolated per row (reported asingredient-prepare) with the raw row still applied. The friendly universe name — minted locally rather than carried by the peer — is still registered in the canonical tag taxonomy so autocomplete can suggest it, but now only for the label the rewrite adds, once per apply, instead of re-normalizing every row's whole tag array. - Unsaved job-skill edits in the Prompt Manager are no longer thrown away when you click another skill. Selecting a skill replaced the Markdown editor's contents outright, so a half-written template vanished with no warning and no undo the moment the user reached for a neighbouring skill in the sidebar list. The editor now tracks the last server-confirmed text (a full copy, not a flag, so typing an edit and undoing it back to the original stops counting as dirty) and marks itself with an "Unsaved changes" note in the header and an "Unsaved" badge on the list row. Clicking a different skill while dirty parks that click and takes over its list slot with an inline confirm row — "Discard unsaved changes to …?" with Discard / Keep editing — so cancelling leaves the selection, the URL, and the typed text untouched, and the next skill is only fetched once the discard is confirmed. Saving snapshots exactly what was sent — and which skill it was sent for — as the new clean baseline, so a save that lands after the user has already moved on cannot mark the freshly loaded skill dirty; a preview that resolves late is dropped for the same reason rather than rendered under the wrong skill's heading.
- Saving an ingredient no longer issues one or two database queries per tag.
normalizeTagsmapped each raw label to its canonicalcatalog_tagsrow inside aforloop — anINSERT … ON CONFLICT DO NOTHING RETURNING labelper label, plus a follow-upSELECTwhenever the row already existed, which is the common case — so an ingredient carrying M tags cost between M and 2M round-trips on every create, every tag-touching update, and every committed scrap. The whole list is now resolved in at most two statements: oneSELECT id, label … WHERE id = ANY($1)to read every pre-existing row, then a single multi-row insert for whatever is missing, skipped entirely when nothing is. The canonical rules are unchanged — blank tags dropped, casing/whitespace variants collapsed to one row, order of first appearance preserved, and a stored label still beating the incoming casing (Noirwins over a laterNOIR) — and passing{ client }still runs both statements on the caller's transaction. - A failed quota read on an already-loaded Quota Burn page now says so. Once a plan was on screen, a "Refresh quota" that never landed — or a background poll for a still-pending provider scrape — left the numbers exactly as they were, so a read that failed was indistinguishable from one that came back unchanged. Any failed read now raises a warning banner above the page header naming the cause, with its own Retry button, and clears itself on the next successful read (including the poll's). The banner is the page's single error surface: the manual refresh no longer toasts the same failure on top of it, and the stale plan stays rendered throughout rather than being blanked.
- Unsaved SongBook editor drafts survive a sidebar click, a ⌘K jump, voice nav and the browser Back button. The editor already deferred its own exits — the View toggle and the "All songs" link — behind an inline discard confirm, but anything that left through the router without touching those controls unmounted the editor and dropped the sheet text and practice notes silently, which is the same data loss through a different door. The client now mounts a react-router data router (the existing route tree hangs unchanged under one splat route, so no page needed rewriting), which makes
useBlockeravailable, and the guard ships as a shareduseUnsavedChangesGuard(isDirty)hook: it parks the navigation, hands the pageblocked/proceed()/reset()so the page renders its own inline confirm rather than awindow.confirm, and armsbeforeunloadfor tab close and reload. A parked navigation that settles clean — the user hits Save with the confirm up — runs instead of being swallowed, a navigation that only changes search params on the same page is never blocked, and a ⌘-click that opens a second tab still leaves the editor standing untouched. - Unsaved edits in the pipeline manuscript editor and the writers-room work editor now survive an in-app navigation. Both carried a
beforeunload-only guard, so a tab close or reload asked before dropping the draft but a sidebar link, a ⌘K jump, a voiceui_navigateor the browser Back button unmounted the editor and discarded the work silently — manuscript sections only persist onBlur, so a section typed into and left without blurring was gone. Both now adopt the shareduseUnsavedChangesGuardhook and render an inline Discard / Keep editing confirm (never awindow.confirm), with the localbeforeunloadeffects dropped in favour of the hook's. The manuscript editor is a splat route where switching issue tabs changes the pathname without leaving the editor, so the hook grew anisSameView(from, to)option that exempts an editor's own in-page moves: switching between issues with unsaved text raises nothing, while leaving the manuscript entirely still parks the navigation behind the confirm, and discarding restores each section to its last server-confirmed content before the navigation runs. - A merge follow-up that successfully lands its PR is no longer recorded as a failure. These runs exist to merge one pull request: they make no commit, are told to exit once the PR reads
MERGED, and on Antigravity often skip the completion sentinel — so the idle reaper had only proxies to judge them by, and every proxy got it wrong. Their prompt quotesgh pr checks,gh pr mergeand--delete-branch, which the TUI echoes back, which latches the swarm merge-queue tracker before any work happens; the finished agent then sat silent for the tracker's 15-minute grace and was reaped as "idled out in the merge queue — it likely died mid-merge", twice retried, and finally blocked on max retries with a high-priority "PR left open" notification naming a PR that had merged fifteen minutes into the first attempt. The reaper now asks the forge the actual question — once a follow-up run has been quiet for its normal idle window, it checks whether its PR merged, and finalises on that answer. Aghthat cannot be reached still counts as "we could not ask" rather than "not merged", so every existing verdict is untouched when the forge is unavailable, and a follow-up whose PR genuinely did not land still surfaces as needs-manual-finish. The reaper's branch matrix also moved out of the interval body into a pure function the tests now call directly, replacing a hand-maintained copy of that logic inside the test file. - The backup service's persisted state file is now covered by tests.
getStatereturning the default state whendata/backup/state.jsonis missing or truncated mid-write,saveStatemerging a partial patch into what is already on disk, and — the one that actually matters — two concurrentsaveStatecalls (a run finishing while the scheduler stamps a status) serializing through the write queue so neither loses the other's fields. The concurrency test fails if the queue is removed, and all of it runs against a real temp directory rather than a mocked filesystem. - The Soul Creation Wizard's step-indicator dots are now announced. The five dots are real
<button>elements with no text inside them, so a screen reader read out five unnamed buttons with no cue as to which step each one jumped to or which was current. Each dot now carries anaria-labelnaming its step number and title, and the active one carriesaria-current="step". POST /api/backup/restore-dbnow has route tests for the two things its handler leans on and nothing asserted. Schema rejection is covered per bad type — a numeric, object, array, null, empty-string or booleansnapshotId, and adryRunsent as'false','true',0,1,nullor an object all have to come back as the 400VALIDATION_ERRORenvelope withrestorePostgresnever called, since a coerceddryRunis the difference between reporting a restore and replaying a dump over the live database. A well-formed body is asserted alongside them so those rejections can't pass vacuously. The second half covers the service's resolved-value failures —manifest_mismatch,restore_error,no_dump,not_configured— which the route must hand back verbatim at 200 rather than collapsing into a generic 500 that hides which check refused the restore.- Agent prompt defaults now defer to the changelog convention a repo documents (per-branch fragments where present) instead of prescribing an append to .changelog/NEXT.md; release-check also reads uncollected fragments so a ready release isn't reported as 'not enough work'
Removed
- Unreferenced XP-threshold helpers (
computeXpView,MAX_LEVEL) in the character HUD math;levelFromXPstays for the CyberCity artifact unlocks.
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.42.0...v2.43.0