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.38.0

[._.]/ Adam Eivy0fffd682b620
diff --git a/.changelog/NEXT.md b/.changelog/v2.38.0.md
similarity index 90%
rename from .changelog/NEXT.md
rename to .changelog/v2.38.0.md
index b7704b08d8..bce02d46ab 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/v2.38.0.md
@@ -1,3 +1,25 @@
+# Release v2.38.0
+
+Released: 2026-08-04
+
+## Highlights
+
+**Quota Burn is a page, not a per-app setting.** Unused provider quota now drains through one install-level loop with its own page under Dev Tools, instead of a duplicated block of config inside every managed app — two enabled apps used to run two loops racing for the same window. Each provider family runs an ordered list of jobs with its own type, model and target, and the page tells you exactly why a family will or won't burn on the next tick rather than leaving you to guess. Ten ready-made audit prompts ship with it, each scoped to file issues and change nothing, and burns run on the TUI so you can watch and steer one mid-flight. Every one-click way to spend or destroy something on that page now arms first.
+
+**Provider quota readings stopped lying and stopped blocking.** A reset time is an instant everywhere now, not whatever wording each CLI happened to print — which had left the entire claude family permanently unburnable behind a message that looked like a provider fault, and grok reporting a window that reset in 2002. Opening the Usage or Quota Burn page no longer waits 20–30 seconds on live scrapes: cached readings serve immediately and refresh behind you, a still-in-flight scrape renders as "reading quota…" instead of a verdict, and each provider card refreshes on its own instead of respawning all of them.
+
+**Apps stop reporting things that didn't happen.** A failed JIRA sprint fetch used to render as "No tickets assigned to you" and cache that answer for the life of the page; a failed archive fired a green success toast; a running Update vanished the moment you collapsed the row, inviting a second concurrent `npm install` against the same checkout. All three now say what actually happened — with retry where it helps, a page-level banner that survives navigation, and a server-side guard that refuses the duplicate dispatch. "Open in Xcode" resolves the real project on the server instead of guessing its filename, and unarchiving your last archived app no longer strands you on a blank page.
+
+**Agent completion is idempotent.** A completed TUI agent could be finalized a second time by the 15-minute health check — overwriting a success with `exitCode: 143` and requeueing work that had already shipped. The terminal write now returns early from inside the lock it already holds, a half-written archive can finish rather than blocking every retry, and the "does this process own the agent?" rule that was open-coded (wrong) at two call sites is one named predicate. A manually-triggered perpetual claim drain keeps draining instead of stalling after one item.
+
+**Writers Room and pipeline durability.** Storyboard scenes carry a durable id instead of an array index, so a reorder landing mid-write can't retarget a render onto the wrong scene, and a rejected write cancels the job it just queued. Concurrent renders no longer clobber each other's job ids. Regenerating over unsaved text shows you a diff and lets you keep your version, manuscript tabs mark which issues hold an unsaved edit, and a format switch flushes pending saves instead of discarding them. Text-stage generation streams its progress over SSE rather than spinning blind for minutes.
+
+**Music, City and audio.** Game studio music bindings publish into the game repo with the same provenance, overwrite consent and write serialization the artwork lane already had. CyberCity gained a manual soundscape override, moved its ambient music onto the audio clock so it stops drifting under load, and sheds two point lights on the low quality tier. The SongBook drum play-along makes sound on iPhone Safari again — iOS audio sessions are now arbitrated across the app so fixing this couldn't kill the microphone, and every resume path handles the non-standard `interrupted` state that used to leave a page silently "playing".
+
+**Composition over 1,000-line components.** Music Video, Round Editor, Universe Builder, the Sprites page, the Writers Room editor and the 987-line `/api/universe-builder` router all split along their real seams into named hooks, per-concern components and sub-routers — verified behavior-identical (the router split by resolving 520 method+URL combinations against both). Typing in the Writers Room no longer re-renders the storyboard sidebar.
+
+**Better audit (2026-08-03).** Unsaved edits can no longer be silently lost across the writing surfaces, eight City-scene components stopped leaking GPU buffers, touch targets across City/writers/music meet the 44px convention, and ~90 falsifiability-verified tests landed with it.
+
## Added
- **Quota Burn is now its own page (`Dev Tools → Quota Burn`) driven by one programmatic loop.** It used to be a `quota-burn` entry in each managed app's `taskTypeOverrides`, which meant the schedule, the provider windows, and the burn prompt were duplicated per app — and two enabled apps ran two independent loops racing for the same window budget, even though quota belongs to the machine, not to any one repo. There is now ONE install-level loop inside PortOS reading one machine-local plan (`data/cos/quota-burn.json`), with a full config surface: master switch, poll interval, and per-provider-family reset window / reserve / dispatch cap / priority.
@@ -60,3 +82,7 @@
- **Unarchiving your last archived app no longer strands you on a blank Apps page.** The Active/Archived toggle only rendered while at least one archived app existed, and `showArchived` was local state with nothing to reset it — so unarchiving the last one unmounted the only control on screen and left a permanently empty "No archived apps" card, recoverable only by navigating away and back. The filter now lives in the URL (`/apps?view=archived`), so the archived list is linkable and reload-safe; the toggle stays mounted while the archived view is open even once it empties (reading `Active (N)`), and the empty state gained a "Back to active apps" button. (#3434)
- **"Open in Xcode" opens the actual project instead of guessing its filename.** The button built `<display name>.xcodeproj` on the client and navigated to an `xcode://` URL, so any app whose display name wasn't byte-identical to its project on disk ("My Client" → `MyClient.xcodeproj`) got a path that doesn't exist — and a custom-scheme navigation reports nothing either way, so the click was a silent no-op, doubly so from a phone where the scheme isn't registered at all. The new `POST /api/apps/:id/open-xcode` resolves the real target the same way the Xcode script generators do (`deriveProjectInfo`: `project.yml` `name:` → the `*.xcodeproj` on disk → the sanitized app name), prefers a `.xcworkspace` over the `.xcodeproj` it wraps, and opens it on the machine Xcode is installed on. A `swift` SPM package — which has no `.xcodeproj` at all — falls back to its `Package.swift`, and a repo with none of the three comes back as a 404 naming everything it looked for, so the click always ends in a visible toast. (#3438)
- **Each provider card on the Usage page refreshes on its own.** Every family's reading is an independent 10-20s CLI/TUI scrape, so the single "Refresh" button made re-checking one provider cost a spawn for all of them — and reset every other card's reading age in the process. `GET /api/usage/providers` now takes `?family=<id>`, `getProviderQuotas({ family })` resolves just that card (the derived image-gen card included), and each card carries its own refresh control that swaps in only its own result. A family that no longer resolves — its provider was disabled since the page loaded — comes back as an empty list and the card is dropped rather than left with a reading it can never refresh again. The section button is now "Refresh all".
+
+## Full Changelog
+
+**Full Diff**: https://github.com/atomantic/PortOS/compare/v2.37.0...v2.38.0