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(trainer): Train new on Windows and Linux names Z-Image instead of the model picker (GH #210)
purpleb3307b2b62ee
diff --git a/e2e/local-train-base.spec.ts b/e2e/local-train-base.spec.tsnew file mode 100644index 00000000..d644055c--- /dev/null+++ b/e2e/local-train-base.spec.ts@@ -0,0 +1,34 @@+import { test, expect } from '@playwright/test'+import { tauriMockInit, DEFAULT_ASSISTANT_REPLY, DEFAULT_MODEL_NAME } from './support/tauri-mock'+import { seedOnboardingDone } from './support/cloud-mock'++/**+ * GH #210 (31.10.2026, Linux, 3.0.8): on Train new the model chip still listed+ * every image model, and a tester picked Qwen-Image 2.1 as the training model.+ * The local trainer trains on Z-Image Base alone, so on Windows and Linux the+ * chip now says so and offers no list. Use character gets the picker back.+ * LU_SHOTS=<folder> writes the screenshot there.+ */+const SHOTS = process.env.LU_SHOTS++test('Windows, Train new: the chip says local training uses Z-Image, Use character keeps the picker', async ({ page }) => {+ await page.addInitScript(tauriMockInit, { assistantReply: DEFAULT_ASSISTANT_REPLY, modelName: DEFAULT_MODEL_NAME, platform: 'windows' as const })+ await seedOnboardingDone(page)+ await page.addInitScript(() => {+ if (!localStorage.getItem('create-store')) {+ localStorage.setItem('create-store', JSON.stringify({ state: { backend: 'local', imageModel: 'qwen_image_2.1_fp8.safetensors' }, version: 2 }))+ }+ })+ await page.goto('/')+ await page.getByRole('button', { name: /^Create$/ }).click()+ await page.getByRole('radio', { name: 'Character Studio', exact: true }).click()+ await page.getByRole('radio', { name: 'Train new' }).click()++ const chip = page.getByTestId('local-train-base')+ await expect(chip).toHaveText('Local training uses Z-Image')+ await expect(chip).toHaveAttribute('title', /Training for other models is in LU Cloud/)+ if (SHOTS) await page.screenshot({ path: `${SHOTS}/p8-b210-1-train-chip.png` })++ await page.getByRole('radio', { name: 'Use character' }).click()+ await expect(page.getByTestId('local-train-base')).toHaveCount(0)+})diff --git a/src/components/create/experimental/ModelChip.tsx b/src/components/create/experimental/ModelChip.tsxindex d531e69b..d8317fcd 100644--- a/src/components/create/experimental/ModelChip.tsx+++ b/src/components/create/experimental/ModelChip.tsx@@ -226,10 +226,27 @@ function MacTrainBaseChip() {)}+/** The Train tab on Windows and Linux (GH #210, 31.10.2026): the local+ * trainer trains on Z-Image Base alone (api/trainer TRAINER_BASE_FILES), and+ * the training call carries no model. The picker stood here with every image+ * model, and a tester picked Qwen-Image 2.1 as the training model. In the+ * cloud lane this chip is the training model, so the look was a fair guess. */+function LocalTrainBaseChip() {+ return (+ <span+ className="lu-control t-control px-2 shrink-0"+ data-testid="local-train-base"+ title="The local trainer makes Z-Image characters and styles. Use character runs them on a Z-Image model. Training for other models is in LU Cloud."+ >+ Local training uses Z-Image+ </span>+ )+}+function LocalModelChip() {const intent = useCreateStore((s) => s.intent())const characterTab = useCreateStore((s) => s.characterTab)- if (isMlxImageHost() && intent === 'character' && characterTab !== 'use') return <MacTrainBaseChip />+ if (intent === 'character' && characterTab !== 'use') return isMlxImageHost() ? <MacTrainBaseChip /> : <LocalTrainBaseChip />return <LocalModelPicker />}diff --git a/src/components/create/experimental/__tests__/mac-train-and-talking-texts.test.tsx b/src/components/create/experimental/__tests__/mac-train-and-talking-texts.test.tsxindex 16306d4f..d1df1f50 100644--- a/src/components/create/experimental/__tests__/mac-train-and-talking-texts.test.tsx+++ b/src/components/create/experimental/__tests__/mac-train-and-talking-texts.test.tsx@@ -36,15 +36,26 @@ describe('the Train tab on a Mac', () => {expect(screen.queryByText('MLX SD Turbo')).toBeNull()})- it('COUNTER-CHECK: Use character keeps the picker, and Windows keeps it on Train', () => {+ it('COUNTER-CHECK: Use character keeps the picker', () => {arrange('use')render(<ModelChip />)expect(screen.queryByTestId('mac-train-base')).toBeNull()- cleanup()+ expect(screen.queryByTestId('local-train-base')).toBeNull()+ })++ // GH #210: Windows and Linux showed the picker on Train, and a pick there+ // read as the training model. Their trainer is Z-Image Base alone.+ it('Windows and Linux: Train names Z-Image instead of offering a model', () => {host.mac = falsearrange('train')render(<ModelChip />)expect(screen.queryByTestId('mac-train-base')).toBeNull()+ expect(screen.getByTestId('local-train-base').textContent).toBe('Local training uses Z-Image')+ expect(screen.queryByText('MLX SD Turbo')).toBeNull()+ cleanup()+ arrange('use')+ render(<ModelChip />)+ expect(screen.queryByTestId('local-train-base')).toBeNull()})})