Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Release v2.26.0
Released: 2026-07-02
Highlights
- Sketch & Annotation Canvas (phase 1). Draw and erase over any generated image, pick per-stroke color and brush size, undo/clear, then save your markup and export a flattened PNG. Works with mouse, pen, and touch down to phone widths, and is reachable from ⌘K and voice ("annotate").
- Tribe relationship care got proactive. Touchpoints now log automatically from synced calendar events and messages (deterministic matching, no AI calls), a new "who needs care" surface appears as both a Proactive Alert and a dashboard widget, and the overdue-contact cadence rules are single-sourced so the page, widget, and alert can never drift.
- Two new dashboard widgets + an interactive architecture map. A Feeds unread digest and a cross-domain health-logging streak join the dashboard, and a new Integration Flows doc visually maps how ~60 PortOS components talk to each other across 10 end-to-end flows.
- Catalog ingredient media now accepts uploads and voice memos. Drag-and-drop or pick image/audio/video files, or record a voice memo that's transcribed and attached — all federated to sync peers as real bytes, with inline players for audio and video.
- Switch project workspaces from ⌘K and voice. A new workspace-switch action snapshots the workspace you leave and reconciles the target project's git branch, shell sessions, and scoped tasks; CoS auto-snapshots a workspace before dispatching an agent to a different repo.
- Security: closed two DNS-rebinding TOCTOU gaps. RSS feed fetches and catalog URL ingest (via Chrome/CDP) now pin the connection to the SSRF-vetted IP and re-verify on every redirect, so a rebinding DNS answer can't steer a fetch to the LAN or cloud-metadata after validation passes.
- Deep-linkable selections everywhere. Authors, music artists/albums/tracks, sharing buckets, prompt stages/variables, and JIRA reports now encode the open record in the URL — shareable, bookmarkable, reload-safe, and reachable from ⌘K/voice/back button.
- Clear delete confirmations. Destructive actions across rounds, universes, series, share buckets, issues/episodes, Writers Room, Ask, and the Universe Builder now show an explicit inline "Delete? / Cancel" prompt instead of a hidden second click, with comfortable 44px touch targets.
- Accessibility sweep. ~260 config-form label/input pairs across ~80 files now flow through a shared
FormFieldwrapper so clicking a label focuses its field and screen readers announce the pairing — styling preserved verbatim. - UI polish. Layout-shaped loading skeletons for the DataDog/Jira/GitHub pages, a full-width Story Builder index, design-token cleanup of the last hardcoded colors, consolidated shared formatters, and fixes for double error toasts across ~50 call sites.
- Reliability fixes. CoS
/do:next --swarmorchestrators are no longer reaped mid-merge (which left PRs half-cleaned), a POST daily-reminder false-nudge after a timezone change is fixed, and a batch of v2.25.0 release-review robustness follow-ups landed.
Media
- Sketch & Annotation Canvas (phase 1): draw over any generated image, save, reload, and export a flattened PNG. Media History and Collection image cards gained an "Annotate" action that opens a new deep-linkable
/media/annotate/:mediaKeypage — a plain<canvas>stroke layer over the image with draw/erase, per-stroke color + brush-size, undo, and clear. Pointer events cover mouse, pen, and touch (touch-action: none, so drawing works at 360px phone width without scrolling the page). Strokes persist as a per-image sidecar (data/media-sketches/, JSON vectors stored in natural-pixel space so they restore exactly at any display size) plus a flattened PNG export, via a new Zod-validatedGET/PUT /api/media/sketches/:key(retrievable at/png). Reachable from ⌘K and voice ("annotate"/"sketch"). Phases 2 (feed the markup back into img2img re-render) and 3 (blank-canvas storyboard) remain open on #2036.
Dev Tools
- New interactive Integration Flows doc at
/devtools/flows. A single-page visual map of how PortOS packages talk to each other: ~60 components (client pages, client services, routes & sockets, server services, server lib, data stores, external systems) laid out in columns, with 10 documented end-to-end flows — Create Image, Start a Story, Voice Command, CoS Agent Run, Scheduled Task, Start/Stop App (PM2), Shell Session, Run Backup, Peer Sync, and Self-Update. Clicking a flow dims everything else, draws its numbered hops with transport-coded edges (HTTP / SSE / Socket.IO / EventEmitter / process spawn / file+DB I/O), and annotates what's passed at each hop; clicking a node shows its file, role, and the flows it participates in. The renderer (client/public/flows.html, dependency-free) is driven entirely byclient/public/flows.json, so new flows are documented by editing JSON — an integrity test (client/src/lib/flowsDoc.test.js) verifies every referenced node/transport resolves and every referenced source file still exists, so refactors can't silently rot the doc. Launchable from the Dev Tools sidebar, ⌘K ("Flows"), and voice nav; selected flow is deep-linkable via?flow=, and "Open full screen" opens the standalone doc in a new tab.
Security
- RSS feed fetches now pin the connection to the SSRF-vetted IP, closing a DNS-rebinding TOCTOU.
feeds.jspreviously resolved a feed hostname, verified it wasn't private, then made a separate, unpinned fetch — undici re-resolved at connect time, so an attacker's DNS could answer public during validation and private (home-network / cloud-metadata) at the actual connect. Feed fetches now route through the sharedsafeUrlFetchguard (the same one moodBoard/Pinterest uses since #1859): the hostname is resolved once and the connection is pinned to that exact vetted address, re-validated and re-pinned on every redirect hop.safeUrlFetchgained a strictblockPrivatemode so feeds keep their historical block-all-private posture (an arbitrary user-added feed URL still can't be aimed at the LAN) while gaining the pin, and athrowOnUnsafe: falseoption so the feeds path returns its existing friendly "Could not fetch feed" result instead of a bubbled 400 (#2046). - Catalog URL-ingest (Chrome/CDP) now verifies Chrome's actual connection IP, closing the last DNS-rebinding gap. Catalog "ingest from URL" pre-checked the hostname with a
dns.lookupbut then handed the fetch to Chrome, which re-resolves DNS itself — so a rebinding answer could steer Chrome to a loopback/link-local/cloud-metadata address after validation passed (a TOCTOU the undici pin in #2046 couldn't cover for a browser). Ingest now navigates through a pinned path (navigateToUrlPinned) that opens a blank tab, subscribes to CDP Network events, then drives the navigation — verifying against Chrome's OWN reportedremoteIPAddressthat every main-frame hop (initial request, each HTTP redirect, AND any client-side navigation that fires during the post-load settle window) connected to a non-blocked address, failing closed (tab torn down, ingest refused) on any disallowed hop or a top-level navigation still in flight. The DOM read runs on the SAME pinned CDP session and is re-verified after the read, so no late navigation can slip between "stop monitoring" and "read the page" (#2068).
Workspace Contexts
- Switch project workspaces from ⌘K and voice, and CoS now auto-snapshots the workspace it leaves. A new
workspace_switchaction ("switch workspace to BookLoom", "restore my PortOS context") saves a snapshot of the workspace you're leaving, then reconciles the target project's saved context — git branch, in-repo shell sessions, scoped tasks — and reports what's still live to re-attach; it appears in the ⌘K palette and resolves by voice. When CoS dispatches a coding agent against a different app/repo than it was last working in, it now silently snapshots the previous workspace's context first (snapshot-only — no auto-restore, no LLM calls), so switching between repos preserves what each project looked like, visible on the Workspace Contexts page (#2035).
Catalog
- Catalog ingredient media now accepts file uploads and voice memos, replacing the two "coming soon" stubs. The ingredient Media panel gained an "Upload file" picker + real drag-and-drop of image/audio/video files (dropping a file, not just an in-app gallery tile, now attaches it) and a "Record memo" button that captures a WAV via the browser, transcribes it through the existing Whisper pipeline, and attaches the audio with its transcript in the caption. Uploads land in the matching federating library dir (images as PNG, audio, video) so a sync peer receives the bytes, not a broken reference — the same two-layer path gallery attachments already use. Audio and video attachments now render inline players in the panel (#2038).
Tribe
- Tribe touchpoints now auto-log from synced calendar events and messages (#2033). The Tribe model always supported
source: 'calendar'|'message'touchpoints but nothing produced them. You can now record known emails/handles on a person (new "Emails & handles" field), and whenever a calendar sync or message sync ingests an event/message involving that person, PortOS logs a touchpoint automatically — deterministic email/handle matching (plus exact unique-name fallback), no LLM calls. Calendar touchpoints dedupe per event id and only count events that have already happened; message touchpoints dedupe per thread + day so a long thread doesn't spam the timeline. Auto-logged touchpoints advancelast_contact_onso overdue/cadence status reflects them, and the Tribe timeline shows each touchpoint's source with an icon (Calendar / Message / Manual). Matching is pure and unit-tested (server/lib/tribeMatch.js); idempotency is enforced by a partial unique index on(person_id, dedupe_key). - "Who needs care" now surfaces outside the Tribe page — as a Proactive Alert and a dashboard widget (#2032). Overdue-contact status is now computed server-side (
getCareSummary/personCadenceStatusinserver/services/tribe.js, exposed atGET /api/tribe/care) as a single source of truth mirroring the Tribe page's cadence logic. Proactive Alerts gains acheckTribeCadence()check that emits "N people are overdue for contact" linking to/tribe(quiet when none are), and a new gatedTribe Caredashboard widget lists the most-overdue people (or an "all caught up" state), hidden entirely on installs with no Tribe people.
Delete confirmations
- Destructive actions now show a clear "Delete? / Cancel" prompt instead of a hidden second click. Deleting a round, universe, series, share bucket, issue/episode, or a Writers Room work/folder — and removing an Ask conversation or deleting a world in the Universe Builder — used to silently re-arm the same button on the first click, with nothing on screen telling you a second click was needed. Each of these now pops an explicit inline confirm/cancel affordance right where you clicked, so it's obvious what will happen and easy to back out. The pipeline's "replace existing scenes / pages / audio lines" extract buttons got the same treatment (an inline "Replace? / Cancel" row) instead of arming via a fleeting toast. Delete/confirm controls in the Writers Room library were also enlarged to a comfortable 44px touch target for mobile.
Deep-linkable selections
- Picking an author, music artist/album/track, share bucket, prompt stage/variable, or JIRA report now lives in the URL — so it's shareable, bookmarkable, reload-safe, and reachable from ⌘K / voice / the back button (#2025). These master-detail pages previously kept the open record in local state, so a pasted link or a reload always dropped you back on an empty list. Authors now open at
/authors/:id(/authors/newto create), the Music tabs at/music/:tab/:id, Sharing buckets at/sharing/buckets/:bucketId, the Prompt Manager via?stage=/?var=, and JIRA Reports via?reportApp=&reportDate=. Deleting or clearing a selection returns to the index, and a stale/deleted id now shows a "could not be found" fallback instead of a blank pane. (OpenClaw's session picker stays local by design — its sessions are ephemeral runtime state, not user-owned records.)
Accessibility
- Config form labels now focus their field when clicked and read correctly to screen readers. Many settings/config forms (AI Providers, DataDog, feature-agent config, message & calendar account setup, scheduled-task provider/model pickers, the agent world/schedule tabs, MeatSpace nicotine + POST drills, and more) rendered the label as a plain sibling of its input with no association, so clicking the label did nothing and assistive tech couldn't announce the pairing. These fields now flow through a shared
FormFieldwrapper that generates a stable id and wireshtmlFor/idautomatically, keeping the exact same styling (#2027). Remaining forms are tracked for a follow-up sweep (#2051). - The follow-up sweep wired the remaining config-form labels to their controls. Continuing #2027, ~130 more sibling
<label>+input pairs across ~40 files — agents (overview/list/published), digital-twin tabs, image-gen controls, media/prompt tools, MeatSpace panels, brain, CoS memory/resume, writers-room, and pages (PromptManager, VideoGen, Jira, Sharing, Loras, Security, ImageGen, Templates, Loops, Browser, and more) — now flow through the sharedFormFieldwrapper so clicking a label focuses its field and screen readers announce the pairing. Accessibility only: existing Tailwind classes are preserved verbatim, wrapping<label><input/></label>and radio/toggle group labels are left untouched, and controls whose custom component doesn't forwardidto a DOM input were deliberately skipped (#2051).
Layout
- The Story Builder index now uses the full desktop width instead of a single narrow column. The create form and the "Continue a story" session list previously stacked in one
max-w-3xlcolumn, leaving most of a 1280px+ screen empty. Above thelgbreakpoint they now sit side by side — form left, in-progress sessions in a fixed-width sidebar on the right — mirroring the POST launcher's two-column layout (#1986), so your existing stories are visible without scrolling. Belowlgthe columns stack exactly as before, so mobile is unchanged (#2030).
Dashboard
- Two new dashboard widgets surface previously invisible data: a Feeds unread digest and a health-logging streak. The Feeds Digest widget shows your total unread RSS/Atom count plus the top unread feeds by count and deep-links to Brain → Feeds — it consumes the existing
getFeedStatswrapper (now the endpoint's first real caller) so unread counts aren't recomputed. The Health Logging Streak widget mirrors the Activity Streak / Daily POST pattern: current + best cross-domain logging streak, a 7-day sparkline, and this-week counts per domain (alcohol, nicotine, workouts, body, blood pressure) via a newGET /api/meatspace/logging-statsaggregate, deep-linking to MeatSpace.feedsseeds into the Everything layout andmeatspace-streakinto the Health layout (fresh installs viaDEFAULT_LAYOUTS, existing installs via migration 156); both are gated hidden until there's data and render at mobile widths. Also normalized the workout/body/blood-pressure default log date to the local calendar day (matching alcohol/nicotine) so a same-day US-evening entry lands on today's streak/sparkline instead of tomorrow's UTC bucket (#2034).
Loading states
- The DataDog, Jira, and GitHub integration pages now show a layout-shaped skeleton on first paint instead of a centered "Loading…" line. Each page previously rendered a bare full-screen text message sized with
h-screen, which mis-sized under mobile browser chrome and jumped when the real content arrived. They now share aPageSkeletonthat reserves the header + card-grid dimensions (matching the loaded layout, using theport-*design tokens like the dashboard'sWidgetSkeleton), so there's no post-load layout jump and no full-height wrapper fighting Layout's scroll (#2029).
Internal
- [issue-2073] Docs editorial pass: four shipped feature docs rewritten from plan-tense to current-state.
docs/features/digital-twin.md,openclaw-operator-chat.md,post.md, andwriters-room.mdstill read as pre-build plans/specs ("Planned Phases", "Proposed capabilities", phased roadmaps) despite describing shipped features. Each was rewritten as current-state documentation with every claim verified against the code, correcting stale details along the way: digital-twin's import list (Spotify/Letterboxd/iCal, not Last.fm; transcript/image analysis, not live voice/video capture), POST's undocumented sixth Cognitive domain plus Morse training, drill cache, training log, and adaptive difficulty, writers-room's PostgreSQL-primary storage, CD-bridge-instead-of-render-plans design, story bible, and storyboard surfaces, and OpenClaw's shipped endpoint/config/degradation surface (keeping the honest list of proposed-but-unbuilt endpoints). The three digital-twin-adjacent docs (soul-system.md/digital-twin.md/identity-system.md) now cross-link with a note explaining which angle each covers (#2073). - Addressed the v2.25.0 release-review robustness follow-ups (#2047). Client: the Shell restart button's deferred
startSession()now aborts if the user switches sessions within its 1s window (generation guard, matching the page's other deferred socket emits); MusicVideo auto-arrange snapshots the board and reverts on a mid-loop PATCH failure instead of leaving the optimistic full arrangement over a server-side partial; the video timeline editor re-derives the selected clip from its stableclipIdafter a refresh so aCONFLICTreload no longer collapses the inspector; and MemoryPractice's chunk-/sequence-exhausted fallbacks moved theirsetState+submitMemoryPractice()POSTs out of the render body into a terminal-transition effect. Server:triggerReplenishnow guards its fire-and-forgetreplenishTypepromise likerequestCacheFill(a drill-cache disk-write failure no longer surfaces as an unhandled rejection); the/post/drillschema acceptsmemoryItemIdso it reachesgenerateMemoryDrillinstead of being silently stripped;applyProjectPatchregresses a music-video project's status todrafton track change (the analysis it cleared must be redone); and ~20 dead imports left over from the #1830 peerSync split were removed frompeerSyncReceive.js. - Deflaked the
UpdateTab reconcile flowtests, which intermittently failed CI with "Unable to find role=button and name 'Restarting...'" (#2065). The component mirrorsupdatingintoupdatingRefvia a passive effect, and the disconnect handler's guard reads that ref synchronously; sincerunUpdate()callssetUpdating(true)outside anyact(after awaiting the pre-update health check), the "Reconciling..." button could commit — satisfying the test'swaitFor— a scheduler tick before the ref-sync effect ran, leaving the ref stale-false whendisconnectfired so the confirmation timer never armed. The test now flushes pending effects (await act(async () => {})) before firingdisconnect, syncing the ref to the state production always reaches over real network time. Test-only change; no product behavior touched. - Made the tribeCadence contract test timezone-independent: its
daysAgo()helper built aYYYY-MM-DDstring viatoISOString()(UTC) whiledaysSinceDate()parses it in local time, so in the evening of a UTC-behind timezone the date rolled forward a day and the overdue/soon boundary assertions went off-by-one. The helper now builds the string from local calendar fields (it already passed in CI's UTC runner). - Docs audit and reorganization: reclassified two non-feature docs out of
docs/features/— the cross-domain insights design spike now lives atdocs/plans/2026-06-03-cross-domain-insights-engine.md(it specs future work, it isn't feature documentation) and the OpenClaw pre-implementation extension-point audit atdocs/research/2026-03-31-openclaw-operator-chat-audit.md(it's an explicitly-unmaintained investigation record).docs/README.mdlinks updated. Also fixeddocs/PORTS.mdclaiming thePORTSobject is "re-exported atserver/lib/ports.js" (it's a manually-synced mirror — the ESM server can'trequire()the CommonJS config), replaced a dead#m7-app-templatesanchor indocs/features/app-wizard.mdwith a real pointer toGET /api/scaffold/templates, and refreshed the stale example model IDs indocs/TROUBLESHOOTING.md. The audit verified every other doc against the code: all 13 top-level guides are indexed and accurate, every feature doc's modules/routes/nav entries resolve, and plans/decisions/research/superpowers/themes/examples/media have zero orphans or broken links. - Consolidated five component-local duration/uptime/time-until formatters onto the shared
utils/formatters.jshelpers (formatDurationMs,timeUntil), per the "do not re-define formatters inside components" convention (#2028).formatDurationMsgained a day bucket (2d 3h) so long uptimes no longer render as an unbounded hours count; ProcessesTab, CityHud, Shell session ages, the CoS QuickSummary "next job" countdown, and the Loops interval label now all route through the shared helpers, and aconsole.loginmemoryClassifier.jswas collapsed to a single interpolated line. - Migration 155 heals
data/prompts/stages/cd-treatment.mdinstalls that #1808's anchor-based migration 148 left stranded (#2042). Installs seeded before theimageStrengthscene knob (older pre-#1808 template) got the## Cast & ingredientslist but missed the per-scene"cast": [{ "ingredientId": … }]field, so the Creative Director cast-threading regression test stayed red on the runtime template and migration 148 (already applied) never re-ran. The new hash-driven prompt-replace upgrades those copies (and both pristine pre-#1808 shipped versions) to the current shipped reference, leaving hand-customized copies untouched. Also foldscd-treatment.mdintobuildPromptDriftTablesso setup-data.js's drift warning classifies a stranded copy correctly. - Replaced the last hardcoded
port-*hex stragglers with design tokens (#2031). The Security page's audio-level meter used raw#ef4444/#f59e0b/#22c55ein an inlinebackgroundColor; these now resolve throughrgb(var(--port-error))/--port-warning/--port-successso they track the theme. The Chief-of-Staff page's "CoS" wordmark gradient was duplicated inline three times and is now a single module-levelCOS_TITLE_GRADIENTconstant. Visual output is unchanged. - Fixed a POST daily-reminder false-nudge after a global timezone change (#2040).
settings.jsnow stamps atimezoneUpdatedAttimestamp whenever thetimezonevalue actually changes (unrelated saves leave it untouched), exposed viagetTimezoneUpdatedAt()intimezone.js. The reminder's boot-time missed-slot catch-up (catchUpMissedSlot) now skips a slot that predates the LATER of the reminder's own config save (#2015) or the last timezone change — so switching timezones and then restarting the server the same day can no longer replay a slot that was never scheduled under the active zone. The new field is reusable by any other timezone-dependent scheduler. - Fixed double error toasts across ~50 call sites that owned a custom
.catchtoast: they now pass{ silent: true }so theapiCore.request()default toast no longer fires alongside the component's own, per the "Silent vs. toasting API requests" convention (#2026). Also added the missing trailingoptions = {}passthrough to ~40api*.jswrappers (CoS tasks/agents/jobs, Brain people/projects/ideas/admin/memories/buckets/inbox, GSD, memory approve/reject, app task-type overrides, feature-agent controls, browser/backup/system, MeatSpace POST drills, goals, messages) so callers can actually suppress the built-in toast. Sites whose.catchonly reverts state (no toast) were intentionally left on the default single toast. - Audited the cross-domain insights engine against the no-cold-bootstrap LLM policy and documented the trigger contract at the two generation entry points (#2037). Verified the only functions that call an AI provider —
generateThemeAnalysis(INS-02) andrefreshCrossDomainNarrative(INS-04) — are reached solely from user-triggered POST endpoints (/api/insights/themes/refresh,/api/insights/narrative/refresh, both fired by an explicit "Refresh" click); the page-mount and cached-read paths (getThemeAnalysis/getCrossDomainNarrative) are disk-only, boot (server/index.js) mounts the router without generating, and no scheduler references insights. No violation found — added a contract comment block plus a regression test asserting the read paths never call a provider. - Single-sourced the Tribe care-cadence rules so the page, the Care dashboard widget, and the proactive alert can no longer drift (#2060). The Tribe page's
contactStatus(client) and the server'spersonCadenceStatus/getCareSummary(added in #2032) previously carried two hand-mirrored copies of the same "external-excluded / missing-vs-overdue / <=7d soon" state machine. The rules now live in one authoritative pure module,server/lib/tribeCadence.js(cadenceStatus,daysSinceDate), mirrored toclient/src/lib/tribeCadence.js;personCadenceStatusre-exports it and the clientcontactStatusis now a thin presentation wrapper that only attaches label/tone. A cross-boundary contract test imports both copies and fails CI if they ever diverge. Semantics are unchanged — the Tribe page header counts, the widget, and the alert all compute identically to before. - Refreshed GOALS.md status to reflect shipped Apple Health integration (#2039). The Health & Longevity status-table row said "Apple Health integration planned," but the integration shipped:
server/routes/appleHealth.js(ingest/metrics/correlation/XML+clinical import) is wired throughapiHealth.jsinto the MeatSpace Alcohol/Health/Nicotine tabs. The row now marks it shipped, and the stale "Apple Health Integration" bullet was removed from Secondary Goals. Documentation only; other status rows spot-checked against code (Sketch & Annotation Canvas confirmed genuinely unshipped, left as planned). - Prevented CoS
/do:next --swarmorchestrators from being reaped mid-merge asidle-complete, which left PRs opened-but-unmerged or merged-but-uncleaned whilestate.jsonrecordedstatus: completed(#2074). The swarm Phase C serialized merge queue merges PRs one at a time, and each subsequent PR must rebase onto the newmainand re-run required CI — several minutes of silent TUI output per PR that routinely blew past the 3-minute idle default, so the runner reaped the still-working orchestrator. The TUI idle detector (agentTuiSpawning.js) now latches a merge-queue flag (createMergeQueueTracker/isMergeQueueSignalintuiHandshake.js) the first time it sees Phase C chrome (gh pr merge,gh pr checks,--delete-branch, "serialized merge queue", "Phase C") and, while latched, extends the idle grace toMERGE_QUEUE_IDLE_TIMEOUT_MS(15min) — comfortably covering one CI run's silent gap while still bounding a genuinely-dead orchestrator's reap. Detection is deliberately conservative (a false positive only extends the window; a false negative preserves prior behavior). As a blast-radius safety net, if the extended window still elapses the agent is finalized as a needs-manual-finish failure with reasonmerge-queue-idle-timeout(pointing at open/uncleaned PRs) instead of the silentidle-completesuccess that hid the half-done queue.
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.25.0...v2.26.0