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: repair two useAutoRefetch-migration crashes and gate the client lint in CI
[._.]/ Adam Eivy4f3a870685c4
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 52928143f0..f7775d2ea2 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -106,6 +106,8 @@## Fixed+- **Processes tab and CoS insight "unblock" no longer crash** — two components had been migrated to the shared auto-refetch hook but kept calling functions the migration removed (`loadProcesses`, `setData`), so the Processes devtools tab crashed on open and unblocking a task from the Chief-of-Staff insights banner threw. Both now use the hook's `refetch`. A new CI step lints the client (the missing-symbol check that would have caught both) so this class of regression fails the build instead of reaching the UI.+- **[issue-883] Cleared a HIGH react-router security advisory** — bumped `react-router-dom` 7.5.2 → 7.16.0, which resolves a HIGH-severity advisory class affecting react-router 7.0.0–7.14.2 (CSRF, several XSS / open-redirect vectors, and a vendored `turbo-stream` deserialization RCE). PortOS only uses the declarative router API, so most of these never applied, but the dependency is now off the flagged range. No behavior change.- **[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.diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 5a204604bf..34f7d632ef 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -68,5 +68,11 @@ jobs:- name: Install server dependenciesrun: npm install --prefix server+ - name: Install client dependencies+ run: npm install --prefix client+- name: Check for syntax errorsrun: node --check server/index.js++ - name: Lint client+ run: npm run lint --prefix clientdiff --git a/client/eslint.config.js b/client/eslint.config.jsindex 794474a110..466c767083 100644--- a/client/eslint.config.js+++ b/client/eslint.config.js@@ -23,6 +23,7 @@ const browserGlobals = {MessageEvent: 'readonly', BroadcastChannel: 'readonly',HTMLElement: 'readonly', HTMLInputElement: 'readonly', HTMLCanvasElement: 'readonly',HTMLVideoElement: 'readonly', HTMLTextAreaElement: 'readonly',+ HTMLMediaElement: 'readonly', HTMLAudioElement: 'readonly',Element: 'readonly', Node: 'readonly', NodeList: 'readonly', Text: 'readonly',MutationObserver: 'readonly', IntersectionObserver: 'readonly',ResizeObserver: 'readonly',diff --git a/client/src/components/apps/tabs/ProcessesTab.jsx b/client/src/components/apps/tabs/ProcessesTab.jsxindex c1ebac68c4..2f28a5b48d 100644--- a/client/src/components/apps/tabs/ProcessesTab.jsx+++ b/client/src/components/apps/tabs/ProcessesTab.jsx@@ -42,7 +42,7 @@ export default function ProcessesTab({ pm2ProcessNames, filterFn }) {// Let errors throw — `useAutoRefetch` preserves the last-good process list// on transient failures. `silent: true` is essential here because the 5s// poll would otherwise spit a toast every 5 seconds during any blip.- const { data, loading } = useAutoRefetch(+ const { data, loading, refetch } = useAutoRefetch(() => api.getProcessesList({ silent: true }),5000,);@@ -108,7 +108,7 @@ export default function ProcessesTab({ pm2ProcessNames, filterFn }) {}).catch(() => null);setTimeout(() => {setRestarting(prev => ({ ...prev, [name]: false }));- loadProcesses();+ refetch();}, 2000);};@@ -121,7 +121,7 @@ export default function ProcessesTab({ pm2ProcessNames, filterFn }) {}).catch(() => null);setTimeout(() => {setRestarting(prev => ({ ...prev, [name]: false }));- loadProcesses();+ refetch();}, 2000);};@@ -134,7 +134,7 @@ export default function ProcessesTab({ pm2ProcessNames, filterFn }) {}).catch(() => null);setTimeout(() => {setRestarting(prev => ({ ...prev, [name]: false }));- loadProcesses();+ refetch();}, 2000);};@@ -159,7 +159,7 @@ export default function ProcessesTab({ pm2ProcessNames, filterFn }) {<div className="flex justify-between items-center"><p className="text-gray-500 text-sm">{filteredProcesses.length} process{filteredProcesses.length !== 1 ? 'es' : ''}</p><button- onClick={loadProcesses}+ onClick={refetch}className="px-3 py-1.5 bg-port-border hover:bg-port-border/80 text-white rounded-lg transition-colors text-sm">Refreshdiff --git a/client/src/components/cos/ActionableInsightsBanner.jsx b/client/src/components/cos/ActionableInsightsBanner.jsxindex ce6e1914c1..15e8ede2a7 100644--- a/client/src/components/cos/ActionableInsightsBanner.jsx+++ b/client/src/components/cos/ActionableInsightsBanner.jsx@@ -67,7 +67,7 @@ export default function ActionableInsightsBanner({ onTaskUnblocked }) {// Let errors throw — `useAutoRefetch` preserves the last-good insights on// transient failures. `silent: true` keeps the 60s poll quiet on blips.- const { data, loading } = useAutoRefetch(+ const { data, loading, refetch } = useAutoRefetch(() => api.getCosActionableInsights({ silent: true }),60_000,);@@ -94,26 +94,10 @@ export default function ActionableInsightsBanner({ onTaskUnblocked }) {});if (!result) return;toast.success('Task unblocked and moved to pending');- // Optimistically remove the task from local banner state- setData(prev => {- if (!prev?.insights) return prev;- return {- ...prev,- insights: prev.insights.map(insight => {- if (insight.type !== 'blocked' || !insight.tasks) return insight;- const remaining = insight.tasks.filter(t => t.id !== taskId);- if (remaining.length === 0) return null;- const firstTask = remaining[0];- return {- ...insight,- tasks: remaining,- count: remaining.length,- title: `${remaining.length} blocked task${remaining.length !== 1 ? 's' : ''} need${remaining.length === 1 ? 's' : ''} attention`,- description: firstTask?.description || insight.description- };- }).filter(Boolean)- };- });+ // Re-fetch insights so the unblocked task drops out of the banner. The+ // hook owns `data`, so we can't optimistically splice it here — the+ // server already persisted the unblock, so a refetch reflects it.+ refetch();// Notify parent to update task list reactivelyonTaskUnblocked?.(taskId);};diff --git a/client/src/pages/LocalLlmPlayground.jsx b/client/src/pages/LocalLlmPlayground.jsxindex 9a413fcf05..4b4e2427eb 100644--- a/client/src/pages/LocalLlmPlayground.jsx+++ b/client/src/pages/LocalLlmPlayground.jsx@@ -61,7 +61,7 @@ function modelSizeLabel(model) {return model?.catalog?.size || '';}-function useCaseTags(model) {+function getUseCaseTags(model) {const tags = [];if (model?.catalog?.category) tags.push(CATEGORY_LABELS[model.catalog.category] || model.catalog.category);for (const capability of model?.catalog?.capabilities || []) {@@ -430,7 +430,7 @@ export default function LocalLlmPlayground() {const selected = selectedKeys.has(localLlmTargetKey(target));const size = modelSizeLabel(target);const ram = recommendedRamGb(target);- const tags = useCaseTags(target);+ const tags = getUseCaseTags(target);const detailParts = [target.catalog?.params || target.params,size,diff --git a/client/src/utils/cityAiCore.test.js b/client/src/utils/cityAiCore.test.jsindex 751621e57a..9520f677f6 100644--- a/client/src/utils/cityAiCore.test.js+++ b/client/src/utils/cityAiCore.test.js@@ -9,7 +9,6 @@ import {beamThickness,computeAiCoreBeams,pruneAiOps,- tierColor,} from './cityAiCore';const NOW = 1_000_000;