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 third round of Copilot review feedback
[._.]/ Adam Eivybfba51ff6b8b
diff --git a/client/src/components/agents/tabs/OverviewTab.jsx b/client/src/components/agents/tabs/OverviewTab.jsxindex 43f6e38852..dcaf4e12a0 100644--- a/client/src/components/agents/tabs/OverviewTab.jsx+++ b/client/src/components/agents/tabs/OverviewTab.jsx@@ -57,12 +57,15 @@ export default function OverviewTab({ agentId, agent, onAgentUpdate }) {});}, [agent]);- // Sync text fields+ // Sync text fields — only when personality arrays change, not on every formData update+ const topicsKey = JSON.stringify(formData?.personality?.topics);+ const quirksKey = JSON.stringify(formData?.personality?.quirks);useEffect(() => {if (!formData) return;setTopicsText(formData.personality.topics.join(', '));setQuirksText(formData.personality.quirks.join(', '));- }, [formData]);+ // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed on serialized arrays to avoid clobbering in-progress text edits+ }, [topicsKey, quirksKey]);const fetchAccounts = useCallback(async () => {const data = await api.getPlatformAccounts(agentId);diff --git a/client/src/components/digital-twin/tabs/EnrichTab.jsx b/client/src/components/digital-twin/tabs/EnrichTab.jsxindex 97c8d67afd..ec6d30eb06 100644--- a/client/src/components/digital-twin/tabs/EnrichTab.jsx+++ b/client/src/components/digital-twin/tabs/EnrichTab.jsx@@ -136,11 +136,16 @@ export default function EnrichTab({ onRefresh }) {const loadQuestion = useCallback(async (categoryId, skipList = []) => {setLoadingQuestion(true);- const question = await api.getSoulEnrichQuestion(categoryId, undefined, undefined, skipList.length ? skipList : undefined);- setCurrentQuestion(question);- setAnswer('');- setScaleValue(null);- setLoadingQuestion(false);+ try {+ const question = await api.getSoulEnrichQuestion(categoryId, undefined, undefined, skipList.length ? skipList : undefined);+ setCurrentQuestion(question);+ setAnswer('');+ setScaleValue(null);+ } catch {+ setCurrentQuestion(null);+ } finally {+ setLoadingQuestion(false);+ }}, []);const startCategory = useCallback(async (categoryId) => {diff --git a/client/src/components/meatspace/post/MemoryPractice.jsx b/client/src/components/meatspace/post/MemoryPractice.jsxindex 64065f0659..376babeed1 100644--- a/client/src/components/meatspace/post/MemoryPractice.jsx+++ b/client/src/components/meatspace/post/MemoryPractice.jsx@@ -28,18 +28,19 @@ export default function MemoryPractice({ item, onBack }) {const lines = item.content?.lines || [];const chunks = item.content?.chunks || [];const fillBlankLine = lines[currentIdx] || null;- const fillBlankWords = fillBlankLine?.text.split(/\s+/) || [];- // Blank out ~40% of words — recompute when line changes+ const fillBlankText = fillBlankLine?.text || '';+ const fillBlankWords = fillBlankText.split(/\s+/).filter(Boolean);+ // Blank out ~40% of words — recompute when line text changesconst blanks = useMemo(() => {- if (mode !== 'fill-blank' || !fillBlankWords.length) return new Set();+ if (mode !== 'fill-blank' || !fillBlankText) return new Set();+ const words = fillBlankText.split(/\s+/).filter(Boolean);const blankSet = new Set();- const count = Math.max(1, Math.floor(fillBlankWords.length * 0.4));- while (blankSet.size < count && blankSet.size < fillBlankWords.length) {- blankSet.add(Math.floor(Math.random() * fillBlankWords.length));+ const count = Math.max(1, Math.floor(words.length * 0.4));+ while (blankSet.size < count && blankSet.size < words.length) {+ blankSet.add(Math.floor(Math.random() * words.length));}return blankSet;- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [mode, currentIdx, fillBlankWords.length]);+ }, [mode, fillBlankText]);useEffect(() => {if (mode && inputRef.current) inputRef.current.focus();diff --git a/client/src/components/meatspace/tabs/HealthTab.jsx b/client/src/components/meatspace/tabs/HealthTab.jsxindex c1f8b19618..973a20d7fc 100644--- a/client/src/components/meatspace/tabs/HealthTab.jsx+++ b/client/src/components/meatspace/tabs/HealthTab.jsx@@ -29,7 +29,7 @@ export default function HealthTab() {const [initialized, setInitialized] = useState(false);const sectionRefs = useRef({});- // Fetch which metrics have data+ // Fetch which metrics have data (once on mount)useEffect(() => {api.getAvailableHealthMetrics().then(metrics => {@@ -39,19 +39,23 @@ export default function HealthTab() {for (const cat of METRIC_CATEGORIES) {if (cat.defaultExpanded) initial.add(cat.id);}- if (sectionParam) initial.add(sectionParam);setExpandedSections(initial);setInitialized(true);}).catch(() => setInitialized(true));- }, [sectionParam]);+ }, []);- // Scroll to section if specified in URL+ // Expand and scroll to section when URL param changesuseEffect(() => {- if (sectionParam && initialized) {- const el = sectionRefs.current[sectionParam];- if (el) setTimeout(() => el.scrollIntoView({ behavior: 'smooth', block: 'start' }), 100);- }+ if (!sectionParam || !initialized) return;+ setExpandedSections(prev => {+ if (prev.has(sectionParam)) return prev;+ const next = new Set(prev);+ next.add(sectionParam);+ return next;+ });+ const el = sectionRefs.current[sectionParam];+ if (el) setTimeout(() => el.scrollIntoView({ behavior: 'smooth', block: 'start' }), 100);}, [sectionParam, initialized]);// Fetch correlation datadiff --git a/client/src/hooks/useCityAudio.js b/client/src/hooks/useCityAudio.jsindex a68bf5152b..60f5a0995e 100644--- a/client/src/hooks/useCityAudio.js+++ b/client/src/hooks/useCityAudio.js@@ -42,11 +42,10 @@ export default function useCityAudio(settings) {if (!isAudioReady || musicEnabled == null) return;if (musicEnabled) {startMusic();- setMusicVolume(musicVolume);} else {stopMusic();}- }, [isAudioReady, musicEnabled, musicVolume]);+ }, [isAudioReady, musicEnabled]);// Update music volumeuseEffect(() => {