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: preserve mind tool authority state
Adam Eivyc11a32f5e7a3
diff --git a/client/src/components/cos/tabs/MindTab.jsx b/client/src/components/cos/tabs/MindTab.jsxindex 463688246f..687fa10fe4 100644--- a/client/src/components/cos/tabs/MindTab.jsx+++ b/client/src/components/cos/tabs/MindTab.jsx@@ -529,6 +529,8 @@ export default function MindTab() {const selectedEvent = events?.find((event) => event.eventId === selectedEventId) || null;const isPaused = state?.status === 'paused';const profileReady = Boolean(mind?.profile?.enabled && mind.profile.providerId && mind.profile.model);+ const grantedCapabilityCount = Object.entries(mind?.capabilities || {})+ .filter(([key, value]) => key !== 'schemaVersion' && value === true).length;const { status: imageCapabilityStatus, guidance: imageCapabilityGuidance } = imageCapability(mind);const imageAttachmentsUnavailable = imageCapabilityStatus === 'unsupported';const setupSaving = profileSaving;@@ -702,7 +704,7 @@ export default function MindTab() {<div className="grid grid-cols-2 gap-2 xl:grid-cols-1"><MindStateButton icon={Brain} label="Context" value={runtime?.context?.approximateTokens == null ? 'Unavailable' : `~${runtime.context.approximateTokens.toLocaleString()} tokens`} detail={`${runtime?.context?.chars?.toLocaleString() || '—'} characters`} onClick={() => openPanel('context')} /><MindStateButton icon={Database} label="Memories" value={runtime?.context?.memoryCount == null ? 'Unavailable' : `${runtime.context.memoryCount} accessible`} detail="Created and curated" onClick={() => openPanel('memories')} />- <MindStateButton icon={Wrench} label="Tools" value={mind?.capabilities?.createTasks ? 'Task access on' : 'No grants'} detail="Narrow, typed authority" onClick={() => openPanel('tools')} />+ <MindStateButton icon={Wrench} label="Tools" value={grantedCapabilityCount > 0 ? `${grantedCapabilityCount} grant${grantedCapabilityCount === 1 ? '' : 's'} enabled` : 'No grants'} detail="Narrow, typed authority" onClick={() => openPanel('tools')} /><MindStateButton icon={Cpu} label="Settings" value={runtime?.inference?.active ? 'Running now' : runtime?.inference?.residency?.status === 'loaded' ? 'Loaded in memory' : 'Not running'} detail={runtime?.inference?.model || mind?.profile?.model || 'Not configured'} onClick={() => openPanel('settings')} /></div>diff --git a/client/src/components/cos/tabs/MindTab.test.jsx b/client/src/components/cos/tabs/MindTab.test.jsxindex c3bebeb2e1..882374bc5e 100644--- a/client/src/components/cos/tabs/MindTab.test.jsx+++ b/client/src/components/cos/tabs/MindTab.test.jsx@@ -301,6 +301,15 @@ describe('MindTab', () => {expect(screen.getAllByText(/leave open for human review/i).length).toBeGreaterThan(0);});+ it('reports every enabled typed-tool grant in the dashboard status', async () => {+ api.getPersistentMind.mockResolvedValue(response({+ capabilities: { schemaVersion: 2, createTasks: false, readPortos: true, writePortos: true },+ }));+ renderTab();++ expect(await screen.findByText('2 grants enabled')).toBeInTheDocument();+ });+it('keeps a failed message for a visible idempotent retry', async () => {const user = userEvent.setup();api.sendPersistentMindMessage.mockRejectedValueOnce(new Error('Provider unavailable'));diff --git a/server/lib/navManifest.js b/server/lib/navManifest.jsindex 8abccd0d8c..506e463781 100644--- a/server/lib/navManifest.js+++ b/server/lib/navManifest.js@@ -161,7 +161,7 @@ const RAW_NAV_COMMANDS = [{ id: 'nav.cos.learning', path: '/cos/learning', label: 'Learning', section: 'Chief of Staff', aliases: ['cos-learning'] },{ id: 'nav.cos.memory', path: '/cos/memory', label: 'Memory', section: 'Chief of Staff', aliases: ['cos-memory'] },{ id: 'nav.cos.mind', path: '/cos/mind', label: 'Mind', section: 'Chief of Staff', aliases: ['cos-mind', 'persistent-mind', 'mind-chat'], keywords: ['persistent mind', 'chat', 'annotation', 'resident mind', 'conversation'] },- { id: 'nav.cos.mind-tools', path: '/cos/mind?panel=tools', label: 'Mind Tools', section: 'Chief of Staff', aliases: ['mind-tools', 'persistent-mind-tools', 'tools-access'], keywords: ['persistent mind', 'tools', 'access', 'permissions', 'authority', 'capabilities'] },+ { id: 'nav.cos.mind-tools', path: '/cos/mind?panel=tools', label: 'Mind Tools', section: 'Chief of Staff', previousPaths: ['/cos/tools', '/cos/mind/tools'], aliases: ['mind-tools', 'persistent-mind-tools', 'tools-access'], keywords: ['persistent mind', 'tools', 'access', 'permissions', 'authority', 'capabilities'] },{ id: 'nav.cos.runs', path: '/cos/runs', label: 'Runs', section: 'Chief of Staff', previousPaths: ['/devtools/runs'], aliases: ['runs', 'ai-runs', 'cos-runs', 'recent-runs', 'run-history'], keywords: ['runs', 'run history', 'recent runs', 'ai runs', 'agent runs', 'failed runs'] },{ id: 'nav.cos.run-events', path: '/cos/run-events', label: 'Run Events', section: 'Chief of Staff', aliases: ['run-events', 'cos-run-events', 'run-event-ledger', 'lifecycle-events'], keywords: ['run events', 'lifecycle', 'ledger', 'replay', 'diagnostics', 'orphaned', 'handoff', 'reconnect', 'interrupted', 'why did this run fail'] },{ id: 'nav.cos.schedule', path: '/cos/schedule', label: 'Schedule', section: 'Chief of Staff', aliases: ['schedule', 'cos-schedule'] },diff --git a/server/lib/navManifest.test.js b/server/lib/navManifest.test.jsindex c51508ba77..b360f77f65 100644--- a/server/lib/navManifest.test.js+++ b/server/lib/navManifest.test.js@@ -155,6 +155,11 @@ describe('navManifest — persistent mind dashboard', () => {expect(resolveNavCommand(alias)?.path).toBe('/cos/mind?panel=tools');},);++ it('maps both former Mind Tools routes onto the embedded tools panel', () => {+ const tools = NAV_COMMANDS.find((command) => command.id === 'nav.cos.mind-tools');+ expect(tools?.previousPaths).toEqual(['/cos/tools', '/cos/mind/tools']);+ });});// Feature gating hides a page from the ⌘K palette and the sidebar. A typo in a