Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Merge origin/main into better/devsecops-audit-2026-07-10

[._.]/ Adam Eivy2f59f24b476a
diff --cc .changelog/NEXT.md
index d15095a847,b99f199cb2..2e4aa62f38
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -57,8 -57,8 +57,10 @@@
## Fixed
+- **A DevSecOps hardening pass makes background services fail safely and persistent controls touch-accessible.** Autofixer process/history data now renders through safe DOM text nodes and its periodic scan cannot overlap itself; CLI runner terminal events finalize exactly once; port discovery fails closed with deterministic cross-platform parsing; backup `rsync` lookup is portable; task-watcher events, Spotify requests, and shared media streams now have bounded/owned lifecycles; repeated CyberCity district-bound calculations use one empty-safe helper; and persistent mobile navigation plus timeline removal controls provide 44×44 touch targets with accessible labels. Focused regression coverage accompanies each repaired path.
+
+ - **The client test suite no longer floods CI logs with ~100 React `act(...)` warnings.** Twelve test files rendered components whose mount effects fetch data through pre-resolved mock promises and never settled them, so the `.then(setState)` microtasks landed outside `act` — invisible locally (vitest hides console output from passing tests) but printed in full by the CI reporter, burying real failures, and marking exactly the unsettled-async pattern behind our known CI test flakes. Each affected file now drains those updates inside act via a small settle-after-render helper (`await act(async () => {})`), with no assertion changes; tests that deliberately assert an in-flight pending state settle at the end instead. Promoting this to an enforced zero-warning gate in `src/test/setup.js` is tracked in #2406.
+
- **CoS tasks with Review Loop turned off now explicitly disable saved external-review defaults when opening a PR.** Their completion prompt passes `--review-with none`, so an inherited Copilot (or other reviewer) default cannot launch a review that was not requested.
- **[issue-2387] Theme initialization and switching now survive unavailable localStorage.** The `useTheme` and `useCitySettings` hooks read/wrote `localStorage` directly (persisted theme, and the CyberCity settings that render on the same theme path), so a browser where storage access throws (Safari private mode, blocked cookies, disabled storage) or is absent would throw inside a `useState` initializer and crash the initial render, and a failing `setItem` could break theme switching. Both hooks now route every read/write/remove through a shared, guarded `safeReadStorage`/`safeWriteStorage`/`safeRemoveStorage` helper (`client/src/lib/safeStorage.js`) that swallows access failures, and corrupt stored JSON falls back to defaults instead of throwing — so init always resolves to a valid default and in-memory switching keeps working when persistence fails. `setTheme` also applies the in-memory theme (DOM + state) before any persistence/side-effect work so a later failure can never leave the UI on the stale theme. Focused hook tests cover read-throws-on-init, corrupt/invalid stored value, and write-throws-on-switch for both hooks.