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 claim/ansistrip-osc-alternative-unreachable
[._.]/ Adam Eivycff9ed47d11a
diff --cc .changelog/NEXT.mdindex b767e38685,c259a2c170..09c2d05750--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -9,7 -12,8 +12,9 @@@## Fixed+ - **[universebuilder-collection-hook-flaky-batch-enrich] Universe Builder batch-enrich test no longer flakes under full-suite load** — internal test stability fix; production behavior unchanged.- **[feeds-ssrf-ipv6-bracket-hostname-gap] RSS feed subscriptions now reliably reject IPv6 loopback, link-local, and unique-local addresses** — previously the loopback `http://[::1]/feed` case was blocked only incidentally by DNS errors; subscribing to feeds at literal private IPv6 addresses is now refused outright, including IPv4-mapped variants like `[::ffff:192.168.1.1]`.+ - **[legacy-series-canon-orphan-universe-leak-on-throw] Retrying a failed peer-share import no longer leaves empty "(auto-migrated)" universes behind** — when a transient disk error interrupted importing a peer's series, each retry used to mint a fresh empty universe; the importer now reuses the same one across retries so the import either lands cleanly or is harmless to retry.+- **[ansistrip-osc-alternative-unreachable] TUI output no longer leaks window-title and hyperlink escape bodies** — terminal OSC sequences (the ones CLIs use to set window titles or emit clickable links) are now stripped in full instead of leaving fragments like `0;title␇` visible in agent/TUI transcripts, prompt-runner logs, and arc-planner output.## Removeddiff --cc PLAN.mdindex 070ceabd80,4b836156b0..7d4cb6eae1--- a/PLAN.md+++ b/PLAN.md@@@ -40,10 -39,8 +39,8 @@@ The 2026-04-25 CODEX 5.5 review's concr### Deferred from better/2026-05-19-- [ ] [ansistrip-osc-alternative-unreachable] **[MED][TUI]** `server/lib/ansiStrip.js:14` — the OSC alternative in `ANSI_PATTERN` (`\][^\x07]*(?:\x07|\x1B\\)`) is dead code. Alternation order matches the single-byte alternative `[@-Z\\-_]` against `\x1B]` (0x5D is in 0x5C-0x5F) before the OSC alt is tried. Effect: only `\x1B]` is stripped from OSC sequences; the body+terminator leak into the cleaned stream (e.g. `\x1B]0;title\x07after` → `0;title\x07after`). Callers (`tuiPromptRunner.js:237`, `agentTuiSpawning.js:292`) consume the result without further filtering. Fix by either reordering alternatives (OSC before single-byte) or excluding `]` from the single-byte class (`[@-Z\\^_]` or similar). The new `ansiStrip.test.js` pins the current buggy behavior so a fix has an unambiguous before/after baseline. Surfaced 2026-05-20 during the test-coverage PR for med-tests-no-tests-for-server-lib-ansistrip-js; deferred to keep that PR scoped to tests.+- [ ] [legacy-series-canon-orphan-universe-leak-on-throw] **[LOW][SHARING]** `server/services/pipeline/migrateSeriesCanon.js#applyLegacySeriesCanonToUniverse` — when the helper hits a transient I/O failure between `createUniverse(...)` and `updateUniverse(universeId, patch)` (or any subsequent write), the orphan universe is persisted on disk but the helper throws. On retry the manifest reprocesses, sees `s.universeId` still unset (bucket record isn't mutated), and mints a SECOND auto-migrated universe. Canon data isn't lost (the manifest stays retryable via `legacyCanonPendingFailures`), but empty `"<series-name> (auto-migrated)"` universes accumulate per retry pass. Fix needs a deterministic universe id derived from the importing series (e.g. `uni-import-<seriesHash>` or persisting the chosen id back to the bucket sidecar) so the second creation hits `ERR_DUPLICATE` and the helper reuses the existing universe. Deferred from `[med-sharing-server-services-sharing-version-js]` because the fix touches the universe identity model — out of scope for the importer-side migration salvage PR. Surfaced 2026-05-20 in codex review iter 4.- - [ ] [universebuilder-collection-hook-flaky-batch-enrich] **[MED][TESTS]** `server/services/universeBuilderCollectionHook.test.js > "enriches every sidecar in a batch — all N images get tagged"` still fails intermittently when the full server suite runs in parallel, even after the 2026-05-19 fix that migrated `enrichSidecar` to `atomicWrite` (`[imagegen-local-defer-module-load-side-effects]` PR). Passes 100% in isolation (`vitest run services/universeBuilderCollectionHook.test.js` — 8/8). Suggests a cross-file race that survives the temp+rename atomicity — likely shared `PATHS.data` Proxy / mocked `mediaCollections` state colliding with a sibling test that drains the same hook queue concurrently. Reproduce by running the full server `vitest run` 10× and grepping for FAIL; instrument the batch enrich path to log timing and identify the contending writer. Surfaced 2026-05-20 during the legacy-series-canon import PR.-- [ ] **Migrate two remaining local formatters surfaced during the module-discovery PR.** Two additional local format definitions were found that aren't in the original tracker: (1) `client/src/components/calendar/EventDetail.jsx:10` defines `formatDateTime(dateStr, isAllDay)` with an all-day branch the shared `formatDateTime` lacks — extend the shared helper to take `{ allDay: true }` or keep this local and rename to `formatEventDateTime`. (2) `client/src/components/cos/tabs/TaskItem.jsx:78` defines `formatDurationMin(mins)` with a `~` approximation prefix (`~3h 30m`) — extend shared `formatDurationMin` with an `{ approximate: true }` option. Low priority; visual semantics need to be preserved exactly.### Voice agent