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
fix([issue-705]): CyberCity canvas crash from computeLineDistances on geometry
[._.]/ Adam Eivyd871b1e93d3f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 273ef412e6..045ed082d4 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -105,7 +105,8 @@## Fixed-- **[issue-705] CyberCity no longer crashes when light connectors are on screen** — the memory district's category bridges and the goal-tree links rendered through a line primitive that depended on a fat-line geometry method (`computeLineDistances`) missing from this build's 3D stack, which crashed the whole CyberCity canvas as soon as either was visible. Those connectors now draw as native glowing tubes — no dependency on that method — so the city renders cleanly, with a bit more presence to the links as a bonus.+- **[issue-705] CyberCity no longer crashes when a sync peer's link is on screen** — the federation-horizon sync link called `computeLineDistances()` on a geometry object, but that method lives on the line itself; the bad call threw and crashed the whole CyberCity canvas for anyone with a sync peer configured (the link always renders for each peer). It's now computed on the line, only for the dashed "connection dropped" state that needs it.+- **[issue-705] CyberCity light connectors hardened against a 3D-stack mismatch** — the memory district's category bridges and the goal-tree links previously rendered through a line primitive that depended on a fat-line geometry method (`computeLineDistances`) missing from this build's 3D stack. Those connectors now draw as native glowing tubes — no dependency on that method — so they can't reintroduce the crash, with a bit more presence to the links as a bonus.- **Security settings reachable from the sidebar** — the Settings → Security tab now has its own entry in the sidebar's Settings group, so you can open it without typing the URL or going through ⌘K. The tab, its route, and command-palette/voice navigation already existed; only the sidebar link was missing.- **[issue-729] Style-probe renders stay put across federated machines** — a universe's base style-probe images are now kept local to each machine, so syncing with an older peer no longer wipes them and a probe render no longer surfaces a phantom sync conflict.- **[issue-717] No stray React warnings when you navigate away mid-action** — buttons that run an async task (save, generate, sync) no longer log an "update on an unmounted component" warning if you leave the page before the task finishes.diff --git a/client/src/components/city/CityFederationHorizon.jsx b/client/src/components/city/CityFederationHorizon.jsxindex 9962e801fd..ad15044afd 100644--- a/client/src/components/city/CityFederationHorizon.jsx+++ b/client/src/components/city/CityFederationHorizon.jsx@@ -22,11 +22,17 @@ function FederationBridge({ from, color, broken, intensity }) {0.6,from[2] + dir.z * (1.5 + FEDERATION.bridgeReach),);- const geom = new THREE.BufferGeometry().setFromPoints([start, end]);- geom.computeLineDistances(); // required for the dashed (broken) material- return geom;+ return new THREE.BufferGeometry().setFromPoints([start, end]);}, [from]);+ // computeLineDistances lives on the Line OBJECT, not on BufferGeometry — calling it on the+ // geometry throws ("computeLineDistances is not a function") and crashes the whole canvas. The+ // dashed (broken) material needs per-vertex line distances, so compute them on the line ref+ // after it mounts / whenever the geometry or broken state changes.+ useEffect(() => {+ if (broken) lineRef.current?.computeLineDistances();+ }, [geometry, broken]);+useEffect(() => () => geometry.dispose(), [geometry]);return (