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

docs([issue-1422]): log issue #1422 to changelog

Adam Eivy5f719c0a32e3
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 06ad7701a2..9a8f4930dc 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -113,6 +113,8 @@
## Fixed
+- **[issue-1422] Re-planning a goal that has scheduled calendar blocks no longer silently strands those calendar events, and a malformed AI plan now fails fast.** Accepting a new AI-generated plan (either *Generate Plan* phases or *Decompose into Tasks*) replaces a goal's milestones wholesale — but if you'd already pushed those milestones onto your calendar as time blocks, the old blocks were left pointing at milestones that no longer existed. Accepting now refuses with a clear message asking you to unschedule first, so your calendar can't drift out of sync with your plan. Separately, both *Generate Plan* and *Decompose into Tasks* now validate the AI's proposal the moment it comes back — a garbled response surfaces a clear error up front instead of looking fine in the review screen and only breaking when you try to accept it.
+
- **The Chief of Staff 3D avatar no longer slowly zooms itself in until you reload.** The full-bleed background avatar keeps a constant apparent size by moving the camera back as the panel grows (`CoSBackgroundCamera` derives `camera.position.z` from the live-measured canvas height). But a transient *zero / pre-layout / hidden* size reading — which fires when the agent panel collapses and re-expands, when the EventLog mounts on the "working on task" transition, or from tab-occlusion ResizeObserver frames — collapsed the scale factor to its floor and slammed the camera to its closest (most zoomed-in) position, which `OrbitControls` then latched with no guaranteed correction. Over a busy night of state transitions the avatar ended up "zoomed way in," fixable only by a page reload. The camera-distance math is now a pure, unit-tested helper that returns `null` for any degenerate (non-finite or sub-pixel) measurement, so those frames leave the camera at its last good framing instead of yanking it in. (`client/src/components/cos/CoSBackgroundCamera.jsx`)
- **[issue-1361] A behind/legacy sync peer can no longer erase a series' style guide, reader map, ticking clock, style notes, or seasons.** `mergeSeriesFromSync` applied an incoming series payload wholesale via last-writer-wins on `updatedAt`, and `sanitizeSeries` flattens an *absent* key to the same `null`/`[]`/`""` as an explicit clear. So when a peer that never authored a field (an older install, or one that predates the field) pushed a series with a newer `updatedAt` but no `styleGuide`/`arc`/`styleNotes`/`seasons` key — or sent `arc` without its newer `readerMap`/`tickingClock` sub-keys — the receiver overwrote and wiped the locally-authored value. The merge now consults the **raw** remote payload to tell "key absent" from "key present-but-empty": an absent key preserves the local value (mirroring the existing `universeId` hierarchy guard, and applied uniformly across the additive fields plus the additive sub-fields nested in `arc`), while an explicit `null`/empty from an up-to-date peer is still honored as an intentional clear. Tombstones are skipped (a deleted record carries no content to protect). (`server/services/pipeline/series.js`, #1361)