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
address review: use cheap path validation for submodule update, preserve user input on error, include outOfSync in hasUpdates check
Adam Eivy204659c8b890
diff --git a/client/src/components/QuickBrainCapture.jsx b/client/src/components/QuickBrainCapture.jsxindex 234da879fe..71ed09f47f 100644--- a/client/src/components/QuickBrainCapture.jsx+++ b/client/src/components/QuickBrainCapture.jsx@@ -40,7 +40,7 @@ export default function QuickBrainCapture() {} else {toast.error(err.message || 'Failed to save link');}- setInput(text);+ setInput(prev => prev || text);return null;});if (result) {@@ -49,7 +49,7 @@ export default function QuickBrainCapture() {} else {const result = await api.captureBrainThought(text).catch(err => {toast.error(err.message || 'Failed to capture thought');- setInput(text);+ setInput(prev => prev || text);return null;});if (result) {diff --git a/client/src/pages/Submodules.jsx b/client/src/pages/Submodules.jsxindex e42afd9728..82a80a0f39 100644--- a/client/src/pages/Submodules.jsx+++ b/client/src/pages/Submodules.jsx@@ -56,7 +56,7 @@ export default function Submodules() {return <div className="text-center py-8"><BrailleSpinner text="Loading submodules" /></div>;}- const hasUpdates = submodules.some(s => s.behind > 0);+ const hasUpdates = submodules.some(s => s.behind > 0 || s.outOfSync || !s.initialized);return (<div className="space-y-6">diff --git a/server/routes/git.js b/server/routes/git.jsindex 850a2ee99d..7b51875143 100644--- a/server/routes/git.js+++ b/server/routes/git.js@@ -36,9 +36,9 @@ router.post('/submodules/update', asyncHandler(async (req, res) => {if (!path) {throw new ServerError('path must be a non-empty string', { status: 400, code: 'VALIDATION_ERROR' });}- // Validate that this is a known submodule path- const submodules = await git.getSubmodules();- if (!submodules.some(s => s.path === path)) {+ // Validate that this is a known submodule path (cheap check, no remote fetches)+ const knownPaths = await git.getSubmodulePaths();+ if (!knownPaths.includes(path)) {throw new ServerError(`Unknown submodule path: ${path}`, { status: 400, code: 'VALIDATION_ERROR' });}const newCommit = await git.updateSubmodule(path);