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: reduce initial page and CoS agents bundle loads
[._.]/ Adam Eivy78714471d811
diff --git a/client/src/App.jsx b/client/src/App.jsxindex 8496564ca4..9849a86064 100644--- a/client/src/App.jsx+++ b/client/src/App.jsx@@ -5,9 +5,11 @@ import Layout from './components/Layout';import { getSettings, updateSettings, getSelfInstance, PORTOS_APP_ID } from './services/api';import BrailleSpinner from './components/BrailleSpinner';import { CatalogTypesProvider } from './hooks/useCatalogTypes.jsx';-import Dashboard from './pages/Dashboard';import { lazyWithReload } from './utils/lazyWithReload';+// Direct links to other pages should not download the dashboard's grid/editor.+const Dashboard = lazyWithReload(() => import('./pages/Dashboard'));+// Neither /apps nor /ambient is the landing route, so keep them out of the eager// entry chunk — lazy-load them like every other non-index page.const Apps = lazyWithReload(() => import('./pages/Apps'));diff --git a/client/src/pages/ChiefOfStaff.jsx b/client/src/pages/ChiefOfStaff.jsxindex ba4a8ac516..f8221695a2 100644--- a/client/src/pages/ChiefOfStaff.jsx+++ b/client/src/pages/ChiefOfStaff.jsx@@ -36,9 +36,12 @@ import StatCard from '../components/cos/StatCard';import StatusBubble from '../components/cos/StatusBubble';import EventLog from '../components/cos/EventLog';import ActionableInsightsBanner from '../components/cos/ActionableInsightsBanner';-import TasksTab from '../components/cos/tabs/TasksTab';import AgentsTab from '../components/cos/tabs/AgentsTab';+// Task editing is not needed to view agents, so keep its forms and drag/drop+// dependencies out of the agents page's initial download.+const TasksTab = lazy(() => import('../components/cos/tabs/TasksTab'));+// The Runs tab (full AI run history + its log modal) is lazy-loaded so its weight// stays out of the eager CoS chunk every /cos/* visit pays for — same reason the// avatars below are not re-exported from the components/cos barrel.@@ -48,7 +51,7 @@ const RunsTab = lazy(() => import('../components/cos/tabs/RunsTab'));// ledger read path with it.const RunEventsTab = lazy(() => import('../components/cos/tabs/RunEventsTab'));const MindTab = lazy(() => import('../components/cos/tabs/MindTab'));-// The task and agent tabs are the default CoS landing surfaces and stay eager.+// Keep the agents landing surface eager; task editing loads only on its tab.// Every other tab is loaded only when selected so the common queue view does// not pay for charts, memory graphs, briefing readers, or configuration forms.const JobsTab = lazy(() => import('../components/cos/tabs/JobsTab'));@@ -1189,7 +1192,9 @@ export default function ChiefOfStaff() {{activeTab === 'tasks' && (<div role="tabpanel" id="tabpanel-tasks" aria-labelledby="tab-tasks"><ActionableInsightsBanner insights={insights} onTaskUnblocked={handleTaskUnblocked} onRefresh={fetchData} />- <TasksTab tasks={tasks} agents={agents} liveOutputs={liveOutputs} onRefresh={fetchData} onTaskAdded={handleUserTaskAdded} onTaskUnblocked={handleTaskUnblocked} providers={providers} providersLoaded={providersLoaded} apps={apps} />+ <Suspense fallback={<TabLoadFallback label="tasks" />}>+ <TasksTab tasks={tasks} agents={agents} liveOutputs={liveOutputs} onRefresh={fetchData} onTaskAdded={handleUserTaskAdded} onTaskUnblocked={handleTaskUnblocked} providers={providers} providersLoaded={providersLoaded} apps={apps} />+ </Suspense></div>)}{activeTab === 'agents' && (