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
docs([tolerant-fetch-json-additional-clients]): remove from PLAN.md and log to changelog
[._.]/ Adam Eivyce760170fb3f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 3f7bc908cf..2237caad21 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -35,6 +35,7 @@- **[setup-data-import-drift-tables-from-migrations]** The setup script's "a prompt migration is pending" warning now derives its hash tables directly from the migration files instead of a hand-maintained copy, so the warning can't silently fall out of sync when a new prompt migration ships (no user-facing change).- **[cos-on-demand-mark-app-review-started-dedupe]** When several on-demand improvement requests for the same app are processed in one CoS dispatch cycle, the app's activity record is now marked review-started once instead of once per request (no user-facing change).- **[shared-tolerant-fetch-json-helper]** Hardened the HTTP clients that talk to local model backends, the managed browser, and the background agent runner: a non-JSON/HTML error response now surfaces the real error instead of crashing with "Unexpected token <", via one shared tolerant JSON-body reader (no user-facing change).+- **[tolerant-fetch-json-additional-clients]** Extended that same tolerant JSON-body reader to the remaining fetch clients (calendar/message sync, the memory and insights LLM calls, the local-LLM playground, Civitai, Telegram, and the code-review runner), so a non-JSON/HTML error body surfaces the real error instead of crashing — and the code-review runner now reports the server's actual error text instead of a misleading "no content" (no user-facing change).- **[cos-agent-output-write-amplification] Streamed CoS agent output no longer rewrites the entire agent-state file once per line.** A shared ~250ms output batcher now coalesces the runner's per-line output events and direct-CLI stdout/stderr into single state writes (draining before an agent is marked complete), cutting agent-state write churn on chatty agents from dozens of writes/sec to a few — with no change to the live output tail (no user-facing change).- **[subagent-spawner-top-level-side-effects]** The CoS agent spawner now initializes explicitly at server startup instead of as a side effect of being imported, so importing it (in tests or elsewhere) no longer re-arms its event listeners and timers (no user-facing change).diff --git a/PLAN.md b/PLAN.mdindex 98ac04720f..1daef062af 100644--- a/PLAN.md+++ b/PLAN.md@@ -5,8 +5,6 @@ For project goals, see [GOALS.md](./GOALS.md). For completed work, see [.changel## Next UpClaimable, well-specified, no decision needed — `/claim`-able. Unordered.--- [ ] [tolerant-fetch-json-additional-clients] **Adopt the shared `readResponseJson` helper in the remaining fetch-based clients.** The `[shared-tolerant-fetch-json-helper]` PR promoted `server/lib/readResponseJson.js` and migrated the originally-scoped clients, but a reuse-review sweep surfaced more fetch-based clients with the same unguarded `await response.json()` crash risk (an HTML/non-JSON error body throws `Unexpected token <`): `server/services/memoryClassifier.js:274`, `server/services/calendarApiSync.js:96`, `server/services/messageApiSync.js:74`, `server/services/insightsService.js:197`, `server/services/localLlmPlayground.js:114`, `server/lib/civitai.js:209` and `:347`, and `server/lib/telegramClient.js:31` and `:59` (all unguarded), plus `server/services/codeReview.js:166` which currently uses a `.catch(() => null)` band-aid that silently swallows the real error. Migrate each to `readResponseJson(response)` (object callers) with `{ fallback: [] }` for array endpoints; for `codeReview.js`, decide whether to surface the error text via the function-fallback form. Deferred out of the helper PR to keep it within its stated single-file-list scope. Surfaced by /simplify reuse review + the multi-reviewer pass on PR #614 (2026-06-01).- [ ] [conflict-journal-media-collections] **Conflict journal does not cover media-collection scalar overwrites.** `mergeMediaCollectionsFromSync` (`server/services/mediaCollections.js`) LWW-overwrites scalars (name/description/coverKey/universeId/seriesId) when `remoteWins`; items are union-merged (never lost). v1 hooks only universe + series merges because the whole-record content hash used by `conflictJournal.detectConflict` would false-positive on collections whenever items differ. Doing it right needs scalar-subset hashing that stays consistent with the sender-side base hash. Low value (scalar loss is minor), deferred.- [ ] [conflict-journal-issues] **Issue-level conflict journaling.** The share-bucket importer hook (`server/services/sharing/importer.js` `applyAutoMerge`→`mergeOne`) is gated to `universe`/`series`; child issues ride LWW silently. Extend the journal to issues (needs the issue merge path to thread a `source` + call `maybeJournalBeforeOverwrite`).- [ ] [conflict-journal-deep-diff] **`diffSummary` is top-level shallow only.** `conflictJournal.diffSummary` compares top-level fields via canonicalStringify, so the UI shows "categories differ" rather than which variation/canon entry changed. Add per-field deep diffing for richer InlineDiff rendering in the Conflicts tab.