The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(neuron): original-model note in the new layout; single neurons say when
purple2e1c2eb0b662
diff --git a/src/components/models/ModelManager.tsx b/src/components/models/ModelManager.tsxindex 7dc04f42..8921d800 100644--- a/src/components/models/ModelManager.tsx+++ b/src/components/models/ModelManager.tsx@@ -117,8 +117,13 @@ export function ModelManager() {// Header search: always visible (no hidden magnifier), live filter +// Enter submits the HuggingFace catalog search in Discover.- const [searchQuery, setSearchQuery] = useState('')- const [searchSubmitToken, setSearchSubmitToken] = useState(0)+ // A button elsewhere may open Models with a search (Neurons' "Get the+ // original"): it starts the field and the catalog search once.+ const [searchQuery, setSearchQuery] = useState(() => useUIStore.getState().discoverQuery ?? '')+ const [searchSubmitToken, setSearchSubmitToken] = useState(() => (useUIStore.getState().discoverQuery ? 1 : 0))+ useEffect(() => {+ if (useUIStore.getState().discoverQuery) useUIStore.getState().clearDiscoverQuery()+ }, [])const searchInputRef = useRef<HTMLInputElement>(null)// The store still defaults categoryFilter to 'all' for legacy reasons, butdiff --git a/src/components/neuron/NeuronView.tsx b/src/components/neuron/NeuronView.tsxindex 0ab0703a..92a46510 100644--- a/src/components/neuron/NeuronView.tsx+++ b/src/components/neuron/NeuronView.tsx@@ -17,7 +17,7 @@ import { preservedSwapCtx } from '../../lib/builtin-ctx'import { builtinModelMatches } from '../../lib/builtin-model-identity'import {backendNote, effectiveStrengths, entriesFor, hasPersonaProfile,- clampStrength, steeringPersona, strengthWarning, warningText, type BackendKind, type Strengths,+ clampStrength, steeringPersona, strengthWarning, tweakedModelNote, warningText, type BackendKind, type Strengths,} from '../../lib/neuron'import { featureVectorId, neuronVectorId, recipeOwnId, type Recipe, type RecipeEntry } from '../../lib/neuron-recipe'import { editingKey, useNeuronStore } from '../../stores/neuronStore'@@ -26,7 +26,7 @@ import { useChatStore } from '../../stores/chatStore'import { useSettingsStore } from '../../stores/settingsStore'import { useUIStore } from '../../stores/uiStore'import type { BuiltinEngineTuning } from '../../types/settings'-import { JobPanel, ScopeButton, SliderRow, StepCard, WayIntro, WayTabs, signedValue } from './parts'+import { JobPanel, ScopeButton, SliderRow, StepCard, TweakedNote, WayIntro, WayTabs, signedValue } from './parts'import { ComparePanel, CoordinatesPanel, FeaturePanel, OwnSliderForm, SharePanel, entryState, type NeuronInfoPlus } from './panels'import { NeuronIntroHost } from './NeuronIntro'import { useNeuronIntroRequest } from '../../stores/neuronIntroStore'@@ -315,6 +315,16 @@ export function NeuronView() {const showIntro = useNeuronIntroRequest((s) => s.show)+ // A model changed before (fine-tune, merge, heretic …): say so before+ // computing, and offer its original in Discover (David, 31.10.2026).+ const tweak = info ? tweakedModelNote(info.facts) : null+ const original = info?.facts.original ?? null+ const getOriginal = () => {+ if (!original) return+ useModelStore.getState().setCategoryFilter('text')+ useUIStore.getState().openDiscoverFor('builtin', original)+ }+if (modelsLoaded && models.length === 0) {return (<>@@ -390,7 +400,8 @@ export function NeuronView() {testId="neuron-step-sliders">{error && <Hinweis ton="fehler" className="mb-3" onDismiss={() => setError(null)}>{error}</Hinweis>}- {job && job.status !== 'idle' && <JobPanel job={job} onStop={() => { setQueue([]); void neuronCancel().then(poll) }} onDismiss={() => void neuronDismiss().then(poll)} />}+ {tweak && <TweakedNote title={tweak.title} text={tweak.text} original={tweak.original} onGetOriginal={getOriginal} />}+ {job && job.status !== 'idle' && <JobPanel job={job} onStop={() => { setQueue([]); void neuronCancel().then(poll) }} onDismiss={() => void neuronDismiss().then(poll)} onGetOriginal={getOriginal} original={original} />}{queue.length > 0 && <p className={`t-micro ${HINWEIS_TEXT.ruhig} mb-3`} data-testid="neuron-queue">{queue.length} more to prepare from the recipe, one after the other.</p>}{info && !info.generator && (<Hinweis className="mb-3">This install is missing its vector tool, so ready-made and own sliders cannot be computed. Reinstall LU to bring it back. Feature sliders still work where the model has one.</Hinweis>diff --git a/src/components/neuron/__tests__/neurons-for-beginners.test.tsx b/src/components/neuron/__tests__/neurons-for-beginners.test.tsxindex 4833ca56..30b26ebf 100644--- a/src/components/neuron/__tests__/neurons-for-beginners.test.tsx+++ b/src/components/neuron/__tests__/neurons-for-beginners.test.tsx@@ -19,7 +19,8 @@ const apply = vi.fn(async (_path: string, _entries: unknown[], _tuning?: unknownconst buildPreset = vi.fn(async (_path: string, _id: string) => ({ started: true }))const buildOwn = vi.fn(async (..._a: unknown[]) => ({ started: true }))const vectors: Array<Record<string, unknown>> = []-const job = vi.hoisted(() => ({ status: 'idle' }))+const job = vi.hoisted(() => ({ status: 'idle', error: null as string | null }))+const facts = vi.hoisted(() => ({ tweaked: [] as string[], original: null as string | null }))vi.mock('../../../api/neuron', () => ({neuronPresets: async () => [@@ -28,10 +29,10 @@ vi.mock('../../../api/neuron', () => ({{ id: 'cheerful', left: 'Serious', right: 'Cheerful' },],neuronInfo: async () => ({- facts: { arch: 'qwen2', nLayer: 24, nEmbd: 896, template: 'chatMl', name: 'Qwen2.5 0.5B Instruct' },+ facts: { arch: 'qwen2', nLayer: 24, nEmbd: 896, template: 'chatMl', name: 'Qwen2.5 0.5B Instruct', tweaked: [...facts.tweaked], original: facts.original },modelKey: 'qwen-1', generator: true, band: [3, 20], vectors: [...vectors], sae: null, activeMix: null,}),- neuronStatus: async () => ({ status: job.status, kind: '', title: 'Computing', modelPath: '/models/qwen.gguf', phaseLabel: '', step: 0, total: 0, bytesDone: 0, bytesTotal: 0, rateBps: 0, etaSecs: null, elapsedSecs: 0, resultId: null, error: null, logs: [] }),+ neuronStatus: async () => ({ status: job.status, kind: '', title: 'Computing', modelPath: '/models/qwen.gguf', phaseLabel: '', step: 0, total: 0, bytesDone: 0, bytesTotal: 0, rateBps: 0, etaSecs: null, elapsedSecs: 0, resultId: null, error: job.error, logs: [] }),neuronApply: (p: string, e: unknown[], t?: unknown) => apply(p, e, t),neuronBuildPreset: (p: string, id: string) => buildPreset(p, id),neuronBuildOwn: (...a: unknown[]) => buildOwn(...a),@@ -49,6 +50,7 @@ vi.mock('../../../api/builtin-ensure', () => ({ isManagedBuiltinSlot: () => trueimport { NeuronView } from '../NeuronView'import { useModelStore } from '../../../stores/modelStore'+import { useUIStore } from '../../../stores/uiStore'import { useNeuronStore } from '../../../stores/neuronStore'import { useNeuronIntroRequest } from '../../../stores/neuronIntroStore'import { buildCommands } from '../../ui/command-actions'@@ -62,6 +64,9 @@ beforeEach(() => {buildOwn.mockClear()vectors.length = 0job.status = 'idle'+ job.error = null+ facts.tweaked = []+ facts.original = nulluseNeuronStore.setState({ profiles: {}, scopeByModel: {}, introSeen: true })useNeuronIntroRequest.setState({ open: false })useModelStore.setState({ activeModel: 'openai::qwen2.5-0.5b-instruct-q8_0' })@@ -200,10 +205,25 @@ describe('coordinates', () => {fireEvent.click(await screen.findByTestId('neuron-way-coords'))fireEvent.change(await screen.findByTestId('neuron-coords-input'), { target: { value: 'Qwen3.5-4B: L13N7956-1.0 L14N8949+1.0' } })expect(screen.getByTestId('neuron-coords-other-model').textContent).toMatch(/one exact model/)- expect(screen.getAllByTestId('neuron-coords-line')[0].textContent).toMatch(/not in this build yet/)- expect((screen.getByTestId('neuron-coords-use') as HTMLButtonElement).disabled).toBe(true)+ expect(screen.getAllByTestId('neuron-coords-line')[0].textContent).toMatch(/arrive with the next LU Engine update.*Next update$/)// Nothing the box could unlock, so no box.expect(screen.queryByTestId('neuron-coords-anyway')).toBeNull()+ // Zentrale 31.10.: never silent. Use says plainly why nothing changed.+ const before = JSON.stringify(useNeuronStore.getState().profiles)+ fireEvent.click(screen.getByTestId('neuron-coords-use'))+ expect(screen.getByTestId('neuron-coords-later').textContent).toBe('2 single neurons were not applied. Single neurons arrive with the next LU Engine update. LU already reads, checks and shares these lines.')+ expect(JSON.stringify(useNeuronStore.getState().profiles)).toBe(before)+ })++ it('applies the rest of a mixed recipe and names the neuron it left out', async () => {+ vectors.push(CHEERFUL)+ render(createElement(NeuronView))+ await screen.findByTestId('neuron-slider-cheerful')+ fireEvent.click(screen.getByTestId('neuron-way-coords'))+ fireEvent.change(await screen.findByTestId('neuron-coords-input'), { target: { value: '@cheerful+0.4 L14N8949+1.0' } })+ fireEvent.click(screen.getByTestId('neuron-coords-use'))+ expect(useNeuronStore.getState().profiles['qwen-1']).toEqual({ cheerful: 0.4 })+ expect(screen.getByTestId('neuron-coords-later').textContent).toMatch(/^One single neuron was not applied\./)})})@@ -221,3 +241,42 @@ describe('sharing', () => {expect(writeText.mock.calls[0][0]).toBe('LU neurons · Qwen2.5 0.5B Instruct · @cheerful+0.60\nlocallyuncensored://neuron?v=1&model=Qwen2.5+0.5B+Instruct&c=%40cheerful%2B0.60')})})++// P11 FEHLER 10, David 31.10.2026: a model changed before computes worse or+// not at all. Say so before computing, and after a failure, with the way to+// its original.+describe('tweaked models', () => {+ it('says before computing that originals work best, and finds the original in Discover', async () => {+ facts.tweaked = ['fine-tune', 'merge', 'heretic', 'uncensored']+ facts.original = 'Qwen3.5 9B'+ useUIStore.setState({ currentView: 'neuron', discoverTarget: null, discoverQuery: null })+ render(createElement(NeuronView))+ const note = await screen.findByTestId('neuron-tweaked-note')+ expect(note.textContent).toMatch(/^Works best with original, untweaked models/)+ expect(note.textContent).toMatch(/fine-tune, merge, heretic, uncensored/)+ // Above the ways and their compute buttons, blocking nothing.+ expect(note.compareDocumentPosition(screen.getByTestId('neuron-way-ready')) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy()+ expect((screen.getByTestId('neuron-compute-creative') as HTMLButtonElement).disabled).toBe(false)+ fireEvent.click(screen.getByTestId('neuron-get-original'))+ const ui = useUIStore.getState()+ expect([ui.currentView, ui.discoverTarget, ui.discoverQuery]).toEqual(['models', 'builtin', 'Qwen3.5 9B'])+ expect(useModelStore.getState().categoryFilter).toBe('text')+ })++ it('stays quiet on an original model', async () => {+ render(createElement(NeuronView))+ await screen.findByTestId('neuron-compute-creative')+ expect(screen.queryByTestId('neuron-tweaked-note')).toBeNull()+ })++ it('puts the way to the original next to a failure', async () => {+ facts.tweaked = ['heretic']+ facts.original = 'Qwen3.5 9B'+ job.status = 'failed'+ job.error = 'The vector tool cannot read this model. The Neuron tweaker works best with original, untweaked models: try the original of this model.'+ render(createElement(NeuronView))+ const ended = await screen.findByTestId('neuron-job-ended')+ expect(ended.textContent).toMatch(/try the original of this model/)+ expect((await within(ended).findByTestId('neuron-get-original-failed')).textContent).toBe('Get the original: Qwen3.5 9B')+ })+})diff --git a/src/components/neuron/panels.tsx b/src/components/neuron/panels.tsxindex 5c181e80..a2ddc8be 100644--- a/src/components/neuron/panels.tsx+++ b/src/components/neuron/panels.tsx@@ -149,7 +149,11 @@ export function FeaturePanel({ info, modelPath, vectors, strengths, disabled, onexport type EntryState =| { state: 'ready' }| { state: 'prepare' }- | { state: 'blocked'; why: string }+ | { state: 'blocked'; why: string; later?: boolean }++/** Single neurons need an LU Engine piece that is not in 3.0.9 (Zentrale,+ * 31.10.2026: never look broken, say it plainly when applied). */+export const NEURONS_LATER = 'Single neurons arrive with the next LU Engine update. LU already reads, checks and shares these lines.'/** Whether a recipe line can run on this model, and if not, why. */export function entryState(e: RecipeEntry, info: NeuronInfoPlus, vectorIds: ReadonlySet<string>, ids: { feature: (n: number) => string; neuron: (l: number, n: number) => string; own: (e: Extract<RecipeEntry, { kind: 'own' }>) => string }): EntryState {@@ -169,7 +173,7 @@ export function entryState(e: RecipeEntry, info: NeuronInfoPlus, vectorIds: Readif (e.layer >= info.facts.nLayer) return { state: 'blocked', why: `This model has ${info.facts.nLayer} layers (0–${info.facts.nLayer - 1}).` }if (info.nFf && e.neuron >= info.nFf) return { state: 'blocked', why: `Layers of this model have ${info.nFf} neurons.` }if (vectorIds.has(ids.neuron(e.layer, e.neuron))) return { state: 'ready' }- if (!info.mlpNeurons) return { state: 'blocked', why: 'Pushing single neurons needs an LU Engine piece that is not in this build yet. You can still read and pass on the line.' }+ if (!info.mlpNeurons) return { state: 'blocked', why: NEURONS_LATER, later: true }return { state: 'prepare' }}}@@ -200,6 +204,7 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled}) {const [text, setText] = useState('')const [anyway, setAnyway] = useState(false)+ const [laterNote, setLaterNote] = useState<string | null>(null)const presetIds = useMemo(() => new Set(presets.map((p) => p.id)), [presets])const parsed = useMemo(() => (text.trim() ? parseRecipe(text, presetIds) : null), [text, presetIds])const fit: ModelFit = parsed?.ok ? modelFit(parsed.recipe.model, ...modelNames) : 'unknown'@@ -212,6 +217,7 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabledreturn p ? `${p.left} ↔ ${p.right}` : id}const usable = parsed?.ok ? parsed.recipe.entries.filter((e) => states(e).state !== 'blocked') : []+ const later = parsed?.ok ? parsed.recipe.entries.filter((e) => { const st = states(e); return st.state === 'blocked' && !!st.later }) : []const blockedByModel = fit === 'other' && boundUsable && !anywayreturn (<div className="space-y-3" data-testid="neuron-coords">@@ -220,7 +226,7 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled<textarearows={3}value={text}- onChange={(e) => { setText(e.target.value); setAnyway(false) }}+ onChange={(e) => { setText(e.target.value); setAnyway(false); setLaterNote(null) }}placeholder={'Qwen3.5-4B: L13N7956-1.0 L14N8949+1.0\n@cheerful+0.5 F11690+0.8\nlocallyuncensored://neuron?v=1&…'}spellCheck={false}className={`${field} t-mono`}@@ -255,7 +261,7 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled{st.state === 'blocked' && <p className="t-micro text-gray-200 mt-0.5">{st.why}</p>}</div><span className={`t-micro pt-1 ${st.state === 'ready' ? 'text-emerald-600 dark:text-emerald-400' : st.state === 'prepare' ? 'text-lu-accent' : HINWEIS_TEXT.ruhig}`}>- {st.state === 'ready' ? 'Ready' : st.state === 'prepare' ? 'Will be prepared' : 'Not usable'}+ {st.state === 'ready' ? 'Ready' : st.state === 'prepare' ? 'Will be prepared' : st.later ? 'Next update' : 'Not usable'}</span></li>)@@ -271,15 +277,21 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled<div className="flex flex-wrap items-center gap-2 pt-1"><buttontype="button"- disabled={disabled || usable.length === 0 || blockedByModel}- onClick={() => onUse({ model: parsed.recipe.model, entries: usable })}+ disabled={disabled || (usable.length === 0 && later.length === 0) || blockedByModel}+ onClick={() => {+ if (usable.length) onUse({ model: parsed.recipe.model, entries: usable })+ setLaterNote(later.length+ ? `${later.length === 1 ? 'One single neuron was' : `${later.length} single neurons were`} not applied. ${NEURONS_LATER}`+ : null)+ }}data-testid="neuron-coords-use"className="lu-control lu-primary">- {usable.length === 0 ? 'Nothing usable on this model' : usable.length === parsed.recipe.entries.length ? 'Use these values' : `Use the ${usable.length} usable values`} <ArrowRight size={ICON_SM} />+ {usable.length === 0 && later.length === 0 ? 'Nothing usable on this model' : usable.length === parsed.recipe.entries.length || usable.length === 0 ? 'Use these values' : `Use the ${usable.length} usable values`} <ArrowRight size={ICON_SM} /></button>- <span className={`t-micro ${HINWEIS_TEXT.ruhig}`}>Replaces your current sliders. You can undo.</span>+ <span className={`t-micro ${HINWEIS_TEXT.ruhig}`}>{usable.length ? 'Replaces your current sliders. You can undo.' : 'Nothing changes on your sliders.'}</span></div>+ {laterNote && <p className="t-body text-gray-200" role="status" data-testid="neuron-coords-later">{laterNote}</p>}</div>)}diff --git a/src/components/neuron/parts.tsx b/src/components/neuron/parts.tsxindex 60256b9e..5881221f 100644--- a/src/components/neuron/parts.tsx+++ b/src/components/neuron/parts.tsx@@ -124,6 +124,22 @@ export function SliderRow({ id, left, right, value, computed, disabled, tag, onC)}+/** Before computing on a model that was changed before (P11 FEHLER 10,+ * David 31.10.2026). Calm, blocks nothing; the words are lib/neuron's. */+export function TweakedNote({ title, text, original, onGetOriginal }: { title: string; text: string; original: string | null; onGetOriginal: () => void }) {+ return (+ <div className="mb-4 border-l-2 border-lu-accent/50 pl-3 py-0.5" role="note" data-testid="neuron-tweaked-note">+ <p className="t-body font-medium text-gray-100">{title}</p>+ <p className={`t-body ${HINWEIS_TEXT.ruhig}`}>{text}</p>+ {original && (+ <button type="button" className="lu-tonal mt-2" onClick={onGetOriginal} data-testid="neuron-get-original">+ Get the original: {original}+ </button>+ )}+ </div>+ )+}+/** The ways to make a slider, as tabs. */export function WayTabs<T extends string>({ ways, current, onPick }: {ways: Array<{ id: T; label: string; count?: number }>@@ -178,7 +194,7 @@ export function ScopeButton({ on, onClick, children }: { on: boolean; onClick: ()}-export function JobPanel({ job, onStop, onDismiss }: { job: NeuronJob; onStop: () => void; onDismiss: () => void }) {+export function JobPanel({ job, onStop, onDismiss, onGetOriginal, original }: { job: NeuronJob; onStop: () => void; onDismiss: () => void; onGetOriginal?: () => void; original?: string | null }) {const share = jobShare(job)if (job.status === 'running') {return (@@ -201,7 +217,16 @@ export function JobPanel({ job, onStop, onDismiss }: { job: NeuronJob; onStop: (return (<div className="mb-4" data-testid="neuron-job-ended">{job.status === 'done' && <Hinweis onDismiss={onDismiss}>{job.title}: done{job.elapsedSecs ? ` in ${job.elapsedSecs} s` : ''}.{strength ? ` ${strength}.` : ''}</Hinweis>}- {job.status === 'failed' && <Hinweis ton="fehler" onDismiss={onDismiss}>{job.title} failed: {job.error}</Hinweis>}+ {job.status === 'failed' && (+ <>+ <Hinweis ton="fehler" onDismiss={onDismiss}>{job.title} failed: {job.error}</Hinweis>+ {onGetOriginal && original && (+ <button type="button" className="lu-tonal mt-2" onClick={onGetOriginal} data-testid="neuron-get-original-failed">+ Get the original: {original}+ </button>+ )}+ </>+ )}{job.status === 'cancelled' && <Hinweis onDismiss={onDismiss}>{job.title}: stopped.</Hinweis>}</div>)diff --git a/src/stores/__tests__/discover-query-handoff.test.ts b/src/stores/__tests__/discover-query-handoff.test.tsnew file mode 100644index 00000000..40207c84--- /dev/null+++ b/src/stores/__tests__/discover-query-handoff.test.ts@@ -0,0 +1,31 @@+/**+ * N2 (3.0.9): Neurons' "Get the original" opens Discover searching for the+ * original model. The query rides along with the target, is never saved, and+ * the Models page reads it once.+ *+ * Run: npx vitest run src/stores/__tests__/discover-query-handoff.test.ts+ */+import { describe, it, expect } from 'vitest'+import { readFileSync } from 'node:fs'+import { resolve } from 'node:path'+import { useUIStore } from '../uiStore'++describe('Discover search hand-off', () => {+ it('carries a query with the target, and none without one', () => {+ useUIStore.getState().openDiscoverFor('builtin', ' Qwen3.5 9B ')+ expect(useUIStore.getState()).toMatchObject({ currentView: 'models', discoverTarget: 'builtin', discoverQuery: 'Qwen3.5 9B' })+ useUIStore.getState().clearDiscoverQuery()+ expect(useUIStore.getState().discoverQuery).toBeNull()+ useUIStore.getState().openDiscoverFor('builtin')+ expect(useUIStore.getState().discoverQuery).toBeNull()+ })++ it('is not saved, and the Models page starts its search with it once', () => {+ const store = readFileSync(resolve(__dirname, '../uiStore.ts'), 'utf8')+ const kept = store.slice(store.indexOf('partialize:'))+ expect(kept.slice(0, kept.indexOf('}),'))).not.toMatch(/discoverQuery/)+ const page = readFileSync(resolve(__dirname, '../../components/models/ModelManager.tsx'), 'utf8')+ expect(page).toMatch(/useState\(\(\) => useUIStore\.getState\(\)\.discoverQuery \?\? ''\)/)+ expect(page).toMatch(/clearDiscoverQuery\(\)/)+ })+})diff --git a/src/stores/uiStore.ts b/src/stores/uiStore.tsindex c67fe276..2d0b2e9e 100644--- a/src/stores/uiStore.ts+++ b/src/stores/uiStore.ts@@ -148,9 +148,15 @@ interface UIState {* elsewhere already knows (the Neuron tweaker needs LU Engine files).* Read once by Discover, then cleared. Never persisted. */discoverTarget: 'builtin' | null- /** Open Models on Discover's chat lane with downloads going to `target`. */- openDiscoverFor: (target: 'builtin') => void+ /** What Discover's search starts with on the next visit (N2: Neurons'+ * "Get the original"). Read once by the Models page, then cleared. Never+ * persisted. */+ discoverQuery: string | null+ /** Open Models on Discover's chat lane with downloads going to `target`,+ * optionally searching for `query`. */+ openDiscoverFor: (target: 'builtin', query?: string) => voidclearDiscoverTarget: () => void+ clearDiscoverQuery: () => voidsetView: (view: View) => void/** Open Settings on a given tab, optionally with one section unfolded. */openSettingsAt: (focus: SettingsFocus) => void@@ -228,8 +234,10 @@ export const useUIStore = create<UIState>()(modelAskSeq: 0,askForModel: () => set((s) => ({ modelAskSeq: s.modelAskSeq + 1 })),discoverTarget: null,- openDiscoverFor: (target) => set({ currentView: 'models', settingsFocus: null, discoverTarget: target }),+ discoverQuery: null,+ openDiscoverFor: (target, query) => set({ currentView: 'models', settingsFocus: null, discoverTarget: target, discoverQuery: query?.trim() || null }),clearDiscoverTarget: () => set({ discoverTarget: null }),+ clearDiscoverQuery: () => set({ discoverQuery: null }),// Navigation no longer touches sidebarOpen. The conversation list only// makes sense in Chat, and that rule now lives in the Sidebar itself