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
fix(sampling): "From persona" names only the rows that really go out
purplee68897654893
diff --git a/src/components/chat/CustomParamsEditor.tsx b/src/components/chat/CustomParamsEditor.tsxindex 90d81ed4..6a006966 100644--- a/src/components/chat/CustomParamsEditor.tsx+++ b/src/components/chat/CustomParamsEditor.tsx@@ -42,7 +42,8 @@ export function CustomParamsEditor({const remove = (i: number) => onChange(rows.filter((_, j) => j !== i))const add = () => onChange([...rows, { key: '', type: 'number', value: '' }])const own = new Set(rows.map((r) => r.key.trim()))- const below = (inherited?.rows ?? []).filter((r) => r.key.trim() && !own.has(r.key.trim()))+ // Only the persona rows that really go out: a broken or fixed one is not "from" anywhere.+ const below = (inherited?.rows ?? []).filter((r) => !customParamProblem(r) && !own.has(r.key.trim()))return (<div role="group" aria-label={CUSTOM_PARAMS_LABEL} data-testid={testId} className="space-y-1.5">diff --git a/src/components/chat/__tests__/custom-params-in-the-sampling-popup.test.tsx b/src/components/chat/__tests__/custom-params-in-the-sampling-popup.test.tsxindex d268036a..692a989b 100644--- a/src/components/chat/__tests__/custom-params-in-the-sampling-popup.test.tsx+++ b/src/components/chat/__tests__/custom-params-in-the-sampling-popup.test.tsx@@ -18,7 +18,7 @@ const conversation = {}const baron = {id: 'baron', name: 'Baron', icon: 'User', systemPrompt: 'You are Baron.', isBuiltIn: false,- customParams: [{ key: 'xtc_threshold', type: 'number' as const, value: '0.1' }],+ customParams: [{ key: 'xtc_threshold', type: 'number' as const, value: '0.1' }, { key: 'temperature', type: 'number' as const, value: '1.9' }],}beforeEach(() => {@@ -53,6 +53,6 @@ describe('custom rows in the Sampling popup', () => {fireEvent.click(screen.getByTestId('sampling-trigger'))fireEvent.click(screen.getByRole('button', { name: 'Reset' }))expect(conv().customParams).toBeUndefined()- expect(useSettingsStore.getState().personas[0].customParams).toHaveLength(1)+ expect(useSettingsStore.getState().personas[0].customParams).toHaveLength(2)})})