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
Merge remote-tracking branch 'origin/main' into next/issue-2073
[._.]/ Adam Eivy900c71b1d838
diff --cc .changelog/NEXT.mdindex 662a5b2efa,7c3f4b7b98..d0faa0d7e0--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -34,7 -48,7 +48,8 @@@## 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`, and `writers-room.md` still 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 stable `clipId` after a refresh so a `CONFLICT` reload no longer collapses the inspector; and MemoryPractice's chunk-/sequence-exhausted fallbacks moved their `setState` + `submitMemoryPractice()` POSTs out of the render body into a terminal-transition effect. Server: `triggerReplenish` now guards its fire-and-forget `replenishType` promise like `requestCacheFill` (a drill-cache disk-write failure no longer surfaces as an unhandled rejection); the `/post/drill` schema accepts `memoryItemId` so it reaches `generateMemoryDrill` instead of being silently stripped; `applyProjectPatch` regresses a music-video project's status to `draft` on track change (the analysis it cleared must be redone); and ~20 dead imports left over from the #1830 peerSync split were removed from `peerSyncReceive.js`.- Deflaked the `UpdateTab reconcile flow` tests, which intermittently failed CI with "Unable to find role=button and name 'Restarting...'" (#2065). The component mirrors `updating` into `updatingRef` via a passive effect, and the disconnect handler's guard reads that ref synchronously; since `runUpdate()` calls `setUpdating(true)` outside any `act` (after awaiting the pre-update health check), the "Reconciling..." button could commit — satisfying the test's `waitFor` — a scheduler tick before the ref-sync effect ran, leaving the ref stale-false when `disconnect` fired so the confirmation timer never armed. The test now flushes pending effects (`await act(async () => {})`) before firing `disconnect`, syncing the ref to the state production always reaches over real network time. Test-only change; no product behavior touched.- Docs audit and reorganization: reclassified two non-feature docs out of `docs/features/` — the cross-domain insights design spike now lives at `docs/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 at `docs/research/2026-03-31-openclaw-operator-chat-audit.md` (it's an explicitly-unmaintained investigation record). `docs/README.md` links updated. Also fixed `docs/PORTS.md` claiming the `PORTS` object is "re-exported at `server/lib/ports.js`" (it's a manually-synced mirror — the ESM server can't `require()` the CommonJS config), replaced a dead `#m7-app-templates` anchor in `docs/features/app-wizard.md` with a real pointer to `GET /api/scaffold/templates`, and refreshed the stale example model IDs in `docs/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.js` helpers (`formatDurationMs`, `timeUntil`), per the "do not re-define formatters inside components" convention (#2028). `formatDurationMs` gained 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 a `console.log` in `memoryClassifier.js` was collapsed to a single interpolated line.