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.34.0
Released: 2026-07-25
Highlights
- Sprite Manager grew into a full character-animation pipeline. Characters now start from a four-view turnaround sheet (so accessories stop flipping to the wrong side), derive reference art and directional anchors from it, generate and trim walk cycles, and compile/publish a runtime atlas straight into a managed game. Walk cycles gained variable frame counts and speed, jitter and drift fixes so the body actually stays put while limbs move, correction notes for steering a bad re-roll, and a proper Loop Trimmer workspace with full playback and scrubbing. Imported characters (from an external art pipeline) can now be re-derived, reopened, and unlocked instead of being permanently frozen, and a string of import/path bugs that left walk directions blank are fixed. Sprites also got its own page, a searchable library with rename/delete, and an inspectable asset browser with checkerboard transparency previews.
- A new 3D page turns gallery images into downloadable meshes. Built on Microsoft's TRELLIS.2, the page installs on-device (with automatic recovery from the "confetti texture" install failure and the missing-Metal-toolchain root cause behind it), renders a
.glbyou can orbit in-browser, and now uses a bundled studio HDRI and rebalanced lighting so the mesh is actually readable instead of overexposed. High-memory Macs get a sharper texture pipeline. - Layered Intelligence now watches whether its approved work actually ships, not just whether its own reasoning runs succeed — a loop that keeps leaving approved proposals unfinished now throttles itself instead of piling on more work. Its PR watcher also merges a healthy, green-CI PR directly instead of always spinning up a follow-up agent.
- CoS task completion is more explicit and less likely to strand a PR. Choose "review then merge," "merge on green CI," or "leave open" per task instead of inferring it from a checkbox — and a task that opens a PR with no reviewer configured now actually gets merged once CI is green, instead of sitting open forever.
- Chiptune music generation and Grok-backed image/video generation round out content creation: describe a loop and get a playable NES-style score with two-channel drums and bass; Grok can now render images and 6-/10-second videos alongside the existing local and Codex backends. A new Three.js Models page turns any gallery image into a live, orbit-able procedural 3D scene.
- Security hardening: provider API keys are now checked against an SSRF/exfiltration guard before being attached to outbound requests, Privacy Center link fields reject
javascript:/data:values, the Autofixer sidecar now honors the same password gate as the main dashboard, and a sweep ofnpm auditfindings across all three workspaces (root/server/client) is clean, backed by a new drift guard that catches a shared dependency pin going stale in only one workspace. - A broad accessibility pass added proper labels,
switchsemantics, and visible focus rings across dashboards, media pickers, and sprite/music workflows, and fixed ~20 "choose a file" buttons that silently did nothing when clicked from a remote browser (most notably Safari/WebKit on an installed PWA). - Large internal refactor wave: several of the codebase's largest files (a ~2,875-line canvas component, a ~1,990-line video-gen page, a ~2.6k-line editorial/Layered-Intelligence/autopilot trio, the boot sequence, the agent-lifecycle module) were decomposed into focused modules with no behavior change, and the
server//client/lockfiles are now tracked in git so Dependabot can finally see the ~560 transitive dependencies it was previously blind to.
Layered Intelligence
- [issue-3061] Healthy agent-created pull requests now merge on the watcher tick instead of spending another agent lane — when PortOS opens a GitHub PR with no review loop, the scheduled PR watcher now reads its CI and merge state: a clean PR whose checks are all green merges directly, while an actual validation failure or merge conflict still starts the same merge-only follow-up agent as before. PRs waiting on CI remain quiet for a bounded number of checks; if they never settle, PortOS stops polling them and posts a high-priority notice with a link to the PR.
- [issue-3019] Layered Intelligence now notices when approved work is not being delivered — its self-check now tracks approval-to-completion separately from reasoning-run success, so a loop that completes its own runs but repeatedly leaves approved proposals unfinished stops filing self-improvement work until delivery recovers. A five-approval floor keeps a fresh loop from being gated on cold-start noise, and the reasoner-facing notice identifies whether run health, delivery health, or both caused the guardrail.
Universes
- Upload an art reference to a universe bible and decide whether its style should shape the world — a new Art style references section accepts an image from the gallery or your device, asks a vision-capable model for an editable title and recreation prompt, and previews the exact style-notes and positive/negative guidance diff before anything changes. You can keep the analyzed image as a reference without changing the guide, or adopt the proposed style and add the reference together in one save. References and their gallery images travel with the universe across supported sync peers.
3D
- [issue-3033] 3D setup notices now stay in sync with each model's Hugging Face requirements — the server now describes which gated repositories each image-to-3D target needs, so the 3D page, install guidance, and render-error help all draw from the same source. Adding a target with different (or no) gated dependencies no longer risks showing stale setup instructions.
- Mesh preview display controls moved out of the render, and the lighting sliders now actually change the lighting — the settings panel was an always-mounted overlay pinned inside the canvas, covering the upper-right quadrant of every model; it now lives behind a small toggle in the corner and expands as a strip below the render, so it can never occlude the mesh. Two of the controls it exposed were also effectively inert. The procedural studio environment lit the model at full strength and drowned out Ambient/Key/Fill — a new Environment slider dials the image-based lighting down (to 0 for lights-only), and the three light defaults were rebalanced against it. Show HDRI background also revealed the procedural rig itself as hard-edged white planes on gray; the viewer now loads a bundled CC0 Poly Haven studio HDRI instead, shows its softly blurred background by default, and remains fully functional offline. The scene-level background color was dropped in favor of the surface's CSS color it duplicated — a scene background raced the environment's own
scene.backgroundsave/restore every time the HDRI toggle or the color picker changed. - Generated meshes are easier to inspect and get a denser texture atlas on high-memory Macs — the GLB preview now has a background color picker, and a bundled studio HDRI makes TRELLIS's metallic PBR surfaces readable instead of turning details such as dark glass into black patches. Newly generated models use a 4K texture bake when at least 48 GB of unified memory is available (four times the 2K texel budget); supported 24 GB systems keep the proven 2K path.
- TRELLIS.2 models no longer render with transparent holes, and high-memory Macs use the sharper texture pipeline — existing generated meshes now display as solid in the 3D viewer, while newly generated GLBs are normalized to the opaque material mode TRELLIS intended. Macs with at least 48 GB of unified memory now use 1024-cascade generation for better surface-detail placement; supported 24 GB systems stay on the proven lower-memory lane. Re-rendering the same record also refreshes the viewer immediately instead of showing its URL-cached previous mesh.
- [issue-3041] Installing TRELLIS.2 now fetches the Apple toolchain it needs, instead of telling you to run a command — #2952 made the "correct shape, confetti surface" problem visible, but the fix was still a terminal command you had to copy out of a warning and run yourself — leaving every new install one manual step away from bad-looking renders. Installing (or repairing) TRELLIS.2 now downloads Apple's Xcode Metal Toolchain itself when it's missing, before the setup that needs it, so a fresh install produces properly textured meshes with nothing extra to do. No password is required and the download is skipped entirely when you already have it. Repair install on an existing degraded copy now genuinely fixes it rather than re-running the same broken setup. Two honest edge cases: if the download fails the install continues anyway (your geometry is unaffected, and the finished install tells you textures will be reduced), and on a Mac with only the Command Line Tools — where nothing PortOS runs can fetch the toolchain — you get a note naming Xcode as the prerequisite and no Repair button that would only fail.
- [issue-2952] The 3D page now catches the install problem that made meshes come out as colorful static — a TRELLIS.2 render could produce a perfectly accurate 3D shape wrapped in a scrambled, speckled surface, with nothing anywhere saying why. The cause is an install that only looked finished: TRELLIS.2's setup builds its high-quality texture painter from Metal source, and on a Mac without Apple's Xcode Metal Toolchain that build quietly fails, the setup still reports success, and every later render silently falls back to a low-resolution painter that can't cover a detailed mesh — so the shape is right and the paint job is confetti. PortOS now checks for the Metal Toolchain before you commit to the multi-hour install and warns you if it's missing, verifies after installing whether the good texture painter actually landed, and shows any already-installed copy as Ready · degraded textures with a plain explanation and a one-click Repair install that rebuilds just the missing piece (your downloaded models are kept). Renders also now bake textures at the highest resolution TRELLIS.2 offers, so surfaces hold more detail either way.
- [issue-3032] The 3D page now uses the Hugging Face token you already saved — and lets you add one right there — if you'd already given PortOS a Hugging Face token (for gated image models or local model downloads), the 3D page ignored it: it never handed the token to the render, so TRELLIS.2's first run still failed on the two gated models it downloads, and the page kept telling you to go authenticate in a terminal. Your saved token now travels into the render, and the notice reads your actual setup: with a token in place it collapses to a one-line confirmation telling you where that token came from, and with none it offers a paste-and-save field instead of terminal instructions. Either way the two gated models stay linked, since their terms still have to be accepted on your Hugging Face account — a token alone doesn't grant access.
- [issue-2981] Generate a 3D mesh from the 3D page — with a heads-up about Hugging Face access — the Generate 3D button on the 3D page is now live: pick a source image, click Generate, watch on-device progress, and the finished
.glbrenders right there in the interactive viewer (its URL is shareable and reload-safe). If a render fails, the reason now shows inline — including the exact steps when TRELLIS.2 needs Hugging Face access. And before you ever hit that wall, the page and installer now tell you up front that TRELLIS.2 downloads two gated Hugging Face models on first render (DINOv3 and RMBG-2.0) and links you to accept their terms and sign in (huggingface-cli loginor anHF_TOKEN). - [issue-2952] Turn a rendered image into a downloadable 3D mesh (create/render backend) — once TRELLIS.2 is installed, PortOS can now take one of your gallery images and render it into a real 3D model (a
.glbmesh with PBR textures) entirely on-device. Each render is saved as its own record you can list, re-render, download, or delete, and it tracks live status (generating → ready, with progress) and its render history — the backend "create a 3D model" path the 3D page's UI drives. The render only ever runs when you ask for it (never in the background), and is refused with a clear reason if the model isn't installed or your hardware can't run it. - [issue-2953] Install image-to-3D models from a new 3D page — a new 3D page under Create lists the available image-to-3D models (starting with Microsoft TRELLIS.2) and shows each one's state at a glance: Ready, an Install button, or a note explaining why your hardware can't run it (e.g. needs an Apple Silicon Mac with enough memory). Installing runs entirely on-device with a live progress log — the same in-app install experience as the image generators — so you never touch a terminal. Reachable from the sidebar, ⌘K, and voice. (Turning one of your rendered images into a 3D mesh from this page lands next.)
- [issue-2952] TRELLIS.2 install now survives network hiccups — the multi-gigabyte TRELLIS.2 install pulls from several code repositories, and a single dropped connection mid-download used to abort the whole thing with a cryptic error. The installer now automatically retries a step that fails from a transient network drop (with a short backoff), and already-downloaded pieces are kept — so a flaky connection resumes instead of starting over. If it still can't finish, the error now says plainly that it was a network hiccup and that clicking Install again picks up where it left off.
- [issue-2953] Pick a source image and preview a mesh on the 3D page — the 3D page is now a generation workspace, not just an install screen. Search your render history for a source image with the built-in picker — or open one straight from any render's Send to 3D action, which now lands here — then choose which image-to-3D model to use. Your source image and model choice live in the page's address, so a specific setup is shareable and reload-safe. When a mesh is produced it renders in an interactive
.glbviewer you can orbit and zoom, with a one-click Download .glb. The Generate 3D button stays disabled with a plain reason (pick an image, install the model, or "generation lands with the on-device runner") until the render pipeline is wired up next. - [issue-2972] Deleting a 3D render mid-generation now stops it and cleans up — if you delete an image-to-3D record while its mesh is still rendering, PortOS now terminates the on-device render process right away (instead of letting it keep burning your GPU to finish a model you no longer want) and removes the orphaned
.glbit may have left on disk. Deleting a record that isn't rendering is unchanged. - [issue-2952] On-device TRELLIS.2 renders now land correctly and show real progress — validated the runner against the real TRELLIS.2
generate.pyon Apple Silicon and fixed two things that showed up only on a live render: the finished.glbnow saves to the exact spot PortOS serves it from (previously it could land one folder over and show as missing), and the progress bar now moves through the real stages of a render — loading the model, sampling, decoding the mesh, baking textures, exporting — instead of sitting at 0% for the whole multi-minute render and then jumping to done. - [issue-2952] Clear message when a 3D render needs Hugging Face access — TRELLIS.2 pulls a gated model from Hugging Face the first time it runs, so a render on a machine that isn't signed in to Hugging Face used to fail with an unhelpful "generate exited 1". PortOS now recognizes that specific failure and tells you exactly what to do: accept the gated model's terms and sign in to Hugging Face (set an
HF_TOKENor runhuggingface-cli login), then try again.
Brain
- Pasting a bare URL into the Brain inbox now saves it as a link — capturing a thought that is nothing but a URL used to spend an AI classification call on it and then file it as an idea or an admin item, leaving the actual bookmark nowhere. A capture whose entire text is a URL now lands in Brain → Links exactly as if you'd added it there — hostname (or
owner/repo) title, GitHub detection, and the same automatic clone for a repo — with no classifier call at all. The inbox still shows the capture, marked filed to Links with a View button that opens the Links tab, so a mis-detected one can be corrected with Fix (which moves it to the real destination and removes the bookmark it created). A URL wrapped in prose ("read this later https://example.com") is still an ordinary thought, as is a URL you capture with Creative on. Re-pasting a URL you already saved reuses the existing bookmark instead of failing. The dashboard's Quick Capture box, which handled this on its own, now uses the same path — so it, voice capture, and the inbox all behave identically.
Internal
- [issue-3080] Image-to-3D target registration now owns install and render dispatch — availability, installed-state, install, and render for every image→3D target now resolve through one adapter registry (
server/services/imageTo3d/adapters.js), keyed by target id. Previously the TRELLIS.2 install route and the model-render dispatcher each hard-codedtrellis2-specific branches, and the registry's descriptor pointed at a nonexistenttrellis2Install.jsmodule.GET /api/image-to-3d/trellis2/installkeeps working as a compatibility alias for the new genericGET /api/image-to-3d/targets/:targetId/install, and the 3D page no longer hard-codes a TRELLIS-specific install URL. Registering a second target is now one adapter entry, not new branches in the route or model service — proven with tests that register a lightweight fake target and drive list/install/render through it. - [issue-3034] Hugging Face-backed child processes now build their environment through one shared helper — local image, video, music, MIDI, LoRA, and 3D workflows consistently preserve required system variables while applying resolved Hugging Face credentials.
- Agent guidance split into per-directory and on-demand files — the root
CLAUDE.mddrops from 51k to 32k characters — the root memory file loads in full on every session, and it had grown past the size where Claude Code warns about a single memory file (~40k characters), so a third of what every session paid for was guidance that only applies in one directory or during one task. Content the codebase already answers on its own is gone: theserver//client/src/directory tour (lsshows it), the Tailwind design-token list (defined inclient/src/index.css, and the copy had gone stale — it omitted--port-accent-2), the standardnpm start/npm run dev/pm2 invocations (inpackage.jsonscripts), and the slashdo submodule mechanics (in.gitmodules). One stale claim was corrected rather than moved: the architecture intro still said data persists to JSON files indata/, contradicting the Storage backend policy further down the same file. The rest moved to where it loads on demand —client/src/CLAUDE.md(UI conventions, routing/deep-linking, the sharedDrawerconvention) andserver/CLAUDE.md(schema parity, write serialization, peer fan-out in tests, prompt-template migrations) load only when working in those trees, while three new project skills (portos-add-page,portos-socket-ui,portos-file-issue) keep just a one-line description resident and load their bodies on invocation. The backup service's rsync-anchoring failure mode moved intodocs/BACKUP.mdbeside the exclude-tier documentation it belongs with. Every safety-critical prohibition, the Security Model, the Storage backend policy, the AI Provider Usage Policy, and the Sensitive Data & Privacy rules stay in the always-loaded root file — a "never do X" rule must never move somewhere it might not be loaded when it matters. Each migrated block was moved verbatim, with a one-line pointer left behind at the source. - [issue-3016] The sprite atlas grid can now pack multiple animation tracks of differing lengths — the runtime grid was walk-shaped by construction:
atlasColumns()was literally['idle', ...walkLabels], and the compiler refused any set whose directions disagreed on frame count. Both were right for a one-animation world and both blocked a second track — a four-frame action beside a twelve-frame walk needs variable-length column spans. A new sharp-free leaf,server/services/sprites/atlasGrid.js, owns the grid the compiler (atlas.js, which imports sharp) and the published sidecar (atlasLayout.js, which must not) now share:buildAtlasGridemitsidlefirst and then each track's contiguous span in registry-registration order, returning the flatcolumnslist and the{ start, count }tracksdescriptor together so the two can never drift;resolveTrackUniformityresolves one track's frame count and fps from its per-direction rows, asserting the 8 facings agree while never comparing one track to another and range-checking against the named track's #3015 registry row rather than the global walk-shaped 6–16 / 4–24 constants. That within-track-not-between-track rule is the central semantic change. The compiler persistsgeometry.tracksinto the manifest and pointer,buildAtlasLayoutrepublishes it, and the pre-pixel idempotency check (which #2986 already taught to compare the column list) now compares the track set too, so re-partitioning the same columns into different tracks correctly invalidates instead of reading as up to date. Legacy is fully preserved: a grid with notracksfield falls back to the historical column-name derivation — so pre-#3016 atlases stay idempotent instead of recompiling their pixels forever — a pre-#2986scannerplaceholder still describes itself honestly, and walk keeps its exact historical column labels. Absent and present-but-empty stay distinct:{}is a descriptor that fails to describe the grid and is refused, never silently re-derived. No migration is needed (the field is additive and every reader has a fallback), and no second track is registered here — the multi-track paths are proven against a synthetic registry TABLE (the injected-table idiomassertAnimationTrackRowsalready uses, so a synthetic row flows through exactly the lookup, ordering and unknown-id boundary a real one would), since shipping a real second track is #3018's job. - [issue-3015] Per-track animation registry — frame-count/fps bounds stop being walk-shaped — the authoring range (
6–16frames,4–24fps) was global and defined once inserver/services/sprites/walkBounds.js, so it described every animation as if it were a walk cycle; a 3-frame ambient loop or a 4-frame scanner action sits below walk's floor of 6 and was literally unrepresentable. A new sharp-free leaf,server/services/sprites/animationTracks.js, holds one row per known track ({ id, label, directional, min/max/defaultFrameCount, min/max/defaultFps, contractFrameCountField, contractFpsField }), withwalkas its only row carrying today's exact values.walkBounds.jskeeps every historical export as a thin re-read of that row, sowalkPostprocess,atlas,walk,server/lib/validation.js, and the client mirror need no changes.resolveAnimationTarget/targetDrift/withTrackTargetnow range-check against the named track's row (and read the app rung through the field names that row declares, instead of hard-codedwalkFrameCount), and the Zod ranges are built byspriteTrackFrameCountSchema(track)/spriteTrackFpsSchema(track)factories. An absent track resolves towalk— which is what keeps every existing call site identical — while an unrecognized one throws rather than silently validating against walk's range. The registry validates its own rows at module load (thenavManifest.js/catalogTypes.jsidiom), so a half-declared track blocks boot with a message naming the field instead of surfacing later as aNaNframe count. #2985's invariant is preserved: an unrecognized sibling track key still round-trips untouched on write, even though writing to an unknown track is now refused. Pure refactor — walk behaves identically end to end; no second track is added here. - New
server/lib/staticImportGraph.js— one static-import scanner for the structural test guards —agentImportCycles.test.js(the agent-lifecycle acyclicity guard) and the new sprite guard each had their own copy of the ES-module import regex pair and graph walk, which is how a structural guard rots: a fix to one parser silently under-reports in the other. Both now callstaticImportSpecifiers/staticImportClosure. The sprite guard also asserts the property that actually matters —server/lib/validation.js's whole import closure reaches no native image dependency — rather than only the three leaf modules, with a positive control pinning that the walk genuinely traverses. A companion parity test pins the client's mirrored walk bounds (spriteTrimmer.js,PublishWorkflow.jsx) against the registry row, so the first real per-track bounds change can't silently desync the pickers from the server's range. - [issue-3001] Approving and compiling a walk direction now agree on what "valid packaged frames" means — the check that a direction's per-frame images are all present was written twice: the cheap gate that runs when you approve a direction only checked the files existed (and, for an imported character, could silently drop a frame whose path it couldn't re-anchor — understating the count in its own error), while the stricter gate that runs when you compile the atlas also verified each frame's checksum and gait-phase order. So a direction could pass approval and then fail compile for a frame reason the approve step was meant to catch. Both now call one shared
verifyPackagedFrameshelper: approve runs its existence-only prefix (resolving imported frame paths the same drift-tolerant way the clip and strip checks beside it already do, and counting an un-re-anchorable path as a failure instead of dropping it), and compile runs the same resolution plus the checksum/order checks — reading each frame's bytes exactly once. The approve gate is now a strict prefix of the compile gate, so the two can no longer disagree. - Shared
ui/FilePickerButton+ two hygiene guards for file pickers — 28 call sites across the client hand-rolled the same hidden-<input type="file">idiom; they now shareclient/src/components/ui/FilePickerButton.jsx(sr-only-but-focusable input + native<label for>activation, extra props spread onto the label so a drop zone can passonDrop/onDragOverand a forwarded ref, and an async-aware value clear that waits for the handler to settle before emptyinginput.files). Because the failure only reproduces in WebKit-as-installed-PWA — invisible to lint, CI, and local testing —a11yConventions.test.jsgains two cases mirroring the existingcrypto.randomUUIDlint precedent: notype="file"input may carryhidden/aria-hidden/tabIndex={-1}, and no.current.click()may appear in a tracked.jsx. server/lib/uploadLimits.jsis the single source of truth for upload size caps —express.json's limit lived as a bare'55mb'literal inserver/index.jswhile four routes each re-derived their own byte cap against it, two of them landing on unreachable values (100MB, 50MB). The limit and the base64-derived file cap now live in one module (mirroring thelib/ports.jspattern), consumed byindex.jsand every upload route;uploadLimits.test.jsasserts the derivation actually fits, that no route re-hardcodes a cap, and that the client mirror inutils/fileUpload.jsagrees.- The Agents page no longer lists macOS's native text-caret helper as a "Cursor" agent — the running-agents scan matches process names by substring, so
cursoralso matchedCursorUIViewService— a macOS TextInputUI framework helper (the blinking text caret), not the Cursor AI editor — and it showed up as a running agent. The scan now excludes system framework / XPC-service helpers (paths under/System/Library/,*.framework/,*.xpc/) alongside the existing.appbundle exclusion, so only real agent CLIs appear. - [issue-2958] Polyfill jsdom
scrollIntoViewin the client test setup — jsdom doesn't implementElement.prototype.scrollIntoView, so arequestAnimationFramecallback that calls it (e.g.Tribe.jsx,CmdKSearch.jsx, and other components) could fire after its test unmounted and turn into an unhandled error that failed the entire client suite despite every assertion passing — an intermittent CI flake that forced no-op re-runs on unrelated PRs.client/src/test/setup.jsnow installs a guarded no-opscrollIntoViewstub alongside the storage polyfill, killing the whole class of flake in one place. Production is unaffected (the stub only fills the jsdom gap). - [issue-2951] Image-to-3D target registry (foundation) — added a pluggable
server/services/imageTo3d/targets.jsregistry (mirroringimageGen/modes.js) that models image→3D models as selectable targets with hardware-gated availability resolution, TRELLIS.2 registered as the first target, and a read-onlyGET /api/image-to-3d/targetsendpoint. Backend groundwork for the forthcoming 3D page under Create (#2952 install/runner, #2953 page/viewer, #2954 CUDA lane); no user-visible surface yet. - [issue-2952] TRELLIS.2 local runner scaffolding — added
server/services/imageTo3d/trellis2.js: on-disk install detection, pure install/generate command builders, a format-agnosticgenerate.pyprogress parser, and a guarded generate runner (throws unless installed; never auto-runs).GET /api/image-to-3d/targetsnow also reports each target'sinstalledstate. The real ~15 GB install + live GPU render are user-triggered and validated hands-on (remainder of #2952); no user-visible surface yet. - [issue-2952] TRELLIS.2 SSE install endpoint — added
GET /api/image-to-3d/trellis2/installandinstallTrellis2(), which clone the Apple Silicon MPS port and run itssetup.shwhile streaming staged progress (stage → log → complete/error). Gated on hardware support (refuses on non-Apple-Silicon / insufficient memory), single-flighted against double-clicks, and canceled if the client disconnects. The real ~15 GB download only fires on this explicit user request (never at boot); the orchestration is mock-tested. No user-visible surface yet (the install button lands with the 3D page, #2953).
Layered Intelligence
- [issue-3014] See how many of the loop's approved proposals actually got delivered — the Proposal outcomes panel showed only how many hand-offs succeeded once attempted, which read as a perfect score even when most approved proposals were sitting untouched. It now also shows an approvals delivered rate measured against every proposal you approved, so work that was approved and then quietly lost is visible instead of hidden behind the attempted-only number. The loop sees the same two rates (overall and per scope) when it reasons about what to propose next, so it can tell "you rejected my ideas" apart from "my ideas were accepted and never landed" and calibrate accordingly.
Managed apps
- Mixed web/native apps now keep their standard browser Launch and get a separate game action — PortOS detects Godot projects without replacing their existing web ports or processes, then shows a configurable Godot button that starts the game once with live launch output and leaves it stopped when its window closes.
- [issue-3025] Managed-app logs now follow the PM2 instance that actually owns them — an app configured with its own PM2 home no longer shows an empty log in the Apps detail page or its HTTP log views. The selected app carries its identity into the Processes tab, and older process-only log requests still find a registered app's custom home automatically; ordinary default-home apps behave exactly as before.
- [issue-3024] Live app logs can now appear in both the Processes tab and launch panel — a managed desktop app no longer hides its launch-progress panel when you open Processes. Each panel now owns its named PM2 log stream, so closing one leaves the other tailing normally; replacing or closing a stream also cannot orphan a background
pm2 logsprocess. - [issue-2991] Starting a desktop app now shows what it's doing, and quitting it stays quit — pressing Start on a managed desktop app (a game binary) opens a live panel showing the build output as it compiles and imports assets, so a launch that takes a minute before a window appears no longer looks like nothing happened. The panel switches from "Launching" to "Running" once the app is up, and you can dismiss it any time without stopping the app. Closing or force-quitting the app's window is now treated as the normal end of a session everywhere: PortOS will no longer silently relaunch the window you just closed, and quitting no longer shows up as an errored process, flips your dashboard or CyberCity health to critical, or raises a failure alert. An app that runs in its own PM2 instance streams its build output into that panel correctly, rather than showing it empty.
Music studio
- [issue-2912] Chiptune score edits on two synced machines now show up as a real conflict — if you compose a chiptune score for the same track on two federated installs before they sync with each other, that divergence now surfaces in Sharing → Conflicts (so you can review and choose which version to keep) instead of one edit silently overwriting the other.
- [issue-2911] Compose looping 8-bit game music from a prompt — the Track editor gains a "Chiptune score" generation mode alongside the on-device audio models: describe the music, pick any configured AI provider/model, and it composes a structured NES-style score (two pulse channels, triangle bass, noise drums) that plays as a seamless loop right in the browser. Revise it conversationally ("more drums", "make it spookier") or start fresh, render takes into the track's regular render history as audio loops, and publish straight into a managed game app's repo (default
game/assets/music/) as a game-ready OGG plus its editable score source — so a Godot game can drop the loop in as background music. The provider pin and publish target are remembered between sessions.
Sprite Manager
[issue-3047] Re-importing a character now keeps its walk cycles intact — source pipelines may still name animation runs under
grok/, but PortOS now always stores imported runs under its neutralruns/layout and rewrites the copied manifest paths to match. Re-importing to recover a source clip can no longer turn approved walk cards blank; the importer also refreshes the affected run, selection, and walk-set checksums so those records remain internally consistent.[issue-3045] Places and objects can now export a compact ambient loop — generate and freeze one at-rest main reference, explicitly request one image-to-video loop, review and approve its locally packed 2–6 frames, then compile the result into an atlas whose idle and ambient cells live on row 0 while rows 1–7 remain transparent. The published layout names the single-row
ambientspan and carriesambientFrameCount, so a consuming app can sample row 0 at its own timing without assuming a character-facing walk cycle.[issue-3018] The scanner action is now a real named animation track, from direct render through publish — characters can generate a short directional scanner sweep only when you press Generate in Sprite Manager; the Grok clip is then deterministically unpacked into a 2–8-frame scanner strip (4 frames at 6fps by default), reviewed and approved per facing into an independent finalized scanner set. Atlas compilation verifies that set's selection, manifests, and frame checksums alongside the unchanged walk evidence, and writes its
scanner-00…span beside the walk span into the published layout. A walk remains a walk: its routes, bounds, storage, legacy layouts, and distance-driven runtime behavior are unchanged, while consumers can now resolve the scanner by its named span instead of guessing a trailing column.Steer a single turnaround candidate with a correction note, without re-rolling the whole sheet — each turnaround candidate now has its own Correction box and a Re-process with note button: describe what's wrong with that one attempt ("add the missing sleeve pocket") and it re-renders image-to-image from that exact candidate with the fix appended to the prompt, instead of generating a fresh sheet from scratch and hoping the same issue doesn't recur.
A locked turnaround can now be reopened and regenerated without losing its history — if you spot a bad side or inconsistent detail after freezing a character’s turnaround, the Reference Set now offers Unlock turnaround behind a confirmation that names the full consequence: because the main reference, all 8 directional anchors, and their walks descend from that sheet, they reopen together. Any approved walks are invalidated before the reference pointers reset, so stale animation cannot survive the revision. The old turnaround, main, anchors, rendered clips, and runtime atlases remain as versioned history; replacements lock at the next
vNfilename. A chroma key PortOS auto-picked for the rejected sheet is chosen afresh, while a key you explicitly pinned stays pinned.[issue-3017] Sprite sheets can now describe an animation that has no facing — the groundwork for animating places and objects — every animation in a sprite sheet was assumed to be a character walk: eight rows, one per direction. That is wrong for most of what would come next. A tree moving in the wind, water, a flickering lamp — none of them face anywhere, and a sheet that insisted on eight facings for them would be seven-eighths empty with no way to say so. An animation now states whether it is directional, and one with no facing occupies a single row that the published layout file marks as such (
"rows": 1), so a game reads that one row no matter which way anything is pointing instead of sampling seven blank ones. Everything still ships as one sheet per record — a second image would double what a game has to load and bind, and the unused cells compress to almost nothing. The rule that all of a walk's directions must agree on frame count and speed now applies within each animation rather than across the whole sheet, so a three-frame ambient loop can sit beside a twelve-frame walk. The other half is the gate: animation was refused outright for anything that wasn't a character, which is why Places and Objects had no animation path at all — that check now asks which animations a record kind can actually carry, so admitting those kinds becomes a matter of adding the animation rather than unpicking the refusal. To be clear about what this does and doesn't do: it is the sheet-and-publishing groundwork, not a feature you can use yet. No animation that places or objects can carry exists so far, and rendering and approving one is still walk-shaped — that work is tracked separately. Nothing changes for an existing character: walks compile to byte-identical sheets, already-published sheets are untouched until you republish, and the layout file gains the new row field additively.[issue-3021] Walk cycles no longer jitter — the character stays put while only the limbs move — every frame of a walk was being positioned independently of its neighbours, so the character slid sideways as the arms swung and bobbed up and down when a stray speck of leftover background sat below the feet. Two separate things caused it. First, each frame was horizontally anchored on wherever its own hips happened to measure, which drifts as the legs scissor and could flip by a pixel on alternating frames — a walk rendered in place has a fixed hip position by definition, so all frames of a direction now share one. Second, the compiler that builds the final sprite sheet was re-positioning every cell from scratch on a different rule than the packer had used (the silhouette's centre rather than the hips), which threw away the alignment and let a swinging arm drag the whole body with it — it now carries the packer's anchor through instead. The feet also now land on the ground line based on the actual sole rather than the single lowest visible pixel, so one leftover speck of background can't lift the body — at both stages, since fixing only the first was silently undone by the second. The standing (idle) pose is anchored the same way as the walk frames now too, so a character no longer pops sideways the moment it starts or stops walking. Feet still sit exactly on the ground line in every frame, so nothing changes for a game using these sheets. Existing walks keep their packed frames until you reprocess them — but simply recompiling one picks up the corrected alignment and saves it as a new atlas version, so you can fix a character's jitter without re-rendering anything.
[issue-3020] Reprocessing a walk at a new frame count now updates every preview immediately, instead of showing the old art — re-deriving a direction from 8 frames to 12 left the loop preview playing a violently jumpy, mis-centered animation: it had already picked up the new 12-frame timing, but your browser was still painting the previous 8-frame image, so it stepped 12 times across a picture that only had 8 poses in it. It looked like the sprite had been packed off-center — the packed art was fine all along, and reloading the page fixed it. Every sprite asset's address now carries a fingerprint of its contents, so the moment a reprocess changes the art the loop preview, the Loop Trimmer, and the asset browser and inspector all repaint on their own. That last part matters because the same reprocess also rewrites the individual pose frames and the contrast review sheet — the very things you'd open to check whether the strip really was repacked, which until now kept showing you the pre-reprocess art. This also covers a reprocess that changes the art without changing the frame count (a different cycle window, different background-removal settings), which previously went unnoticed entirely — and because the fingerprint only changes when the art does, unchanged assets are still served from cache rather than re-downloaded over Tailscale.
[issue-3022] Walk cards now show the clip length grok actually delivered — the Clip picker offers 6s and 10s, and it turns out those really are the only two lengths available: asking for a shorter clip to save render time doesn't work, because grok renders 6 seconds regardless and charges the same for it. Rather than leave that buried in a code comment (where it had already drifted into two comments claiming opposite things), each walk direction now reports the length of the clip it actually got, measured from the file — and says so in amber if that differs from what was requested. So if grok's options ever change, you'll see it on the card instead of having to guess.
[issue-2980] See every frame a walk's video produced — and rebuild the loop at a new frame count without re-rendering — the Loop Trimmer could only drop columns from a strip that was already packed, so an 8-frame walk could never become a 12-frame one there: the extra source frames were thrown away at pack time and nothing in the workspace showed they had ever existed. The trimmer now has a Source frames section listing every frame extracted from that run's clip (typically ~70 at 12fps), with the gait cycle the packer picked marked in amber and the frames that became the strip's columns highlighted — so the headroom above the current count is visible at a glance. A Re-derive from clip control beside it repacks the loop from that same on-disk video at a new frame count / speed, with no AI call and no new render; the frame count and speed are the walk set's shared cycle target rather than a free per-run range, since every direction of one walk has to agree for the atlas to compile, and changing them says so before it retargets the set. A run whose extracted frames were cleaned up (which is every imported run — the importer doesn't copy them) says so and offers a one-click "Extract frames from clip" rather than quietly running ffmpeg for every direction you happen to click through; an approved direction or a frozen set offers the matching inline Reopen / Unlock instead of failing on click; a run with no clip at all explains that in one line rather than showing an empty grid, and names the right remedy for how it got there; and if the frames on disk turn out not to be the ones the strip was packed from, the cycle markers are withheld rather than pointing at the wrong frames. Re-deriving an imported run also works now — its run id was rejected by the reprocess endpoint before it ever reached the service that #2993 taught to handle it.
[issue-3004] Turnaround sheets stop mirroring the front view, so a front-worn bag no longer ends up on the character's back — the back panel of a generated turnaround sheet was often just the front figure flipped left-to-right, which meant anything mounted on the front of the body (a hip bag worn at the front, a chest pack, a belt buckle) reappeared on the character's back in the rear view, and the same mistake carried into any single rotated view derived from the sheet. The old instruction only pinned accessories to the same anatomical side — a rule a mirrored figure satisfies perfectly, because the bug is on the front/back axis, not left/right. The sheet prompt now states that the panels are one character physically rotated about a vertical axis and that no panel may be a flip or copy of another, each derived view is told it is a rotation rather than a mirrored copy, and every facing carries its own rule for what that angle hides: a rear view hides front-mounted gear (keeping only what genuinely wraps around, like a strap crossing the back) and shows no face or front closures; a front view hides backpacks and back-slung weapons; each profile hides whatever sits on the far side of the torso — hedged for the diagonal views, where a 45-degree turn only partly hides things, so gear doesn't pop in and out as the sprite rotates. The diagonal views are also now told to interpolate between the two sheet panels they sit between, instead of being pointed at a panel the four-panel sheet doesn't have. The front/back panels also now say where a right-hip item lands on screen once the character turns, so "same side" can't be satisfied by leaving it in the same pixels. The walk-video step is told not to invent gear the anchor hides mid-loop.
[issue-2993] Imported characters can finally be re-derived — smoother walks, and an atlas you can compile here — a character brought over from a source art pipeline was frozen the moment it arrived: Unlock, Reopen and Compile all refused it outright, so an imported 8-frame walk could never be brought up to 12 and its atlas could only ever be re-published, never rebuilt. That refusal was written when the import genuinely left nothing behind to work from — but the importer now copies each direction's source clip, so it had become a lie. Those actions are now gated on whether the clip is actually there: a direction with its clip on disk reopens and reprocesses at any frame count and speed, with no new render and no new spend, and the buttons appear instead of being hidden. A direction with no clip is still refused, but now says so plainly and tells you to re-import the character. Compiling is likewise per-direction: the atlas names the directions still packaged by the source pipeline instead of refusing the whole set, so an imported character becomes compilable one direction at a time as you re-derive them — and approving a direction whose packaged frames were never imported is now caught up front, rather than surfacing much later as an unexplained compile error.
[issue-2996] A character you'd started but not locked now begins at the turnaround sheet too — when turnaround sheets landed, characters already in progress kept the old flow: they'd still ask for a main reference first, and only pick up sheets afterward. Now a character that hasn't frozen anything yet simply starts at step 1 like a new one — nothing of yours is lost, because nothing was locked. Characters that have frozen a main reference are untouched: their locked artwork stays exactly as it is, and they still backfill a sheet from it. Uploading a design image is now accepted only on the turnaround step, since that's the render it actually seeds — the main reference and every anchor are drawn from the sheet, so attaching a separate image to them has nowhere to go and is rejected with a clear message.
[issue-2982] Publishing an atlas your game can't read now stops instead of silently breaking it — the atlas PNG used to be the entire export: nothing described how many walk frames were in it, so a game with an 8-frame walk baked in as a constant would happily accept a 12-frame publish and then draw the wrong frames from the wrong columns forever, with no crash and no log. Two things fix that. A publish target can now declare the grid it was built against (
runtimeContract: walk frame count, cell size, column count), and a publish whose compiled atlas disagrees is refused with a message naming both numbers — "Atlas has 14 columns (12 walk frames) but Example App expects 10 (8 walk frames)" — plus the two ways to resolve it. And every publish now writes a small….layout.jsonfile beside the atlas describing the grid PortOS actually produced: cell size, ordered column names, per-track column spans (so a future multi-frame scanner or ambient action is additive, not a rewrite), row order, and the atlas checksum — so the game can resolve columns by name and verify what it loaded instead of trusting a constant. Targets with no declared contract publish exactly as before. Also documented: playback fps in PortOS is preview-only. It ships in the sidecar labeled as authoring metadata, because the consuming game drives its walk from movement distance and has no frame-rate concept at all — a 6 fps preview and a 24 fps preview export byte-identical atlases. Seedocs/features/sprite-export-contract.md.[issue-2992] Declare the grid your game expects right in the publish form — the atlas-mismatch guard added in #2982 could only be armed by hand-writing an API call, because the publish binding form had no field for it. The form now has a compact Runtime contract (optional) group: set the walk frame count (and, optionally, cell size and column count) your game was built against, or click Match current atlas to fill it straight from the compiled atlas, so a mismatch is caught before you publish rather than silently breaking the game. The current atlas grid is shown right beside the fields, with a warning line the moment a saved contract disagrees with it. Clear removes a stored contract; saving the form without touching the contract leaves whatever the app already declared intact.
[issue-2986] Compiled atlases no longer waste a column on a duplicate of the idle pose — every atlas used to end with an extra "scanner" column that was a pixel-for-pixel copy of the idle cell, left over from an early render and never drawn by anything. It's gone: an 8-frame walk now compiles to 9 columns instead of 10, and a 12-frame walk to 13 instead of 14 — a smaller sprite sheet with nothing lost. The
layout.jsonfile published beside the atlas drops the matching entry, so it keeps describing exactly what's in the image. Atlases you already published are untouched until you republish, and imported or previously compiled sheets that still carry the column keep loading and displaying normally. Recompiling a character produces a new atlas version, as any change does. (A real scanner action, when there is one, will be its own animation track with its own frame count rather than a column bolted onto the walk cycle.)[issue-2984] Imported walk cycles now bring their source clip along — importing a character used to copy the finished walk strips but leave behind the video clip each one was extracted from. Since the packer can only ever resample down, that permanently froze every imported direction at the frame count it arrived with — the frames needed to run a cycle at a higher count only exist in the clip, and the clip stayed in the source tree. The importer now copies each run's source clip (resolving it whichever folder layout the source tree uses), so the material re-derivation needs is finally on disk — while the bulky extracted frame folders are still skipped, since they're re-extracted from the clip on demand. A clip whose contents don't match the checksum its manifest declares is refused with a message naming the run rather than silently imported. Characters imported before this upgrade are checked on startup and healed where the clip is already somewhere in their folder; where it isn't, PortOS logs plainly that re-running the import against the original source tree is what brings it across. (Actually re-deriving an imported direction at a new frame count also needs the imported-walk-set lock lifted — that lands next.)
[issue-2979] Characters now start from a turnaround sheet, so accessories stop jumping sides — directional anchors used to be drawn from a single front-facing reference, which meant the AI had to invent every side it hadn't seen: a hip bag on the character's front would migrate to their back in the north view, and pockets or straps would swap sides between the east and west profiles. The reference workflow is now three ordered steps. 1 · Turnaround sheet: describe the character (or attach a design image) and generate one image showing them from four angles — front, right, back, left — with every accessory pinned to the same side of the body in each panel. Lock it, and it becomes the character's identity root. 2 · Main reference: redrawn from the sheet's front panel with one click, no separate design input. 3 · Directional anchors: each pose is now redrawn from the sheet's panel for that side, so the model can see the hip bag instead of guessing at it. Picking the chroma-key background also moved to the sheet lock, where it can see the character from every angle — so a green backpack that's only visible from behind is accounted for up front instead of surprising you later. Forking a character now seeds the new one's sheet from the original's, inheriting every side.
[issue-2979] Existing characters can backfill a turnaround sheet from their locked main — a character you built before this shows the same three steps, with step 1 offering Generate from locked main: it expands the front view you already froze into the full four-view sheet, keeps your existing chroma key exactly as-is, and unblocks the directional anchors you haven't locked yet — which are then drawn from the sheet like a new character's. Already-locked references and anchors are untouched (they're immutable by design), so the benefit applies to whatever poses you still have left to derive.
[issue-2985] A walk set now has one cycle target, and a mismatched render is caught before you spend it — frame count and playback speed used to be per-render controls, so it was easy to render one direction at 12 frames, nudge the slider, render the next at 8, and only find out eight renders and eight approvals later — when compiling the atlas refused with "reprocess all directions to the same frame count". Those two controls have moved out of the per-render form into a single Cycle target for the whole walk set, labeled with where the value came from (locked by the bound app · set target · from the first approved direction · default). Queuing a render or a reprocess that disagrees with the target is now refused up front, naming both values and how to fix it, instead of silently producing an artwork that can never compile. Any already-packaged direction that doesn't match shows a drift badge (with the fix for its situation — reprocess from its clip, reopen it first, or import its source clip), plus a set-level summary line, so an existing mixed set tells you what's wrong the moment you open it rather than at compile time. When a character is bound to a managed app that declares a frame count for its atlas, that value wins and the control goes read-only. The speed control is now labeled Preview speed — it drives the preview here and is recorded in the artwork, but the game decides how fast your sprite actually walks.
[issue-2977] Loop Trimmer frames now render pixel-crisp — the frame thumbnails and the playback preview in the Loop Trimmer looked soft and washed-out, as if the artwork had been compressed, which made it impossible to judge a frame before saving a trim. Your artwork was never affected — the trimmer was shrinking each frame to a fraction of its real size to draw it, then blurrily stretching that back up. Frames now draw at their full source resolution with the same crisp pixel scaling every other sprite view uses, so what you review is exactly what gets saved. The transparency checkerboard behind each frame is drawn by the page now instead of being baked into the shrunken frame, so its squares stay crisp and a fixed size rather than coming out blurry and oversized.
[issue-2978] Saving a loop trim now works on imported characters — for a character whose walk cycles came in through the source-pipeline import, the Loop Trimmer would load, scrub, and play the animation perfectly, then fail on Save trim with "Packaged run manifest is missing or inconsistent" — after you'd already picked your frames, and with nothing saved. The imported artwork was never damaged; PortOS was simply looking for the packaged manifest under the wrong folder and giving up. Trims now save on imported characters, keep the real gait-phase labels (left-contact, left-passing, …) for each kept frame, and record the correct source strip. A run whose manifest went missing entirely now falls back to the strip's own geometry and still trims, while a manifest that's genuinely corrupt still refuses loudly instead of quietly guessing. The same lookup fixed approving an imported walk direction, which would have failed the same way.
Steer a directional-anchor re-roll with a correction note — when a directional anchor comes out wrong (say the north-east pose grew a pocket on the arm that has none in every other view), re-rolling it with the same inputs tended to just reproduce the same mistake. Each unlocked anchor tile now has a small Correction (optional) box: type what to fix ("no pocket on the right sleeve") and hit Regenerate, and the note is appended to that pose's prompt as an explicit override so the new render actually diverges. The button reads Generate on the first render and Regenerate once candidates exist, the correction is per-direction (so eight different fixes don't collide), and it rides into the candidate's saved prompt so the image preview shows exactly what was asked for. Main-reference iteration is unchanged — it already has its own design-prompt box.
[issue-2964] The same correction note now steers a re-roll from the asset card too — the correction box used to live only on the Reference Set's anchor grid, so re-rolling a directional-anchor candidate from its card in the Assets library ignored any fix you'd typed. Each anchor candidate card now carries the same correction affordance: click its note icon to type ("no pocket on the right sleeve") and hit Regenerate, and that guidance is appended to the pose's prompt exactly as it is from the grid. The two surfaces share one correction per direction, so a note you type in either place shows up in the other, and both re-rolls send the identical instruction.
Locking a main reference no longer leaves a colored halo around the character — when you lock a character's main reference, PortOS re-keys the background to whichever chroma color (magenta, green, or blue) sits farthest from the character's own palette. If that swapped the background — e.g. a magenta render re-keyed onto blue — the anti-aliased pixels along the character's outline kept their old magenta tint and showed up as a faint magenta ring against the new blue backdrop. Locking now cleans those edge pixels as it re-keys, so the outline blends into the new background with no leftover halo. Already-locked references (which are immutable and can't be re-locked) are healed automatically on upgrade: each one is re-derived from its saved candidate with the fix applied, and its stored checksum is refreshed — no action needed on your part.
Generate Walk is faster, more reliable, and you can watch grok do it — the walk-cycle generator got three fixes and a new window into the render:
- Watch grok in the Shell. Clicking Generate walk now runs grok as a live, interactive TUI session instead of a headless background job. The direction's card shows a Watch in Shell link while it renders — click it to pop into the Shell page, watch grok animate the frames in real time, and (if it goes off the rails) type to course-correct or Stop it. The session goes away once the clip is rendered and the deterministic packaging takes over.
- Shorter clips. Walk clip length is now selectable from 1 / 2 / 3 / 6 / 10 seconds and defaults to 2s (was 6s/10s only). A looping walk cycle only needs one gait (~8 frames), so a 2s clip renders in a fraction of the time — the old 6s default took ~10 minutes to render a clip we harvest 8 frames from.
- Fixed the "not a usable matte" failure. Grok clips that faded in from a black frame, or rendered a slightly off-magenta background, used to fail packaging outright with
Measured background [0,0,0] is not a usable #FF00FF matte— throwing away a perfectly good clip. The postprocess now drops black lead-in/out frames and tolerates grok's real-world magenta. The deeper cause is also fixed: we now hand grok the character on its magenta matte (the anchor already has it) instead of a transparent cut-out it had to composite over black and re-invent a background for — so the rendered clip keys out cleanly. - A failed render isn't a dead end. If packaging still fails, the card now plays grok's raw clip inline (alongside the error and a Retry) so you can see exactly what grok produced instead of staring at an error string.
See — and copy — the prompt behind any sprite image — click a reference-set image (the frozen main, a locked directional anchor, or any generation candidate) and the enlarged preview now shows the exact prompt that produced it, with a one-click Copy prompt button, the same way the image render-history preview does. The asset inspector gains the same prompt block, so a walk-animation clip or any generated asset you open there shows its prompt too. Older images generated before this shipped still show their prompt — it's reconstructed from the render's recorded design description, direction, and background color — so nothing in your existing library is blank. Imported artwork and internal metadata files simply omit the block. New endpoint
GET /api/sprites/:id/asset-prompt.Seed a character's main reference from an existing sprite, an upload, or your render history — and fork a character from its reference — the "design image (optional)" upload on the main-reference form is now a three-way Reference image picker: upload a file, pick one from your image render-history gallery, or pick another sprite that already has a locked reference, each with a fidelity slider controlling how tightly the render follows it (image+text→image). Separately, a locked reference is immutable and can never be regenerated — so a character with a frozen main now shows a Fork from this reference button that spins up a brand-new character whose main is generated from this one's reference plus a prompt describing the change ("same character but in a red coat"), then opens the new sprite. New endpoints
GET /api/sprites/reference-sourcesandPOST /api/sprites/:id/fork.The Sprite Manager opens on a full Library catalog, with rename and delete built in — landing on the Sprite Manager now shows the Library itself: a searchable, grouped grid of every character/place/object, each card carrying a real preview thumbnail — a character's locked main reference, or, for a place/object (or a character with no reference yet), the first image asset on disk, falling back to a kind icon only when there's no image at all — instead of jumping you straight into one sprite. The catalog is the
/spritesroute (not a modal buried behind a button), so it's directly linkable, and each card gives you full record control: click to open it, the pencil to rename in place (for records whose generated name you want to fix), or the trash to delete behind a cautious inline Cancel/Delete confirm (a delete drops the record from your library; its files stay on disk and its id stays reserved). The same rename and delete controls sit in a sprite's detail header, so you can fix or remove the one you're looking at without going back to the grid (deleting it returns you there). Search, New Sprite, and Import live in the page header (New Sprite/Import are modals), the left sidebar is gone so the catalog and detail panes run full width, and opening a sprite shows a Library link back to the grid. The per-character workspace tab that used to read "Library" is now Assets, since "Library" means the catalog. New endpointGET /api/sprites/thumbnails.Click any reference-set image to enlarge it — the Reference Set's inline thumbnails (the frozen main reference, each locked directional anchor, and every generation candidate) are now click-to-zoom: clicking one opens a large, pixel-perfect preview over the same checkerboard the asset inspector uses, so you can actually judge a candidate before locking it instead of squinting at a thumbnail. Previews elsewhere are unaffected unless they opt in.
Atlas manifests are folded into the atlas, not a confusing "Manifests" shelf — a character's asset library used to show a separate Manifests group of near-identical JSON cards sitting apart from the sprite-sheet PNGs they describe, so it was never clear that each manifest is just the build metadata for one atlas version. Manifests are no longer their own group: a runtime atlas card gains a Manifest button that opens its sidecar (the geometry, chroma key, and source provenance the compiler recorded), and the inspector now says plainly that it's behind-the-scenes metadata removed together with its atlas. The other internal JSON (publish pointers, run records, the reference-set manifest) no longer appears as inert cards at all. Nothing changes on disk — manifests are still written and still deleted as a unit with their atlas version.
Every walk direction is trimmable now, whatever produced it — a direction whose art came from the source pipeline's older video-first "redraw" path (pioneer's east being the case in the wild) showed its "approved ✓" card with no Edit in Loop Trimmer link, because loop trimming was wired only to grok-generated runs. The Loop Trimmer now resolves any run's geometry from the run's own manifest/strip regardless of where it was authored, so imported and redraw directions are trimmable exactly like native ones — the link appears on every direction that has a packed strip. (Saved trims stay preview-only; there's no run behind them to re-trim.)
Sprite runs are stored vendor-neutrally — under the hood, PortOS used to file its own walk generations under a
grok/directory, baking one provider into the on-disk layout. Runs now live under a neutralruns/tree with the provider recorded as run metadata instead, so future agent services or generation methods slot in without a storage change and nothing downstream (trimming, atlas compile, publish, backups) assumes a vendor. Existing installs are migrated automatically on upgrade: each character'sgrok/<run>/directories are renamed toruns/<run>/, every embedded path is rewritten, and the checksums that pin the finalized walk set + compiled atlas are recomputed so a re-compile stays a no-op — your published atlases are unaffected. Imported/redraw characters and the atlas image bytes are left untouched.Delete old atlas and reference images from the asset inspector — as you iterate a character, its
runtime/tree fills up with superseded atlas versions (…-animation-atlas-v10.png, v9, v8…) and its reference/walk trees fill up with old candidate renders, with no way to prune them short of hand-editingdata/sprites/. The asset inspector now has a Delete action: open any asset, click Delete, confirm in an inline Cancel/Delete row, and it's removed from disk (the library refreshes in place). Deleting an old runtime atlas removes its sidecar manifest in the same step, so a version goes cleanly. The one atlas you can't delete is the current published one — PortOS refuses it (and the pointer/publish-history bookkeeping) so you can't strand a live game or the recompiler; compile or publish a newer version first.Unlock a finalized walk set to revise it — a frozen 8-direction walk set was one-way: the "walk set frozen · immutable" badge was the end of the road, and the only way to change a direction was to start a whole new character version. The Walk Cycles panel now offers an Unlock button beside that badge (with an inline "Re-open all directions?" confirm). Unlocking removes the frozen set and re-opens every direction back into the generate / regenerate / approve flow — your already-rendered clips are kept on disk, so you can re-approve the ones you like and re-render just the ones you don't; re-approving all eight re-freezes the set exactly as before. Walk sets imported from an external source pipeline (which have no regenerable clips behind them) still can't be unlocked and say so.
The Loop Trimmer auto-plays when you open its tab — switching to the Loop Trimmer now starts the loop preview animating immediately instead of waiting for a manual Play click; switching the animation source keeps it playing.
The asset inspector is readable again — clicking an atlas or any sprite asset opens the inspector over a solid card and a darker backdrop, so the metadata (path, dimensions, frame count, size) and the Download / Open / Copy-path buttons no longer have the page bleeding through behind them.
The Directional anchors grid collapses once complete — while you're building the reference set the "Directional anchors" grid stays open so you can generate and lock each direction, but once all eight are locked it's just static previews of files the "Reference set" browser below already lists (and lets you inspect / download). It now collapses by default when complete — with a one-click toggle to reopen it — so the same anchors no longer read as a duplicate set on the page.
[issue-2933] Trim walk loops in a real editor, not a buried 8-checkbox strip — loop trimming used to be a tiny row of checkboxes tucked inside a walk candidate card, with no way to see what you were doing: no playback, no scrubbing, no frame rate control, no per-frame preview. It's now its own Loop Trimmer workspace on the Sprites page, switchable from a tab beside the asset Library and deep-linkable (
?spriteTab=trimmer&run=<id>) so a specific run is shareable and bookmarkable — and "Edit in Loop Trimmer", from either a walk card or an asset tile, jumps straight to it. Pick an animation source (any packaged walk run, plus your previously saved trims for review), play the loop on a checkerboarded canvas or scrub it frame by frame with prev/next and a frame label, tune the frame rate with a live slider, and toggle individual frames on and off from a grid of per-frame thumbnails (disabled frames dim and desaturate, the current frame is outlined) with a live enabled-count and Enable-all / Invert shortcuts. Name the output (it's normalized to a safea-z0-9-slug) and save — the trimmed strip, preview GIF, and manifest paths are surfaced right there, and the source artwork is never touched. The old inline trim panel is gone, so there's exactly one place to trim.[issue-2932] Search the sprite library, and organize it by character / place / object — the Sprites sidebar used to dump every record as a flat wall of names under just two buckets ("Characters" and "Props"), so a standalone place or object had nowhere to live and a big library was hard to scan. It now leads with a labelled autocomplete search box: type any part of a name, id, or kind and it narrows to a bounded, keyboard-navigable suggestion list (↑/↓ to move, Enter to open, Esc to clear); the full list is one click away behind a Browse all disclosure. Records group under Characters, Places, and Objects, and the New button (now New Sprite) lets you pick which of those three you're creating. Existing imported prop-atlas families keep working unchanged — they simply show under Objects alongside standalone objects. The reference / walk / publish workflows remain character-only.
[issue-2938] Asset badges and Regenerate now reflect approval and backend state, not just the file path — a walk direction you've already approved now shows its strip, frames, and animation with an approved badge instead of "candidate": approval is tracked in the walk selection, and the artwork never moves on disk, so the browser now reads that selection to badge the assets correctly. And a reference candidate's Regenerate button is greyed out with the same "No image backend configured" guidance the reference workflow shows when no image backend is set up — so it no longer queues a render that just fails with a toast — and when you do re-roll a candidate, it uses the same backend you picked in the reference workflow above instead of falling back to the install default.
[issue-2931] A character's assets now group by what they are, and you can act on them in place — the asset browser used to be a flat dump grouped by folder name (
reference,grok,runtime), with every tile inert. Assets are now grouped by their actual role — reference set, strips, animations, frames, atlases, review evidence, manifests — and each one carries a status badge (runtime · approved · candidate · superseded · rejected · source), so you can see at a glance which reference version is current and which have been replaced. Walk strips, frames and animations gain two buttons: Regenerate, which re-runs that direction's render, and Edit in Loop Trimmer, which jumps straight to the trimmer for that run — including for a direction you've already approved, since trims are saved separately and never overwrite the approved artwork. Regenerate is correctly greyed out when the walk set is finalized, when the direction is already approved, when its reference anchor isn't locked yet, or while a render for it is already running — and it now shares one in-flight view with the workflow panels above, so starting a render in one place immediately disables it in the other instead of letting you pay for the same render twice. An unlocked reference candidate can be re-rolled the same way. Switching between characters no longer carries a stale "Rendering…" state across from the previous one.[issue-2930] Sprites is now its own page, and assets are properly inspectable — the Sprite Manager was a hidden tab inside Media Gen; it now has its own Sprites entry in the Create sidebar and lives at its own address, so it's directly linkable, bookmarkable, and reachable from ⌘K and voice. Old Media Gen sprite links (including links to a specific sprite) redirect to the new page and keep any deep-link state. Every surface that shows a transparent sprite — asset thumbnails, the reference set, walk-loop previews, trim results, and the compiled atlas — now paints a checkerboard behind the artwork, so a cut-out region is finally distinguishable from a black pixel instead of both reading as the same dark rectangle. Clicking any asset opens a real inspector: a pixel-perfect preview over that checkerboard, plus the file's path, dimensions, format, frame count, size, and last-modified time, with Download and Copy-path buttons. Non-image files (manifests, sidecars) open there too instead of silently downloading. An asset PortOS can't read — a truncated PNG, say — now shows its basic details rather than breaking the whole page.
[issue-2928] Show walk previews for every imported run layout, not just one — the walk viewer found a character's animation runs by looking in a single fixed folder, so an imported character whose source pipeline filed its runs elsewhere showed the same blank "approved ✓" card that #2924 just fixed for redraw directions. Each approved direction is now looked up by where its own approval record says its run lives, so any layout the importer produces animates. Unapproved candidates and in-flight generations still appear as before.
[issue-2924] Animate walk directions approved from an imported redraw cycle — a direction whose approved artwork came from the source pipeline's video-first redraw path (rather than a Grok walk clip) showed its "approved ✓" badge with a blank space where the loop preview should be, because there was no walk-run record behind it to render. Those directions now animate from their own packaged cycle: PortOS reads the redraw manifest, prefers its clean transparent strip (falling back to the keyed one), and plays the loop at the cycle's real length and frame rate. The viewer no longer assumes every walk strip is exactly 8 frames, so a 12-frame imported stride plays its full gait instead of being cropped to two thirds; native 8-phase runs are unchanged. A direction whose strip is missing on disk still shows nothing rather than a broken image.
[issue-2898] Compile the runtime atlas and publish it to your game (phase 4) — a finalized walk set can now be compiled into the immutable runtime sprite-sheet (the 9×8 grid of idle and the 8 named gait phases for all 8 directions, each frame scaled once per direction and pinned to the pivot ground line) and published straight into a managed app's repository. Every compile revalidates the whole evidence chain first — the finalized walk set, every packaged frame, and every locked anchor are checksum-verified — and recompiling the same set is a no-op instead of a new version. Publishing binds a character to a managed app and a repo-relative destination, replaces the atlas atomically, and refuses to clobber a destination that changed outside PortOS since the last publish; an optional code-binding guard verifies (occurrence-counted) that the game source still references the atlas where expected before anything is written. The Sprites tab gains the compile/publish panel with an inline confirmation and a publish history, and sprite walk-run raw frame intermediates are now excluded from backups by default (they regenerate deterministically from the archived source video — the toggle to re-include them is in the Backup tab).
[issue-2897] Animate walk cycles from locked anchors (phase 3) — each locked directional anchor can now be animated: PortOS asks Grok for exactly one walk-in-place video on the character's key-color matte, then packages it locally and deterministically — no further AI involved — into the canonical 8-phase walk strip (frame extraction, chroma un-key and de-spill keyed to the character's selected key color, automatic walk-cycle detection, fixed-scale pivot alignment, and a light/dark/checker contrast review sheet). Review each direction's loop right in the Sprites tab (animated preview), optionally trim frames non-destructively into a versioned loop GIF, and approve per direction; the eighth approval freezes the finalized walk set, which becomes immutable like the reference set. Every run carries a full provenance manifest with per-frame checksums, matching the format the phase-1 importer already understands.
[issue-2896] Create characters and build their reference sets with AI (phase 2) — the Sprites tab can now create a character from a name plus a text description and/or an uploaded design image, generate main-reference candidates through your configured image backend (Codex, Grok, or local), and freeze the approved candidate as the character's immutable identity root. From the frozen main you then derive the 8 directional anchors (front/back/profiles/three-quarters), review each candidate, and lock the set. On lock, PortOS normalizes the art onto a clean key-color square and auto-picks the best chroma key for that character — magenta, green, or blue, whichever sits farthest from the character's own colors (with a manual override limited to the same three keys, and a warning when every key risks clipping). Locked references are server-side immutable: regeneration and replacement are refused, corrections always land as new versions.
[issue-2895] Media Gen gains a Sprites section (phase 1: library + import) — a new Sprites tab lists your game-sprite characters and prop atlas families, browses each one's locked reference set, walk-cycle strips, and published atlas versions (with pixel-perfect previews), and imports the approved production assets from an existing sprite-pipeline checkout in one click. Only final/approved artifacts import — rejected candidates and raw video intermediates stay behind — and every file the source manifests hash-pin is verified on the way in. Reachable from ⌘K and voice ("take me to sprites"). Generation (reference → anchors → walk videos → publish-to-game) lands in the follow-up phases.
Image generation
- [issue-3035] Hugging Face setup now stays consistent across Image Gen and Settings — gated models use the same saved-token status everywhere, while Settings retains the precise source details you need to manage that token; the access banner now presents one consistent account, terms, and token-entry path for every model.
- Generate live procedural Three.js models from the image gallery — the Three.js Models page (in the Create sidebar) turns a gallery image into a live procedural scene: pick any image with its built-in gallery picker, choose any configured AI provider/model, generate a validated primitive/custom-geometry scene, orbit and zoom the result live in the browser, refine it with feedback or a different model, and copy/download a standalone Three.js
Groupfactory. The implementation is natively owned (inspired byimg2threejs, with no new module dependency) and renders a bounded declarative spec instead of evaluating model-written JavaScript. (A render's Send to 3D shortcut now opens the image-to-3D 3D page instead — see the 3D section.) - [issue-2859] Grok can now generate videos too — with Grok enabled, the Video Gen page gains a Local/Grok backend switch: Grok renders 6- or 10-second clips via its image-first flow (it generates a base image from your prompt, or animates a source image you pick, then runs its video tool). Clips land in the same render history with thumbnails, run in the parallel cloud queue lane alongside Grok/Codex image jobs, and never require local Python or GPU runtimes.
- [issue-2859] xAI Grok (Grok Build CLI) is a new image-generation backend — enable it in Settings → Image Gen → Grok CLI and every image surface (Image Gen page, pipeline renders, character sheets, universe builder batches, avatars, voice
image_generate) can route through the Grok CLI's built-inimage_gentool, including image-to-image editing viaimage_edit. Configuration is just the binary path and an optional default aspect ratio — Grok picks the model internally. Grok renders run in the same parallel queue lane as Codex, and Grok video generation is planned as a follow-up phase.
Tribe outreach
- [issue-2831] Unanswered 1:1 emails to a Gmail alias now surface as outreach nudges — a message delivered to one of your Gmail send-as aliases (not your primary address) is correctly treated as a one-on-one conversation instead of a group thread, so a genuinely unanswered email to an alias no longer gets silently skipped. Your own alias addresses never appear as a Tribe contact.
- [issue-2855] Alias-addressed emails already on your timeline get repaired too — existing activity entries that still list one of your own Gmail aliases as a participant are cleaned up in place — once at upgrade for aliases already on file, and again whenever an account learns a new alias. Previously only newly-synced mail benefited, so an unanswered 1:1 sent to an alias before the upgrade stayed invisible to outreach nudges until it aged out of the two-week window.
Render Queue
- [issue-2827] Inspect and change Codex reasoning effort when retrying a render — a failed Codex image job now shows the reasoning-effort level it used in the Render Queue, and the Edit & Retry editor gains a Codex-only Reasoning-effort control so you can pin a different level or reset it to the default before re-queuing.
Security
The Autofixer UI on
:5560now honours the PortOS password gate — when the install is password protected (Settings → Security), the Autofixer sidecar requires the same password before it will list apps, stream PM2 logs, or restart/stop a process. It listens on0.0.0.0for tailnet access, so it previously stayed wide open while:5555asked for a password. A browser already signed in to the PortOS dashboard on the same host is let straight through (the session cookie is port-agnostic); anything else gets a login prompt, and scripts can useAuthorization: Basic/Bearer. Installs with no password set are unchanged.Guard paid-provider API keys against SSRF / key-exfiltration:
streamCompletion(askService), voice-LLM endpoint resolution, and the local-LLM playground now validate a provider's endpoint through the shared endpoint guard before attaching theAuthorization: Bearerheader, so a mistyped or malicious custom endpoint (including cloud-metadata hosts) never receives the key unless the provider opts in viaallowCustomEndpoint.Bump the stale
postcssoverride from 8.5.15 to 8.5.23 (root, server) andbrace-expansionfrom 5.0.7 to 5.0.8 (root, server, client), clearing two high-severity advisories — a PostCSS path traversal via auto-loadedsourceMappingURLcomments (GHSA-r28c-9q8g-f849, CVSS 7.5) and the brace-expansion range fixed in 5.0.8. Both were dev-only (PostCSS reaches the tree through Vite under Vitest; PortOS only ever processes its own first-party CSS at build time, so the traversal was never reachable here) — but both pins were themselves the problem: each was added to fix an earlier advisory in the same package and had since become the thing holding the tree at a now-vulnerable version. Worth remembering when reading theoverridesblocks: an exact pin is a snapshot, not a subscription, and re-auditing it is part of the fix. Root and server audits are now clean.Bump the
js-yamloverride from 4.2.0 to 4.3.0 (root, server, client) to clear a high-severity advisory where chained YAML merge keys force quadratic CPU consumption.Pin server
tarto 7.5.21 andengine.ioto 6.6.9 via overrides, clearing a critical node-tar cluster (PAX header file smuggling, parse/decompression DoS, infinite loop on negative entry size) and an Engine.IO polling-transport connection-exhaustion advisory. These live only inserver/package-lock.json, which is gitignored, so Dependabot never surfaced them.[issue-2848] Clear the remaining
npm auditHIGH/CRITICAL findings across all three workspaces — pinprotobufjsto 7.6.5 and add abody-parser2.3.0 andsharp0.35.3 override in the server, and bring the root and clientbrace-expansionpins up to 5.0.7 / 1.1.16. Thesharppin also collapses a stale nested copy that@huggingface/transformerscarried, so the bundled speech models no longer ship a second, vulnerable libvips build. Root, server, and client all report zero vulnerabilities; no major version bumps were needed (the previously-planned breakingeslintupgrade turned out to be avoidable).A new
server/dependency-overrides.test.jsguard fails the suite when the three manifests disagree on a shared override version, or when any pin drops below a known-patched version — the drift that letbrace-expansionstay vulnerable in root and client for several releases after the server was fixed.Register
/serverand/clientin.github/dependabot.yml. Only the root manifest was scanned before, so the server and client dependency trees — which carry their ownpackage.jsonand overrides and whose lockfiles are gitignored — produced no alerts at all.Reject non-
http(s)schemes on Privacy Center URL fields (org website/portal, broker search/opt-out/screenshot/listing URLs), closing a stored-XSS vector where ajavascript:/data:value would execute when rendered as a link. Added a shared serverisSafeHrefhelper mirroring the client'sisHttpUrl, applied at the Zod write layer and at every render site.
Fixed
Godot launch actions now run their shell launcher correctly — managed games launched from Apps no longer hand their game script to Node, so their normal shell setup and Godot launch sequence can start.
CoS Codex review loops now parse Claude and Ollama verdicts deterministically — Claude review logs are accepted as clean only when they contain the exact
NO FINDINGSsentinel and no findings; otherwise Codex extracts only complete structuredFINDING N:blocks to apply. Mixed, incomplete, or absent Claude verdicts are explicitly inconclusive instead of being guessed clean. Local Ollama/LM Studio review responses now extract and validate the JSON.findingsfield before use, surfacing the provider error when it is missing or malformed and terminating the failed review step nonzero. This prevents a text/JSON handoff mismatch from silently dropping reviewer findings or letting an ambiguous pass merge.[issue-3059] Wordplay training checks now stay reliable during busy CI runs — the test suite gives a newly selected word game time to finish its normal loading path, preventing intermittent build failures without weakening coverage.
"Choose a file" buttons now open the file picker from a remote browser — the Screenshot and Attach buttons on the task form, Browse Files on the Uploads page, and ~20 other upload buttons across PortOS did nothing when you clicked them from another machine over the tailnet. Each one was a plain button whose click handler reached over and programmatically clicked a hidden
<input type="file">— a synthetic click that several browsers refuse to honor, most notably Safari/WebKit when PortOS is running as an installed (standalone) app rather than a normal tab, which is exactly how it tends to get opened on a second machine or a tablet. Every one of those triggers is now a real<label>bound to its file input, so the browser opens the picker itself with no scripting involved. Three related annoyances went with it: every file picker in the app is now reachable by keyboard and screen reader (they were hidden from both, including six that already opened fine); re-picking the same file after a failed upload now works everywhere; and the Attach picker no longer greys out every file on iOS/iPadOS, where an extension-only filter isn't understood.Uploads now state the real size limit instead of failing past ~41MB — the Uploads page advertised a 100MB maximum and task attachments 50MB, but files are sent base64-encoded inside a JSON body, and the server's 55MB body cap means anything past roughly 41MB was rejected by the body parser before the size check ever ran — so a 60MB file produced an opaque failure rather than a limit message. Every base64-in-JSON upload path (general uploads, task attachments, SongBook attachments) now derives its cap from the body limit itself, so the advertised number is always one the server can actually accept. Screenshots keep their own deliberately smaller 10MB cap, now shared between client and server instead of being written twice.
Installing or removing an Ollama model now refreshes provider model pickers instantly — the Ollama provider (and any Claude/Codex/Gemini CLI running against a local Ollama daemon) picks up the change immediately instead of waiting for a manual "Refresh Models" click on the AI Providers page. The scheduled-task model picker also stays in sync automatically, no app restart required.
Hugging Face models with a custom quant scheme no longer produce an uninstallable Ollama id —
quantFromFilenamematched a standard quant anywhere at the end of a GGUF filename, so a repo-specific scheme suffix bled into a bogus tag (BTL-3-Compact-AVQ2.gguf→Q2) and the resultinghf.co/<repo>:Q2pull failed with Ollama's400 The specified tag is not a valid quantization scheme. The quant now has to be its own trailing token (start-of-name or after a-/_/.); when nothing parses, the install id falls back to the bare repo, which Ollama resolves through itslatestmanifest.CoS task cards no longer render a wall of prompt text — a task's
context,blockedReason/blocker, and challengereasonare now clamped to two lines with a Show more/Show less toggle, matching the description. Orchestrator tasks (e.g. the Creative Director production plan) store their entire prompt inmetadata.context, so one pending task previously rendered as thousands of pixels of unclamped text the user had to scroll past to reach the rest of the queue; auto-blocked tasks had the same problem with LLM/stderr-derived block reasons, and a challenge reason is free text a worker agent writes to argue its case. The clamp+toggle (measured overflow, so the toggle only appears when the text actually spills) is extracted fromTaskIteminto a sharedclient/src/components/ui/CollapsibleText.jsx. Editing a task's context also moves from a single-line<input>to a bounded scrolling<textarea>, which was unusable for a multi-thousand-character prompt.CoS claim agents (plan-task, claim-issue, claim-issue-gitlab, claim-issue-jira) now create their git worktree under PortOS's own shared
data/cos/worktrees/(via a new{worktreesRoot}prompt placeholder resolved toPATHS.worktrees) instead of a repo-relative path inside the managed app's checkout. An agent working a managed app previously left adata/cos/worktrees/claim-…tree inside that app's working directory (e.g. a straydata/in the target repo); the checkout now lands in PortOS's data dir — exactly wherecleanupExternalRepoWorktreesalready reaps external-repo worktrees. Prompt versions bumped and the outgoing repo-relative defaults preserved for cross-install auto-upgrade.A CoS review-loop agent (esp. codex reviewing with
claude) no longer burns a dozen calls figuring out how to run the reviewer — the follow-up agent used to be told only "invoke that CLI to review this branch's diff", so a headless codex agent reverse-engineered theclaudeCLI from scratch (claude --help,claude -p 'hello',--output-format json,--tools '', byte-level output inspection) before it landed a working review. PortOS now inlines slashdo's exact local-agent review-loop recipe — the precise per-CLI headless invocation (claude -p "$LOCAL_PROMPT" --dangerously-skip-permissions,codex --sandbox read-only review --base …, etc.) and the review-only prompt contract — into the follow-up prompt whenever a spawnable CLI reviewer (codex/antigravity/claude/grok) is configured, and points the invocation step at it. The newloadSlashdoLib()helper — andloadSlashdoFile()— now resolve slashdo's<!-- if:teams -->conditional blocks (PortOS inlines slashdo markdown without going through slashdo's own installer, so both the Claude-Code-only in-process-Agent-tool branch and the subprocess branch were previously leaking into agent prompts unresolved and contradicting each other; this also affected user-dispatched CoS commands like/do:better). Fixed alongside: inlining a slashdo lib into a command body used a bare-stringString.replace, which interpreted$\``/$'` tokens in the shell-heavy review-loop libs — corrupting the inlined text and ballooning a ~66KB command past 2MB; the review-loop procedure PortOS already inlined into every follow-up agent prompt was affected. It now inserts lib content verbatim.executeTuiRun'sfinish()now always settles its run promise even if a finalization step throws, so a one-shot TUI run can no longer hang forever (leaking the PTY and wedging/runs).execGhnow times out (60s default, overridable) and kills a stalledghCLI child, so a hung network/credential prompt can't wedge the scheduled PR-watcher / issue- and branch-reconcile / update-check jobs or orphanghprocesses.NextActionBanner's question fetch is guarded against stale responses, so a slow earlier request can no longer overwrite a newer question.The Login and ErrorBoundary full-screen layouts use dvh-capped min-height, so their content isn't pushed below the fold by mobile browser chrome.
r3f
<Canvas>backgrounds (goals tree, memory graph, brain graph) track theport-bgtheme token instead of a hardcoded black, fixing a black rectangle under light themes.Accessibility:
<label htmlFor>/idpairing on the Avatar Emoji/Color (AgentList), Folder path (Sharing), and AI-refinement (StoryBuilder) inputs; hand-rolled clickable elements (ElementsSong element tile, NotificationDropdown row, TaskAddForm template picker) now use the sharedclickablePropshelper, restoring Space-key activation.The ProactiveAlertsWidget chevron affordance is now visible on touch devices.
Changed
- CoS task forms now fit narrow screens — mobile task options stack into one column so pull-request completion and reviewer controls remain readable and usable without horizontal clipping.
- [issue-3060] CoS PR completion is now an explicit choice — when a task opens a PR, choose Review then merge, Merge on green CI, or Leave PR open instead of inferring the outcome from a review-loop checkbox. The same default is available per managed app, new tasks save the selected policy, and existing tasks keep their current review-loop behavior without a migration. Prompt instructions and post-run cleanup now use that one policy too, so a leave-open task never starts a hidden review/merge follow-up.
- A CoS task that opens a PR without a Review Loop now merges it once CI is green, instead of leaving it open forever — "Review Loop off" was being treated as "nobody merges this": the agent's completion workflow only got merge instructions when a reviewer was configured, and PortOS's own post-exit PR path only spawned a follow-up when there was a review to run. So every no-review-loop task ended with an orphaned PR and a leaked branch someone had to notice and merge by hand. The merge now always happens — gated on the review verdict when a loop is configured, on CI alone when it isn't: wait for the checks, fix a failing check or a base conflict, merge with a real merge commit, and verify the PR actually reached
MERGEDbefore exiting. Where PortOS opens the PR itself after the agent exits, it spawns a merge follow-up agent that does the same. What to know: scheduled task types that open a PR without a reviewer (feature-ideas,do-replan,refresh-local-llm-catalog) now land on the default branch on green CI rather than queueing a PR for you — turn on Review Loop for those if you want a reviewer first. JIRA-tracked work is deliberately exempt:jira-sprint-manager(and any task carrying a JIRA ticket) moves its ticket to "In Review" and hands the PR to a human, so nothing auto-merges it — a configured reviewer still runs, it just stops short of the merge. A PR is still left open, with the reason stated, when CI stays red after a genuine fix attempt or a conflict needs a human decision. Fixed alongside: a copilot-only Review Loop on a GitLab MR used to spawn no follow-up at all (Copilot is GitHub-only) and orphaned the MR — it now degrades to the same merge-on-green-CI follow-up, withglabcommands instead ofgh. - [issue-2833] Decompose the ~1000-line
spawnTuiAgent()— extract the output buffering/spooling pipeline intoagentTuiSpawning/outputSpooler.jsand the failure-analysis + worktree-inspection helpers intoagentTuiSpawning/finalizeHelpers.js, leavingspawnTuiAgentas a thinner orchestrator. No behavior change to spawn/timeout/completion semantics; adds unit coverage for both extracted modules. - Route client
localStorageaccess through thesafeStoragehelpers (Layout, MorseTrainer, calendar persisted-state, MoodBoard reference strip, VoiceWidget, WorkEditor, Tribe) — several sites previously threw uncaught in Safari private mode instead of degrading gracefully. - Replace inline
new Promise(r => setTimeout(r, …))delays with the sharedsleep(ms)helper across nine server modules. - [issue-2843] Dimension-reserving loading skeletons on 20 primary pages — Dashboard, Apps, Brain, Calendar, Messages, Wiki, Goals, Review, Character, Digital Twin, Data Manager, Capabilities, Feature Agents (index + detail), Uploads, System Health, Submodules, Action History, AI Runs History, and AI Usage now render
PageSkeletoninstead of a centered spinner, so the first paint reserves the header/tab/card dimensions the loaded page occupies and content no longer pops in above the fold.PageSkeletongrewheader(inline/bar/none),layout(stack/grid),tabs/tabsInBar,showSubtitle/subtitleOnMobile,label,padded/fullHeight, andbarClassName/bodyClassNameso a skeleton can mirror whichever shell its page renders — Layout's padded scrolling main or anisFullWidthbare main with a page-owned header bar and tab strip.
Removed
- Drop the unused
featureFlags/lockPoliciesreserved config slots fromcollectionStore's typedef.
Internal
- Bundled slashdo submodule updated to 3.24.1 — code reviewers can no longer quietly rewrite your working tree. A
--review-withreview pass is meant to report findings and let the orchestrator apply them, but every reviewer ran with full write access and the "don't touch the tree" rule was only a line in the prompt, so a reviewer that decided to fix things itself silently overwrote uncommitted work. Codex's review pass now runs in an OS-enforced read-only sandbox, and the reviewers with no read-only mode (claude,agy,grok) are backstopped: the loop snapshots the tree before the review and restores it wholesale if the reviewer modified anything, keeping the findings.--reviewer-appliesis unaffected — writing is the point there. Also picks up theactions/setup-node7 bump in slashdo's own CI. - [issue-2840] Paginate album/artist/author list endpoints —
GET /api/albums,/api/artists, and/api/authorsnow acceptlimit/offsetvia the sharedparsePagination/paginateArrayhelpers, returning the same{ items, total, limit, offset }envelope the notes/mood-board/loras list endpoints use when a pagination param is present. Unparameterized requests still return the full array, so existing callers are unaffected. - [issue-2832] Split the boot-schema DDL into per-domain modules — the ~1265-line inline
CREATE TABLE/CREATE INDEX/trigger block inensureSchemaImpl()(server/lib/db.js) is extracted into per-domain modules underserver/lib/db/schema/(catalog, media, universes, writers-room, pipeline, privacy, tribe, audit, …), each exporting a statement array;ensureSchemaImplis now a thin composer. Statement text and order are byte-identical, so the composed schema is unchanged. - [issue-2834] Split the ~1990-line
VideoGen.jsxinto hooks + subcomponents — the client-side batch-queue orchestration moves intouseVideoGenQueue, the pure model-memory / FFLF frame-budget / mode-compat helpers intolib/videoGenParams.js, and four presentational blocks intocomponents/videoGen/(RuntimeFingerprint,ModelRepairBanner,VideoPreviewPanel,VideoGenGallery). The inline runtime-statusfetch()now routes through agetVideoGenRuntimeStatusservice wrapper, and the Seed input gains a proper<label htmlFor>/idpairing. Behavior and deep-link routing are unchanged. - [issue-2838] Route inline
fetch('/api/...')calls through the client service layer — the Prompt Manager's 13+ raw prompt/provider calls move into a newservices/apiPrompts.js(stages, variables, job-skills), and the stray inline/api/fetches inImageGen,LocalSetupPanel,StagePromptModelPicker, andGsdTabroute through existing/newapiX.jswrappers.useTheme's settings read/write now go throughapiSystem.getSettings/updateSettings(silent, so the local-storage fallback stays the only error surface), which clears the last inline/api/fetch outsideservices/. Behavior-preserving; VideoGen's site was already routed through a service wrapper by the VideoGen split (#2834). - [issue-2835] Split the ~2875-line
ArcCanvas.jsxinto per-component files — each of the 32 subcomponents/helpers (ArcHeader, EditorialRoadmapPanel, SeasonRow, IssueRow, VolumeCoversPanel, …) now lives in its own file underclient/src/components/pipeline/arcCanvas/, with the shared severity-color map inarcCanvas/shared.js.ArcCanvas.jsx(default export) is now a thin 122-line composer and still re-exportsArcRoadmapChartso its public import path is unchanged. Pure mechanical, behavior-preserving refactor — no rendered-output change. - [issue-2836] Extract helpers from
generateManagedAppImprovementTaskForType()— the ~533-line function inserver/services/cosTaskGenerator.jsis decomposed into named metadata-building and gate-checking helpers (buildImprovementTaskMetadata,resolveTaskInputHook,resolveClaimWorkRouting,applyPerpetualWorkGate,resolveBranchReconcileBlock,resolveIssueReconcileBlock,resolveReferenceWatchBlock,resolvePrWatcherBlock), each returning a{ skip }/ prompt-block result so the main function reads as a thin orchestrator. Prompt resolution (reviewers/author-filter/swarm directives plus the token-replacement chain) moves intobuildImprovementTaskDescription, and the provider/model/effort pin layering intoapplyProviderModelPins. Behavior-preserving — no change to task generation, park/convergence semantics, or dispatch ordering. - [issue-2918] Extract shared sprite test fixtures — the candidate-PNG + placeCandidate + lock-anchors chain duplicated across
reference.test.js,walk.test.js, andatlas.test.jsnow lives in onespriteTestFixtures.jsmodule, parameterized on each suite's own tmpdir. No behavioral change to any test. - Commit the
server/andclient/lockfiles — both were gitignored purely "to reduce merge noise" (bbeab937d), which left Dependabot able to see only the ~45 dependencies declared in theirpackage.jsonfiles and blind to ~560 transitive packages; the repo's entire alert history is one alert against the root lockfile, whose tree has a single direct dep (pm2). CI'snpm install --prefix server|clientsteps becomenpm ci, so the two trees holding all application code now resolve deterministically instead of re-resolving on every run and on every user's install.setup-node's npm cache keys off all three lockfiles.browser/package-lock.jsonstays ignored (itsnode_modulesis committed instead). Unrelated to the npm-workspaces revert inb743222be, which was about exFAT's lack of symlink support. - Apply the mergeable Dependabot bumps in one commit — server
vitest/@vitest/coverage-v84.1.9→4.1.10 andnode-pty1.2.0-beta.10→beta.14; clientreact/react-dom19.2.7→19.2.8,vite8.0.16→8.1.5, and@tailwindcss/postcss4.3.1→4.3.3. Applied together with regenerated lockfiles because the individual PRs predate lockfile tracking and each ERESOLVE'd in isolation: the two vitest packages must move in lockstep,@tailwindcss/postcsswas stranded a patch behind the already-mergedtailwindcss4.3.3, and Dependabot'sreact-domPR would have leftreactmismatched at 19.2.7. Holding backundici8 (breaks the DNS-rebinding connect-time IP pinning insafeUrlFetch.js, #1859) andeslint/@eslint/js10 ([email protected]peers at^9.7). - [issue-2845] Standardize the
loraTrainingsample 404 error envelope — newsendErrorResponse/buildErrorEnvelopehelpers inserver/lib/errorHandler.jsbuild the shared{ error, code, timestamp }body in one place;asyncHandler,errorMiddleware, theres.sendFile404 callback inserver/routes/loraTraining.js, and theauthGate401/403 short-circuits now all route through it, so responses raised outside a handler's catch no longer omitcode/timestamp. Mid-response failures (SSE/streaming routes) now delegate to Express's finalhandler so the socket is destroyed instead of the request hanging. - [issue-2837] Break the agent-lifecycle circular-dependency cluster —
finalizeAgent/releaseAgentLane(plus the success-criteria + output-hook helpers) move toserver/services/agentFinalization.js, the summary extractors toagentSummaryExtraction.js, runner recovery toagentRunnerSync.js, and the runner output batchers toagentRunnerOutputBatchers.js. With those leaves in place the two static cycles (agentLifecycle↔agentCliSpawning,agentLifecycle↔agentTuiSpawning) are gone, and threeawait import()cycle-dodges —handleOrphanedTask, the spawner's init-time lifecycle/management lookups, andflushRunnerOutputBatcher— become plain static imports.agentLifecycle.jsstill re-exports every moved symbol, so no import path changes for callers. NewagentImportCycles.test.jsre-derives the static import graph and fails if a cycle is reintroduced. - [issue-2844] Drop the
@dnd-kit/utilitiesdependency — the package was pulled in only forCSS.Transform.toString()at three drag-and-drop sites (influence chips, CoS sortable tasks, video timeline blocks). A ~10-line owned helper,dndTransformToCssinclient/src/lib/dndTransform.js, replaces it with byte-identical output (roundedtranslate3d+ verbatimscaleX/scaleY,undefinedfor a null transform), and the direct dependency is removed fromclient/package.jsonand its lockfile. It remains in the tree only as a transitive peer of@dnd-kit/core/sortable, which stay. - [issue-2846] Add a client
sleep(ms)helper and rebuilduseLocalStorageBoolonsafeStorage—client/src/utils/sleep.jsmirrors the server helper and replaces the three duplicated inline delays (lazyWithReload's retry backoff,staleChunkReload's purge race timeout,voiceClient's decoder-tick wait).useLocalStorageBool/useLocalStoragePersistednow delegate their four hand-rolledtry/catchstorage helpers toclient/src/lib/safeStorage.js, which gains asafeWriteJsonStoragethat guardsJSON.stringifyalongsidesetItem. The JSON read keeps a private sentinel so a storednullstill runs the caller'sparsemigration instead of collapsing into "missing". - [issue-2899] Fold the Creative Director / Music Video / Sprites
selectBackend()dispatchers intopgFileFacade— Creative Director, Music Video, and Sprites each memoized their own copy of the same file-vs-Postgres selector (already drifted: differing error text, differing test-mode predicate). A newcreateRecordStoreBackendSelector({ label, loadFileBackend, loadDbBackend, requireDbMessage?, isTestMode?, onDbReady? })inserver/lib/pgFileFacade.jswraps the existingcreatePgFileFacade/resolvePgBackendbackbone for stores whose backends are whole modules rather than built objects, so the escape-hatch posture, the health-check →ensureSchema→ one-time-migration bring-up, and the selection memoization live in one place. Public store surfaces are unchanged (getProjectsBackendName()still reports'file'/'postgres'), each store keeps its own requirement message, and Sprites keeps its strongerisTestRunner()test-mode signal via the newisTestModehook — no gating semantics were weakened. The selector also exposes areset()test seam matching the_reset<X>Backend()exports on the artists/tracks/albums/authors stores, which are folded in by #2909 below. - [issue-2909] Fold the artists/tracks/albums/authors
selectBackend()dispatchers intopgFileFacade— the four music/author record stores were the last holdouts still hand-rolling the same memoized file-vs-Postgres selector that #2899 centralized ascreateRecordStoreBackendSelector; each now delegates to it, so the escape-hatch predicate, the health-check →ensureSchema()bring-up, and the selection memoization live in exactly one place. Public surfaces are unchanged —get<X>BackendName()still reports'file'/'postgres',_reset<X>Backend()still clears the memo (now via the selector'sreset()seam), each store keeps its requirement message char-for-char, and all four keep their existingNODE_ENV==='test'test-mode predicate. One behavioral improvement falls out of the shared backbone: the selection promise is memoized rather than only the result, so two concurrent first calls can no longer both import the Postgres module. - [issue-2842] Barrel-split
checkInfra,layeredIntelligence, andseriesAutopilotby sub-domain — the three remaining ~2.6k-line multi-domain server files each become a thin re-exporting barrel over a new same-named directory, mirroring thearcPlanner.jssplit (#1152).server/lib/editorial/checkInfra.js→checkInfra/{externals,taxonomy,revealForeshadowing,craftStages,voiceCanon,structureStages,povAndNames,canonScaffolding,llmRunner,readability,rosterCast,sceneAnalysis,proseDensity,comic}.js;server/services/layeredIntelligence.js→layeredIntelligence/{constants,config,dedup,proposal,outcomes,awareness,gates,prompt,runCli,sources,semanticDedup,forgeFiler,jiraFiler,planFiler}.js;server/services/pipeline/seriesAutopilot.js→seriesAutopilot/{state,config,convergence,stepResolver,session,childRuns,editorialSteps,visualSteps,revisionSteps,dispatch,dryRun,orchestrator}.js. No caller changes — every existing deep import still resolves through the barrel, andseriesAutopilot's__testingbundle is reassembled from the split modules. Three new*Barrel.test.jssuites pin the contract (every module export reachable through the barrel as the same object, no cross-module symbol collisions). The largest resulting module is 439 lines, down from 2,635. - [issue-2841] Convert long positional parameter lists to options objects —
appendIntervalOccurrences(8 args) and its siblingappendCronOccurrencesinserver/services/workflow.js,scaffoldVite(7 args) and the equally-longscaffoldPortOSinserver/routes/, andcreateAgentRun(6 args) inserver/services/agentRunTracking.jsnow take a single destructured options object, matching the codebase's dominant convention and removing the "which of these five interchangeable numbers goes where" hazard at each call site. All call sites updated;scaffold.test.jsgains two regression tests pinning the named-options dispatch shape. Behavior-preserving. - [issue-2890] Take the held-back
undici8 bump — the failingsafeUrlFetchpin test turned out not to be aboutconnect.lookupat all (undici 8's connector still honors it, so the DNS-rebinding IP pin is expressed exactly as before). undici 8 dropped v7's implicit wrapping of the legacyonConnect/onHeaders/onCompleterequest-handler shape, so a bare undici-8Agenthanded to the built-infetchof any Node that still bundles undici 7 (22/24/25, including the 24.x CI matrix) throwsInvalidArgumentError: invalid onRequestStart method— and becausefetchGuardedswallows network errors to null, every guarded fetch would have silently returned null rather than falling back to an unpinned connect. The new exportedbuildPinnedDispatcher()wraps the pinnedAgentin undici 8's documentedDispatcher1Wrapper, which both the legacy and the v8 handler contracts accept, so one build works across Node 22→26. The end-to-end pin proof now runs through that production factory instead of a hand-rollednew Agent(...), so it also guards the runtime-compat half. - [issue-2881] Extract a shared cloud-CLI image-provider resolver —
resolveCloudProviderConfig(settings, mode)in the newserver/services/imageGen/cloudProviderConfig.jsowns the enable-gate + job-param bundle that seven dispatch sites (the image-gen route, the dispatcher'sgenerateImage/checkConnection, first-pass gen, LoRA dataset gen, universe batch render, character reference sheets, pipeline visual stages) each duplicated once per cloud backend.resolveModeinvisualStageHelpers.jsbecomes a candidate walk over anisModeUsablepredicate instead of a ladder that grew twoifs per backend, and the two providers' no-image error narrations now sharebuildNoImageReason. Behavior-preserving except that a queued grok render's response now reportsmodel: "grok-imagegen"(it previously reported nothing) and a codex queue row records the effective model instead of an unset one — both already the value the provider renders with. The provider-module lifecycle harness (grok.js structurally copying codex.js) stays deferred until a third cloud CLI arrives, per the issue's acceptance criteria. - [issue-2847] Confirm and harden the CyberCity intel tab bar — the hand-rolled
role="tablist"inCityIntelPanestays hand-rolled (its cyan/font-pixelHUD skin and severity-tinted count chips would need a one-off variant in the sharedui/TabPills, which no other call site would use) and now carries a comment saying so, so future audits skip it. The ARIA it duplicates is corrected in the process: the collapse toggle moves out of the tablist (it was an invalid non-tab child), each tab gainsid/aria-controlspaired to a realrole="tabpanel", rovingtabIndexplus Left/Right/Home/End keyboard navigation, andaria-expandedon the collapse toggle;aria-selectednow tracks the selected tab rather than dropping to false while the pane is collapsed. The three buttons are driven from the already-exportedCITY_INTEL_TABSinstead of triplicated markup. - [issue-2839] Extract the boot sequence from
server/index.jsinto a bootstrap service — the ~600 lines of inline startup orchestration (data migrations, collection-schema verification, AI Toolkit construction + runner registration, ~40 fire-and-forget service inits/schedulers, the ordered instance/sync/media-queue/DB chain that ends inhttpServer.listen(), and the graceful-shutdown state machine) move toserver/services/bootstrap.jsasbootstrapServices()/runBootSequence()/registerShutdownHandlers().index.jsdrops from 1259 to ~460 lines and is now HTTP/Socket.IO construction, route registration, and three calls into the bootstrap service. Boot ordering, the DB fail-fast gate, and shutdown behavior are unchanged; no new LLM calls at boot. - Pick the sprite import source from the managed-apps list instead of typing a path — the Sprites import panel replaced its free-text "Source root path" input with the shared
AppContextPicker, loadingGET /api/appson open and filtering to non-archived apps that declare arepoPath; the selected app'srepoPathbecomes the importer'ssourceRoot. Sprite pipelines always live in a repo PortOS already manages, so the typed path was a transcription hazard with no upside, and the picker sets up the eventual sync-from-app flow.AppContextPickergains anemptyRepoTextprop — its hardcoded "using default PortOS context" empty state would be wrong here, since sprite import has no PortOS fallback; the default is unchanged for existing callers. - Fix two cross-schema breaks in the sprite detail endpoint that were hiding imported walk data —
GET /api/sprites/:id500'd for every imported character becausegetWalkState()'s run-sort called.localeCompare()oncreatedAt, which the ElsewhereAcres source pipeline stamps as a Python epoch-seconds number rather than PortOS's own ISO string; the comparator now normalizes both shapes to milliseconds. Separately, each run'sstripPreviewfield is now normalized through the existingtoRecordRelativeAssetPath()helper (server/services/sprites/paths.js, mirroring the same rebase-on-read conventionreference.jsalready uses for anchor paths): the source pipeline names the fieldstripPreview.pathand anchors it at its own repo root, so PortOS'sstripPreview.stripPath-reading client 404'd on every animated walk-loop thumbnail even once the 500 was fixed. Neither fix rewrites the imported files on disk — normalization happens in memory at read time, so the importer's hash-verified provenance is untouched. New regression coverage inwalk.test.js. Filed #2924 to cover the one remaining gap:pioneer'seastdirection was approved from an imagegen-redraw pipeline the grok-video-only walk viewer doesn't model, so it shows "approved" but no animated thumbnail. - Accessibility audit pass: switches, icon-only buttons, focus rings, and the media lightbox — four hand-rolled toggle switches (CoS Dynamic Avatar, Digital Twin ingestion, scheduled backups, Sharing import mode) were announced as plain unlabeled buttons with no on/off state; they now carry
role="switch"+aria-checked+ a name. A dozen icon-only buttons gained accessible names (cron cancel, folder "go up", rapid-reader chunk size, JIRA project clear, writing-sample remove, memory-practice mark correct/incorrect, calendar icon picker) and the process/agent expand carets gainedaria-expanded. Six inputs that setfocus:outline-noneinside an unstyled wrapper were invisible when focused — their containers now carryfocus-within:border-port-accent, and four standalone selects/buttons gained afocus-visiblering. The Sprites asset preview moved from a click-to-dismiss overlay to the shared<Modal>(Esc, focus trap, focus restore), andMediaLightbox— which deliberately opts out of<Modal>— now supplies its ownrole="dialog"/aria-modaland focus trap instead of letting Tab walk out into the page behind it. ~20 unlabeled toolbar controls on the highest-traffic pages (Runner, Review, Wiki, Tribe, Loras, Media History, Media Collections, Prompt Manager) gained labels. A newclient/src/a11yConventions.test.jsguard fails the suite if a new hand-rolled full-screen backdrop or an unlabeled toggle-switch button is introduced; the remaining unlabeled-control backlog is tracked inPLAN.md. - Heal the
grok/run-path residue that blanked imported sprite walk cycles (migration 203) — imported characters whose source pipeline anchored run paths atart-source/sprites/<id>/grok/…rendered every walk direction's "approved" badge over an empty cell (observed onpioneer: 7 of 8 directions blank, only the imagegen-redraweast— which never carried agrok/segment — animated). Migration 202 physically relocated those runsgrok/→runs/but itsstartsWith('grok/')neutralizer only matched record-relative paths, so it left every repo-anchored…/sprites/<id>/grok/…string pointing at the now-nonexistent directory — the read layer stripped theart-source/…prefix togrok/…, which no longer resolved, sogetWalkStatecouldn't find the run behind each direction and the strip-loop preview URL 404'd. New migration203-heal-imported-grok-run-paths.jsrewrites the leftoversprites/<id>/grok/segment toruns/(preserving theart-source/…provenance prefix and image-byte shas, exactly as 202 preserved its anchoring) across the selection, walk-set, run records, and postprocess manifests, then recomputes the samerunManifestSha256/selectionSha256/walkSetSha256cascade so the healed state is internally consistent. Gated to records 202 already moved (runs/present,grok/gone) that still carry the residue — a self-consistentgrok/-layout record is left untouched. Non-path strings that merely contain "grok" (grok-game-animation-frames-run,local-postprocess-of-existing-grok-session-video) are unaffected. - Flag a missing walk strip instead of rendering a silent blank card — a sprite direction whose packed
…-strip.pnghad gone missing on disk (howpioneer'snorth/weststrips vanished — dropped during agrok/→runs/relocation while the record still advertised the path) rendered its "approved" badge over an empty cell:getWalkState's native run path handed the client astripPreview.stripPaththat 404'd into a blank CSS-background-imageStripLoop, unlikeloadRedrawRunwhich already returns null on a missing strip.getWalkStatenow checks the strip on disk (normalizeMissingStrip, mirroring the existingnormalizeStaleRenderingread-time normalization — never persisted) and, when absent, flags the runstripMissing: trueand drops the danglingstripPathsoStripLoop/the trim button don't render it. The walk card shows an explicit "strip missing" indicator pointing at the recovery that actually works for that direction's state — regenerate an unapproved/unfinalized direction, unlock a finalized set — rather than overloading the run'serrorstatus (which would offer a "Retry postprocess" that 409s on a finalized/approved direction and pair a red error with the green "approved" ✓). As defense-in-depth (a background-image fires noonError),StripLoopalso preloads the strip via anImageprobe and shows a placeholder if it fails to load for any other reason. - Variable walk-cycle frame count + adjustable walking speed, reprocessable from the clip already on disk — walk cycles were hardcoded to 8 frames at 12fps, a 0.67s cycle that reads as a run rather than a walk. Two knobs are now user-controlled in the Walk Cycles panel: frame count (6–16, default 12 — more frames = smoother) and playback speed (4–24 fps, default 10 — lower = slower/more deliberate), with a live "N.NNs / cycle" readout. The deterministic packer resamples the detected gait window down to the chosen count (it never upsamples — the count is bounded by the source frames in one cycle) and stamps the chosen fps as playback metadata, so a slower, smoother walk needs no regeneration: a per-candidate "Reprocess" rebuilds the loop from the clip already on disk at the current count/speed with no grok call. The runtime atlas grid follows the set's actual frame count (idle + N walk phases), read from the approved run manifests and required identical across all eight directions, with
walkFrameCount/walkFpsstamped into the geometry manifest for the external game to read; the historical 8-frame packing keeps its named 2-beat gait-phase labels for byte-identical back-compat. A new per-direction Reopen re-opens just one approved direction (finer-grained than the whole-set Unlock) so a single too-fast walk can be redone without disturbing the other seven. The Clip length picker now offers only grok's real 6s/10s options — shorter values were a silent no-op (grok clamps to ~6s), and clip length only affects how much source footage the packer has to choose from, not the cycle's look. - Render the sprite turnaround sheet as a large square instead of a wasteful strip — the locked "identity root" turnaround preview in the Reference workflow used a fixed 192×128 landscape box, but the sheet is a square PNG (four figures in a 1:1 canvas);
object-containletterboxed it into a ~128px center strip and wasted the sides. It now renders as a large responsive square (w-full max-w-sm aspect-square, stacking the "frozen · identity root" caption below it on mobile), so the four-view sheet is shown as big as its column allows. The candidate thumbnails and locked directional-anchor previews (also square PNGs previously fit into shorth-24boxes) switch toaspect-squaretoo, so every reference image in the panel fills its cell instead of floating in a center band. - [claude-default-opus-5] Default Claude CLI/TUI and Bedrock providers now use
claude-opus-5. The seededclaude-code,claude-code-tui,claude-code-bedrock, andclaude-code-tui-bedrockproviders ship the new opus tier as their default/heavy model (claude-opus-5; Bedrock:global.anthropic.claude-opus-5[1m]), andclaude-opus-5leads the Anthropic API model-refresh list. The Bedrock[1m]long-context variant is carried forward and mapped like-for-like — a box pinned to…opus-4-8[1m]lands on…opus-5[1m], one pinned to the plain id lands on the plain id — so the bump never silently changes which context tier a Bedrock request asks for.data.reference/providers.json, the aiToolkit sample defaults, and the PortOS scaffolder are updated together, and migration206-claude-default-opus-5.jsrewrites existing installs'data/providers.jsonon the nextupdate.sh— conservatively, matching migration 058/153: only an exact match on the prior seeded model list is rewritten (a curated list is left alone), a tier pointer still parked on a now-absent opus-4-8 id is repaired on its own, and still-current haiku/sonnet pins are preserved.claude-opus-5is added to the usage cost table at Opus-tier rates ($5/$25 per MTok), and the/opus/ifamily rule now reports it as the tier's rate anchor. - [issue-2991] Support portless desktop managed processes and an app→sprite reverse lookup — a managed app can now describe a GUI/desktop process (
type: 'desktop', e.g. a Godot game binary) with no HTTP port, and the port-dependent surfaces degrade gracefully instead of faking a port. Start now launches a desktop app from its ownstartCommandswith PM2autorestartOFF (a window closing is a normal exit, not a crash to loop on —startWithCommandgained an{ autorestart }option), skips the web-server ecosystem path, and refuses to spawn a second instance when the process is already online. Status reports from the supervisor alone (a clean quit renders as stopped, never "unreachable"), and the null-tolerant reserved-port collection already excludes absent ports. The "Open UI" launcher stays hidden for a portless app (getLaunchUrlsreturns all-null) rather than linking toundefined. NewGET /api/apps/:id/sprite-bindingsreverse-lookup lists the sprite records whosepublishBinding.appIdtargets an app, surfaced on the app Overview tab as "Published Sprite Assets" with their destination paths — making "PortOS is the creative source for this app" legible from the app side. Publishing itself still resolves purely fromrepoPath, with no dependency on registered processes. - [issue-2953] Finish the image-to-3D workspace: file-upload picker, a per-record detail route, and a records library — the
/media/3dpage now doubles as a library, listing everyimage_to_3d_modelsrecord (newest-first) as a deep-link card into a new/media/3d/:iddetail view. The detail page mounts the reusableGlbViewer(with Download .glb) once a render landsready, polls whilegenerating, surfaces the runner's actionable error onfailed, and offers re-render + delete (inline-confirm) — the URL is the source of truth for what's open, per the ID-based deep-linking convention.GalleryImagePickergains an optionalallowUploadprop: an "Upload" control saves a file off disk into the gallery via the existing peer-syncablePOST /api/image-gen/upload, then selects it exactly like a gallery image, so an uploaded photo feedscreateImageTo3dModelthe same way a render-history pick does. No new backend surface — everything runs against the endpoints that landed in #2973. - [issue-3043] Let a frozen imported walk set be unlocked for regeneration — a character imported from the source pipeline whose walk set was finalized without its per-run source clips (the phase-1 import shape) had no reachable action at all: unlock and reopen both 409'd
LEGACY_IMPORTED_WALK_SET(nothing to re-derive from), the cycle-target PUT 409'dWALK_SET_FINAL(set is frozen), and the workflow header rendered a deadimported · no clips to re-derivelabel with no button behind it — while the drift banner told the user to re-derive. The guard's premise was too narrow: it reasoned only about re-derivation, but a walk render is conditioned on the direction's locked anchor, so such a set can always be rebuilt from scratch — it just costs a new render per direction instead of a free local repack.POST /walk/unlocknow accepts{ acknowledgeNoClips }, honored only where the server has proven every stranded direction has a locked anchor to regenerate from (an acknowledgement can never be the thing that strands a set — a stranded direction with an unlocked anchor still refuses, with the original error code).getWalkStatestampswalkSet.unlock = { blocked, stranded, acknowledgeable }from the same resolver the gate itself uses, so the button a client offers and the 409 it might hit are computed from one reading of the set, and the read hands the gate the clip evidence it already resolved rather than re-probing disk. The refusal keeps the singleLEGACY_IMPORTED_WALK_SETcode and names the override in its message, following theFORK_SYNC_REQUIRED/acknowledgeForkprecedent — whether a block is overridable rides on the stampedunlock.acknowledgeableclients already read, not on a second code string. The Walk Cycles header replaces the dead label with an Unlock anyway panel stating the cost as visible text rather than a tooltip (one new grok render per direction, every approval dropped, nothing deleted on disk), and the Loop Trimmer disables itsCycleTargetwhile the set is frozen — it was enabled and 409'd on change — with the same two unlock offers below it. Two adjacent bugs surfaced while proving the escape is real and are fixed with it:startWalkGenerationImplreadmanifest.chromaKeyalone, but the importer stamps the key it used on the RECORD and copies a manifest carrying none — so every fully-locked source-pipeline import reportedMAIN_NOT_LOCKED("no frozen chroma key") and refused every Generate; the lookup now falls back manifest → record, the order reference.js already resolves it in at eight sites. The postprocess path carried the SAME missing rung (run.chromaKey || manifest.chromaKey) and died inside sharp withInvalid hex color: undefinedon any reprocess of an imported run — a parser complaining about its argument, naming neither the field nor the record behind it. The atlas compile read it manifest-only too, so the recovery path this issue opens (unlock → regenerate all 8 → approve → freeze) would have dead-ended there at a 409 after eight paid renders. All four sites now share oneresolveChromaKey({ manifest, record, run })(run → manifest → record), and a genuinely keyless record is refused by name before reaching the color parser. And the render path's anchor/chroma preconditions are now one sharedresolveWalkRenderability(), so the gate that promises "every direction can be regenerated" and the render path that has to deliver it cannot drift — a predicate checking less than the render requires is exactly how an acknowledgement walks a user into the dead end it promises cannot happen. - [issue-3049] Pin the walk aligner to the character's torso, not its bounding box — a re-derived walk cycle slid visibly left and right as the legs scissored instead of walking in place; measured on a real packed 12-frame strip the torso travelled 29px in a 384px cell.
alignFramescrops each frame to its own alpha bbox and composites the crop atdx, and since #3021dxwas a single shared value — butsourceRootXs[i]is measured relative to that frame's own crop, so a constantdxpinsbbox.left(the leading arm/leg extremity) and lets the body swing by the full spread of those offsets. The emitted manifest showed it exactly:hipOffsetsspanning 26.2px againsttranslationswhose x was122for all twelve frames, and the strip itself hadbbox.leftat exactly 122 in every cell while the hip swung 179→205. #3021's premise was right (the old 42%–76% hip/leg band did migrate as the legs scissored) but freezingdxswapped it for a worse landmark: measured in absolute source coordinates over one 6s clip, the candidates rank torso 14px · hip 17px · head 24px · bbox.left 44px · legs 52px. SorootXnow measures the torso band (30%–58%, above the knees — the visual mass a viewer tracks and the part genuinely stationary in a walk-in-place) anddxis per-frame again, computed from each frame's own crop offset so the shared landmark lands on the pivot every time; that cancels the crop variation and the residual drift grok leaves in a "walk in place" clip (~14px).rootXis shared withatlas.jsfor idle-frame registration, so both moved together. The #3021 guard had asserted the mechanism (new Set(translations.map(([dx]) => dx)).size === 1) rather than the behaviour, and its own fixed-torso/swinging-arm fixture passed while the body slid 30px — it now measures where the torso lands in the output frames and requires ≤1px spread, which pinning the crop cannot satisfy. Re-deriving a real direction: torso spread 29px → 1.0px, with the hip band still swinging 8px andbbox.leftvarying 9px (limbs moving, body still). - [issue-3050] Spread walk-cycle phases evenly when the gait period doesn't divide the frame count — a re-derived walk could read as a limp rather than a smooth loop: the timing was uneven, not the seam (which is why
validationnever flagged it — the loop closed fine).selectCycleIndicesresamples the detected window withpyRound(i * cycleLength / frameCount), andpyRoundis Python's round-half-to-even, so a.5tie breaks toward the even integer — meaning the tie's direction depends on the parity of the integer part and consecutive ties resolve opposite ways. A 15-frame gait over 12 phases landed its ties at 2.5→2 (down), 7.5→8 (up), 12.5→12 (down), putting double-steps at positions 2, 5 and 10 — spacings of 3 and 5, an arrhythmic hitch. The run manifest corroborated it: those three transitions carried ~28% more motion than the single-step median. Phase indices are now distributed with integer half-up (floor((i * cycleLength + frameCount/2) / frameCount)), which resolves every tie the same way, so the unavoidable stretch is spread evenly — 15→12 moves its double-steps to 1, 5 and 9 (gaps of 4 and 4). This is the one place that deliberately does not usepyRound: the pixel math keeps it for byte-compatibility with the source pipeline, while phase selection is a perceptual-quality question and only it has a tie problem. The legacy 12→8 default was affected too (strides2,1,1,2,2,1,1→2,1,2,1,2,1,2), as were 18→12 and any other ratio landing ties at regular intervals; 16→12, 13→12 and 12→12 were already even and are unchanged. The old golden-array test asserted the banker's-rounding output directly; it is replaced by a property assertion — at most two distinct stride lengths, differing by 1, with the longer ones evenly spaced — checked across five ratios so a future change to the resample has to preserve it for all of them. - [issue-3052] Stop the requested phase count from hiding a shorter gait period — a walk read as janky leg movement (the legs visibly jump mid-loop) even though the endpoint seam scored well and validation passed.
selectCycleIndicessearched only windows of at leastframeCount, on the grounds that a shorter one cannot yield that many distinct source frames — but that floor also made any gait whose real period is shorter invisible to the detector. On a real clip the gait ran 11 frames against 12 requested phases, so the search could only offer a 15-frame window: 1.36 gait cycles, which replays a third of a stride. It scored well because a front-facing walk is near-symmetric, so 15 frames lands on the mirrored pose and an image-distance metric reads that as the same one —endpointSeamScore0.53 while the legs were plainly wrong. The detector now probes for the true period without the output-count floor and prefers it when it is only mildly shorter (MIN_PERIOD_RATIO = 0.8), holding one frame to reach the requested count: a far smaller artifact than replaying part of a stride, and bounded so a much shorter period still falls back to the longer window.cycleSelection.heldFramesrecords how many phases repeat, andvalidateFramestakes it so an intentional hold is not confused with the "packer picked the same frame twice" failure that guard exists for. Across one character's seven directions the probe found better (lower-seam) windows on five — south 15→11 (0.531→0.476), south-east 12→11 (1.082→0.438), north-east 12→11 (0.985→0.600). Rejected on evidence: re-extracting atWALK_FPS * frameCount / periodso the period lands exactly on the count was built and measured, and is wrong twice over — ffmpeg'sfpsfilter picks the nearest source frame, so any rate that is notsourceFps / ksamples unevenly (13.09fps from a 24fps source gives source-frame steps[2,2,2,1,2,2,2,2,2,1,2,2], widening the adjacent-motion range from 2.2× to 11×), and extracting denser gains nothing because the clip is 12fps content encoded at 24fps with every frame duplicated (adjacent scores at 24fps alternate1.29, 0.21, 2.65, 0.10…).WALK_FPS = 12is already the native content rate, so an 11-frame period genuinely cannot yield 12 distinct phases. - [issue-3044] Let a clipless imported walk direction be reopened for regeneration — per-direction Reopen now uses the same server resolver and informed
acknowledgeNoClipsescape as set-wide Unlock, with the{ blocked, stranded, acknowledgeable }result stamped on its run. A blocked card explains the one-new-render cost and offers an inline Reopen anyway confirmation when its locked anchor makes regeneration safe; otherwise it shows no guaranteed-409 control. The copy is shared with the Unlock panel, so their cost and recovery wording stay in sync. - Save the Universe Builder draft before a batch render —
/rendercompiles prompts from the persisted universe, but every count and label in the render scope came from the in-memory draft. Adding a landscape (or any variation) and clicking Render before saving therefore 400'd with "No prompts to render — add canon entries, variations, or composite sheets first", and editing an existing variation's prompt silently rendered the stale text.useUniverseRendernow flushes a dirty draft through the sameflushDraftIfDirtypreflight the LLM actions already used, and aborts the render when that save fails. - Pick a universe to style renders from the Quick Image dashboard widget — the widget gains a "Universe style" dropdown that prefixes the prompt with that universe's embrace tokens and appends its avoid tokens to the negative, using the same
composeStyledPromptcomposition the Universe Builder's canon renders use. The selection persists across dashboard visits, is carried into the "Edit" handoff to the Image Gen page, and is ignored if the universe is later deleted. Backed by a newGET /api/universe-builder/stylesthat projects to{ id, name, embrace[], avoid[] }in SQL — the widget mounts on every dashboard visit and the full universe list ships every canon bible.
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.33.0...v2.34.0