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: address Copilot review feedback from release PR #49
Adam Eivy59659c8ffda9
diff --git a/client/src/components/city/CityScene.jsx b/client/src/components/city/CityScene.jsxindex 348ba9c194..21bc9c952d 100644--- a/client/src/components/city/CityScene.jsx+++ b/client/src/components/city/CityScene.jsx@@ -1,4 +1,4 @@-import { useState, useCallback } from 'react';+import { useState, useCallback, useRef, useEffect } from 'react';import { Canvas } from '@react-three/fiber';import { OrbitControls } from '@react-three/drei';import CityGround from './CityGround';@@ -28,9 +28,18 @@ export default function CityScene({ apps, agentMap, onBuildingClick, cosStatus,const [positions, setPositions] = useState(null);const [proximityApp, setProximityApp] = useState(null);const [transitioning, setTransitioning] = useState(false);+ const prevExplorationRef = useRef(false);const explorationMode = settings?.explorationMode || false;+ // Set transitioning=true when exploration mode toggles+ useEffect(() => {+ if (prevExplorationRef.current !== explorationMode) {+ setTransitioning(true);+ prevExplorationRef.current = explorationMode;+ }+ }, [explorationMode]);+const handlePositionsReady = useCallback((pos) => {setPositions(pos);}, []);diff --git a/client/src/components/gsd/GsdProjectHeader.jsx b/client/src/components/gsd/GsdProjectHeader.jsxindex 1b7574c7db..1e84ae9f28 100644--- a/client/src/components/gsd/GsdProjectHeader.jsx+++ b/client/src/components/gsd/GsdProjectHeader.jsx@@ -1,4 +1,5 @@import { useNavigate } from 'react-router-dom';+import toast from 'react-hot-toast';import { RefreshCw, Terminal, Play, Settings } from 'lucide-react';import * as api from '../../services/api';diff --git a/client/src/hooks/useAppOperation.js b/client/src/hooks/useAppOperation.jsindex 152a73e79b..20f0491e3f 100644--- a/client/src/hooks/useAppOperation.js+++ b/client/src/hooks/useAppOperation.js@@ -12,9 +12,13 @@ export function useAppOperation({ onComplete } = {}) {const [error, setError] = useState(null);const [completed, setCompleted] = useState(false);const clearTimerRef = useRef(null);+ const cleanupRef = useRef(null);- // Clear auto-dismiss timer on unmount- useEffect(() => () => clearTimeout(clearTimerRef.current), []);+ // Clear timer and remove socket listeners on unmount+ useEffect(() => () => {+ clearTimeout(clearTimerRef.current);+ cleanupRef.current?.();+ }, []);const handleStep = useCallback((data) => {setSteps(prev => {@@ -68,8 +72,11 @@ export function useAppOperation({ onComplete } = {}) {socket.off('app:update:step', onStep);socket.off('app:update:error', onError);socket.off('app:update:complete', onDone);+ cleanupRef.current = null;};+ cleanupRef.current?.();+ cleanupRef.current = cleanup;socket.on('app:update:step', onStep);socket.on('app:update:error', onError);socket.on('app:update:complete', onDone);@@ -100,8 +107,11 @@ export function useAppOperation({ onComplete } = {}) {socket.off('app:standardize:step', onStep);socket.off('app:standardize:error', onError);socket.off('app:standardize:complete', onDone);+ cleanupRef.current = null;};+ cleanupRef.current?.();+ cleanupRef.current = cleanup;socket.on('app:standardize:step', onStep);socket.on('app:standardize:error', onError);socket.on('app:standardize:complete', onDone);diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsxindex 35a30a5027..81b91b2fb2 100644--- a/client/src/pages/Shell.jsx+++ b/client/src/pages/Shell.jsx@@ -27,7 +27,8 @@ export default function Shell() {const [connected, setConnected] = useState(false);// Read query params once on mount for initial session options- if (!initialOptsRef.current) {+ useEffect(() => {+ if (initialOptsRef.current) return;const cwd = searchParams.get('cwd');const cmd = searchParams.get('cmd');if (cwd || cmd) {@@ -37,7 +38,7 @@ export default function Shell() {} else {initialOptsRef.current = {};}- }+ }, []); // eslint-disable-line react-hooks/exhaustive-deps// Initialize terminal onceuseEffect(() => {diff --git a/server/routes/gsd.js b/server/routes/gsd.jsindex d98846febb..0ee3a47a31 100644--- a/server/routes/gsd.js+++ b/server/routes/gsd.js@@ -31,8 +31,8 @@ const phaseActionSchema = z.object({})const documentUpdateSchema = z.object({- content: z.string(),- commitMessage: z.string().optional()+ content: z.string().max(500000),+ commitMessage: z.string().max(200).optional()})const GSD_ALLOWED_DOCUMENTS = ['PROJECT.md', 'ROADMAP.md', 'STATE.md', 'CONCERNS.md', 'RETROSPECTIVE.md', 'MILESTONES.md']