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 release review findings — null guards, dead code, typo, unused imports
Adam Eivy95c5c1408f81
diff --git a/.changelog/v1.35.0.md b/.changelog/v1.35.0.mdindex d109cef22f..43bb511f5f 100644--- a/.changelog/v1.35.0.md+++ b/.changelog/v1.35.0.md@@ -20,7 +20,6 @@ Released: 2026-03-24- Telegram MCP Bridge mode: uses Claude Code's Telegram plugin for outbound notifications via direct Bot API HTTP calls, with inbound messages handled by Claude Code's natural language processing instead of rigid bot commands- Settings toggle to switch between Manual Bot and Claude MCP Bridge integration methods- Interactive storage backend chooser during setup: Docker PostgreSQL, Native PostgreSQL, or file-based JSON (deprecated) when Docker is unavailable-- Personal Goals dashboard widget: shows top-level goals with progress bars, category icons, horizon labels, and stall detection (14+ days idle) — replaces broken CoS task-based goal widget that never rendered## Changeddiff --git a/client/src/components/GoalProgressWidget.jsx b/client/src/components/GoalProgressWidget.jsxindex eedb1308f0..8d7ba04519 100644--- a/client/src/components/GoalProgressWidget.jsx+++ b/client/src/components/GoalProgressWidget.jsx@@ -47,7 +47,7 @@ const GoalProgressWidget = memo(function GoalProgressWidget() {return {goals: topLevel,stalledCount: topLevel.filter(g => g.isStalled).length,- avgProgress: Math.round(topLevel.reduce((sum, g) => sum + (g.progress || 0), 0) / topLevel.length)+ avgProgress: topLevel.length ? Math.round(topLevel.reduce((sum, g) => sum + (g.progress || 0), 0) / topLevel.length) : 0};}, [goalsData]);diff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsxindex 7d958d60fe..f247d31c78 100644--- a/client/src/components/brain/tabs/InboxTab.jsx+++ b/client/src/components/brain/tabs/InboxTab.jsx@@ -167,10 +167,11 @@ export default function InboxTab({ onRefresh, settings }) {};const handleDelete = async (entryId) => {- await api.deleteBrainInboxEntry(entryId).catch(err => {+ const result = await api.deleteBrainInboxEntry(entryId).catch(err => {toast.error(err.message || 'Failed to delete');return null;});+ if (!result) return;toast.success('Entry deleted');setConfirmingDeleteId(null);diff --git a/client/src/components/brain/tabs/LinksTab.jsx b/client/src/components/brain/tabs/LinksTab.jsxindex 1a27b10491..2e6c72330c 100644--- a/client/src/components/brain/tabs/LinksTab.jsx+++ b/client/src/components/brain/tabs/LinksTab.jsx@@ -148,10 +148,11 @@ export default function LinksTab({ onRefresh }) {};const handleDelete = async (linkId) => {- await api.deleteBrainLink(linkId).catch(err => {+ const result = await api.deleteBrainLink(linkId).catch(err => {toast.error(err.message || 'Failed to delete');return null;});+ if (!result) return;toast.success('Link deleted');setConfirmingDeleteId(null);diff --git a/client/src/components/meatspace/post/PostLlmDrillRunner.jsx b/client/src/components/meatspace/post/PostLlmDrillRunner.jsxindex 891afb3297..3eaa32a1d4 100644--- a/client/src/components/meatspace/post/PostLlmDrillRunner.jsx+++ b/client/src/components/meatspace/post/PostLlmDrillRunner.jsx@@ -1,5 +1,5 @@import { useState, useEffect, useRef, useCallback } from 'react';-import { CheckCircle, XCircle, Loader } from 'lucide-react';+import { CheckCircle, XCircle } from 'lucide-react';import { scorePostLlmDrill } from '../../../services/api';import { DRILL_LABELS } from './constants';import { AILoadingIndicator, MissedExamplesDisplay, CompoundChainUI, BridgeWordUI, DoubleMeaningUI, IdiomTwistUI } from './WordplayDrillUI';diff --git a/client/src/components/meatspace/post/WordplayTrainer.jsx b/client/src/components/meatspace/post/WordplayTrainer.jsxindex 24357a7253..71ac874e79 100644--- a/client/src/components/meatspace/post/WordplayTrainer.jsx+++ b/client/src/components/meatspace/post/WordplayTrainer.jsx@@ -1,5 +1,5 @@import { useState, useRef, useCallback } from 'react';-import { ArrowLeft, Link, Puzzle, BookOpen, Shuffle, Loader, CheckCircle, XCircle, ChevronRight } from 'lucide-react';+import { ArrowLeft, Link, Puzzle, BookOpen, Shuffle, CheckCircle, XCircle, ChevronRight } from 'lucide-react';import { generatePostDrill, scorePostLlmDrill } from '../../../services/api';import { AILoadingIndicator, MissedExamplesDisplay, CompoundChainUI, BridgeWordUI, DoubleMeaningUI, IdiomTwistUI, ProgressBar } from './WordplayDrillUI';diff --git a/client/src/components/meatspace/tabs/AlcoholTab.jsx b/client/src/components/meatspace/tabs/AlcoholTab.jsxindex 6d801112ce..9e4c2640cb 100644--- a/client/src/components/meatspace/tabs/AlcoholTab.jsx+++ b/client/src/components/meatspace/tabs/AlcoholTab.jsx@@ -275,7 +275,7 @@ export default function AlcoholTab() {</div><div className="flex items-center gap-1.5"><span className="text-xs text-gray-500">Week</span>- <span className={`text-sm font-semibold ${summary.weeklyTotal > summary.thresholds.weeklyMax ? 'text-port-error' : 'text-gray-300'}`}>+ <span className={`text-sm font-semibold ${summary.weeklyTotal > summary.thresholds?.weeklyMax ? 'text-port-error' : 'text-gray-300'}`}>{summary.grams?.weeklyTotal ?? 0}g</span><span className="text-xs text-gray-600">/ {summary.gramThresholds?.weeklyMax ?? 196}g</span>diff --git a/server/services/insightsService.js b/server/services/insightsService.jsindex d8d021c1d1..067223bc94 100644--- a/server/services/insightsService.js+++ b/server/services/insightsService.js@@ -196,11 +196,11 @@ export async function getGenomeHealthCorrelations() {// Fetch blood test data in parallel (fail gracefully)let bloodValues = new Map();- let hasBlooodData = false;+ let hasBloodData = false;const bloodData = await getBloodTests().catch(() => null);if (bloodData?.tests?.length) {bloodValues = getLatestBloodValues(bloodData.tests);- hasBlooodData = true;+ hasBloodData = true;}// Group markers by category@@ -265,7 +265,7 @@ export async function getGenomeHealthCorrelations() {// Determine sourcesconst sources = ['23andMe'];- if (hasBlooodData) sources.push('Blood Tests');+ if (hasBloodData) sources.push('Blood Tests');// Check for Apple Health data availabilityconst appleHealthData = await getCorrelationData(diff --git a/server/services/localThinking.js b/server/services/localThinking.jsindex 8b9657997d..b72dfba4e7 100644--- a/server/services/localThinking.js+++ b/server/services/localThinking.js@@ -6,7 +6,7 @@*/import * as lmStudio from './lmStudioManager.js'-import { cosEvents } from './cosEvents.js'+// Task complexity thresholds for escalationconst COMPLEXITY_THRESHOLDS = {diff --git a/server/services/messageActions.js b/server/services/messageActions.jsindex 4f61011161..a8defdb1e3 100644--- a/server/services/messageActions.js+++ b/server/services/messageActions.js@@ -248,68 +248,6 @@ async function executeOutlookAction(page, subject, action) {}}-function buildOutlookActionScript(subject, action) {- // Use the same listbox/option approach proven by the sync scraper,- // then use keyboard shortcuts (Delete key or Backspace for archive)- const keyCode = action === 'delete' ? 'Delete' : 'Backspace';- return `(async () => {- const listbox = document.querySelector("[role='listbox']");- if (!listbox) return { error: 'No message list found — is Outlook inbox visible?' };-- const targetSubject = ${JSON.stringify(subject)}.toLowerCase();- const scrollContainer = listbox.closest('[role="region"]') || listbox.parentElement;-- function findMatch() {- const rows = listbox.querySelectorAll('[role="option"]');- for (const row of rows) {- const label = (row.getAttribute('aria-label') || '').toLowerCase();- const text = (row.innerText || '').toLowerCase();- if (label.includes(targetSubject) || text.includes(targetSubject)) return row;- }- return null;- }-- // Search visible rows, then scroll to find- let matched = findMatch();- if (!matched && scrollContainer) {- for (let i = 0; i < 15; i++) {- scrollContainer.scrollBy(0, 600);- await new Promise(r => setTimeout(r, 300));- matched = findMatch();- if (matched) break;- }- }- if (!matched) return { error: 'Message not found in inbox view', notInInbox: true };-- // Select the message- matched.scrollIntoView({ block: 'center' });- await new Promise(r => setTimeout(r, 200));- matched.click();- await new Promise(r => setTimeout(r, 500));-- // Use keyboard shortcut — most reliable in Outlook web- document.activeElement?.dispatchEvent(new KeyboardEvent('keydown', { key: '${keyCode}', code: '${keyCode}', bubbles: true }));- await new Promise(r => setTimeout(r, 500));-- // Fallback: try toolbar button if keyboard didn't work- const label = '${action === 'delete' ? 'Delete' : 'Archive'}';- const btn = [...document.querySelectorAll('button[aria-label]')].find(b =>- b.getAttribute('aria-label')?.toLowerCase().includes(label.toLowerCase()) && b.offsetParent !== null- );- if (btn) {- btn.click();- await new Promise(r => setTimeout(r, 500));- }-- // Verify the message is gone from the list- await new Promise(r => setTimeout(r, 500));- const stillThere = findMatch();- if (stillThere) return { error: 'Message still in inbox after ${action} attempt — action may not have worked' };-- return { success: true };- })()`;-}-function buildGmailActionScript(subject, action) {const ariaLabel = action === 'archive' ? 'Archive' : 'Delete';return `(async () => {