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(settings): zwei Sollpunkte aus dem Review, Uebergabezeile und Portanzeige
purple53b7d575b1c3
diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex 31a3969d..f7beebd6 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -294,10 +294,14 @@ export function HfDownloadPathSetting() {return () => { alive = false }}, [override])- // One line, and only when there is something to say. It also swallows the- // ComfyUI handoff note below: a folder that cannot be read has one problem,- // not two, and two amber lines saying the same thing read as two faults.+ // One line, and only when there is something to say.const scanNote = modelDirScanNote(scan?.status)+ // A folder that cannot be read at all has one problem, not two, so the+ // ComfyUI handoff note steps aside for those two verdicts: it would say the+ // same thing in different words. `truncated` is a different matter. The+ // folder IS readable, the walk simply ran out of budget, and what LU hands+ // to ComfyUI is unaffected by that, so both lines belong on screen.+ const scanHidesHandoff = scan?.status === 'unreachable' || scan?.status === 'unusable'function apply(next: string) {setDraft(next)@@ -349,7 +353,7 @@ export function HfDownloadPathSetting() {{scanNote}</div>)}- {override && comfy !== null && !scanNote && <CustomModelDirNote result={comfy} />}+ {override && comfy !== null && !scanHidesHandoff && <CustomModelDirNote result={comfy} />}</div>)}diff --git a/src/components/settings/__tests__/engine-port-is-visible.test.ts b/src/components/settings/__tests__/engine-port-is-visible.test.tsindex 1e8984b4..93ea1a6a 100644--- a/src/components/settings/__tests__/engine-port-is-visible.test.ts+++ b/src/components/settings/__tests__/engine-port-is-visible.test.ts@@ -62,9 +62,14 @@ describe('the line itself', () => {expect(enginePortLine(null, 8127)).toBe('Engine not running')})- it('says nothing rather than something wrong when the port is nonsense', () => {- expect(enginePortLine({ running: true, port: 0 }, 8127)).toBe('Engine not running')- expect(enginePortLine({ running: true, port: '8127' }, 8127)).toBe('Engine not running')+ // Review 2026-09-02: a running engine with an unusable port used to read as+ // "Engine not running", which sends the reader hunting for a dead process+ // while chat keeps answering.+ it('separates a missing port from a missing engine', () => {+ expect(enginePortLine({ running: true, port: 0 }, 8127)).toBe('Port unknown')+ expect(enginePortLine({ running: true, port: '8127' }, 8127)).toBe('Port unknown')+ expect(enginePortLine({ running: true }, 8127)).toBe('Port unknown')+ expect(enginePortLine({ running: false, port: 0 }, 8127)).toBe('Engine not running')})})@@ -83,6 +88,11 @@ describe('Built-in Engine (expert) shows it', () => {expect(await panel({ running: false, healthy: false, port: 8127, model_path: null })).toBe('Engine not running')})++ it('admits it does not know the port rather than declaring the engine dead', async () => {+ expect(await panel({ running: true, healthy: true, port: null, model_path: 'C:\\m\\phi.gguf' }))+ .toBe('Port unknown')+ })})describe('the Providers row for the built-in engine', () => {diff --git a/src/components/settings/__tests__/model-dir-scan-note.test.ts b/src/components/settings/__tests__/model-dir-scan-note.test.tsindex a1e089cf..aa04115a 100644--- a/src/components/settings/__tests__/model-dir-scan-note.test.ts+++ b/src/components/settings/__tests__/model-dir-scan-note.test.ts@@ -108,4 +108,17 @@ describe('Model Storage shows it under the path', () => {await noteFor('unreachable')expect(screen.queryByText(/Check that the drive is connected/)).toBeNull()})++ it('says nothing twice about a path that is no folder either', async () => {+ await noteFor('unusable')+ expect(screen.queryByText(/That is not a full path/)).toBeNull()+ })++ // Review 2026-09-02: truncated is NOT the same case. The folder is readable,+ // the walk only ran out of budget, and what LU hands to ComfyUI is+ // unaffected, so swallowing the handoff line there hid a true sentence.+ it('keeps the ComfyUI handoff line next to the size warning', async () => {+ expect(await noteFor('truncated')).toContain('too big to scan completely')+ expect(screen.getByText(/passes/)).toBeTruthy()+ })})diff --git a/src/lib/engine-port.ts b/src/lib/engine-port.tsindex 87c3137a..c3a54098 100644--- a/src/lib/engine-port.ts+++ b/src/lib/engine-port.ts@@ -90,7 +90,11 @@ export function enginePortLine(status: { running?: boolean; port?: unknown } | null | undefined,preferred: number,): string {- if (!status?.running || !isPort(status.port)) return 'Engine not running'+ if (!status?.running) return 'Engine not running'+ // Review 2026-09-02: a running engine whose port did not survive the trip is+ // not a stopped engine. Saying so would send the reader looking for a dead+ // process while chat keeps answering, so this gets its own answer.+ if (!isPort(status.port)) return 'Port unknown'if (status.port === preferred) return `Port: ${status.port}`return `Port: ${status.port} (${preferred} was taken)`}