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 review (codex): preserve unpinned model state
Adam Eivya4ac4c249eb6
diff --git a/client/src/components/cos/PersistentMindProfileControls.jsx b/client/src/components/cos/PersistentMindProfileControls.jsxindex 2bbae4a9e4..ec5fd333ed 100644--- a/client/src/components/cos/PersistentMindProfileControls.jsx+++ b/client/src/components/cos/PersistentMindProfileControls.jsx@@ -2,7 +2,7 @@ import { useEffect, useId, useRef, useState } from 'react';import useProviderModels from '../../hooks/useProviderModels';import * as api from '../../services/api';import useLocalModels from '../../hooks/useLocalModels';-import { effectiveModelFor, modelCapabilityInfo } from '../../utils/providers.js';+import { modelCapabilityInfo } from '../../utils/providers.js';import ModelCapabilitySummary from '../models/ModelCapabilitySummary.jsx';import ProviderModelSelector from '../ProviderModelSelector';import toast from '../ui/Toast';@@ -48,7 +48,10 @@ export default function PersistentMindProfileControls({const publishedProfileRef = useRef(draft);const pendingSavesRef = useRef(0);const selectedProvider = providers.find((provider) => provider.id === draft.providerId) || null;- const capabilityModel = effectiveModelFor(selectedProvider, draft.model);+ // Persistent mind requires an explicit model pin. Keep the capability panel+ // on the stored value instead of previewing the provider default, which could+ // make an invalid/unpinned profile look runnable.+ const capabilityModel = draft.model;const capabilityInfo = modelCapabilityInfo(selectedProvider, capabilityModel, {capabilitiesByBackend,recommendations,diff --git a/client/src/components/cos/PersistentMindProfileControls.test.jsx b/client/src/components/cos/PersistentMindProfileControls.test.jsxindex 7dae37c613..66b2ab254a 100644--- a/client/src/components/cos/PersistentMindProfileControls.test.jsx+++ b/client/src/components/cos/PersistentMindProfileControls.test.jsx@@ -64,4 +64,25 @@ describe('PersistentMindProfileControls capability guidance', () => {expect(screen.getByText('Best fit for local text work.')).toBeInTheDocument();await waitFor(() => expect(screen.getByRole('option', { name: /qwen3\.6:35b.*tool use/i })).toBeInTheDocument());});++ it('keeps an unpinned model visibly unselected even when the provider has a default', async () => {+ localLlm.getToolUseModels.mockResolvedValue({ models: [] });+ localLlm.getLocalLlmStatus.mockResolvedValue({+ ollama: {+ models: [{ id: 'qwen3.6:35b', capabilities: ['chat', 'tools'] }],+ recommendations: { editorial: { id: 'qwen3.6:35b', reason: 'Best fit for local text work.' } },+ },+ lmstudio: { models: [] },+ });++ render(+ <PersistentMindProfileControls+ profile={{ enabled: true, providerId: 'ollama', model: '', effort: '', thinkingInterface: 'text' }}+ />,+ );++ await waitFor(() => expect(screen.getByText('Choose a provider and model to see capability badges and the available recommendation.')).toBeInTheDocument());+ expect(screen.queryByText('★ Recommended local model')).not.toBeInTheDocument();+ expect(screen.queryByLabelText('Tool use')).not.toBeInTheDocument();+ });});