Skip to content

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.

fix(create): die lokale Musikbahn zeigt keine Regler mehr, die nichts senden

purple7ed25780e956
diff --git a/src/components/create/experimental/ParamGroups.tsx b/src/components/create/experimental/ParamGroups.tsx
index efdad190..55546160 100644
--- a/src/components/create/experimental/ParamGroups.tsx
+++ b/src/components/create/experimental/ParamGroups.tsx
@@ -45,7 +45,15 @@ export function ParamGroups() {
// silently dropped, so the whole Expert section is dead on the local Mac.
// Keep it on Mac-cloud and on the ComfyUI hosts (Windows/Linux).
const isMlxLocal = !isCloud && isMlxImageHost()
- const showExpert = !isMlxLocal && (!isCloud || isEdit)
+ // R2-28, Entscheid David 12.09.2026: auf der LOKALEN Musikbahn waren fuenf
+ // Expert-Regler sichtbar und alle fuenf tot. `dynamic-workflow.ts` nagelt
+ // sampler_name, scheduler und denoise fuer Audio fest, `LocalOpParams`
+ // traegt weder `loras` noch `selectedVae` noch `clipSkip`, und VAEDecodeAudio
+ // nimmt den VAE des Checkpoints. Es ist dieselbe Begruendung, die eine Zeile
+ // hoeher fuer den MLX-Mac steht; sie war nur nie auf diese Bahn angewandt.
+ // Die Wolken-Musikbahn bleibt unberuehrt.
+ const isLocalAudio = isAudio && !isCloud
+ const showExpert = !isMlxLocal && !isLocalAudio && (!isCloud || isEdit)
// LoRA is a local-only knob; for video it's offered only on families whose
// builder actually applies it (see VIDEO_LORA_FAMILIES). Image always qualifies.
const loraSupported = !isCloud && (!isVideo || VIDEO_LORA_FAMILIES.has(classifyModel(s.videoModel)))
diff --git a/src/components/create/experimental/__tests__/expert-visibility.test.ts b/src/components/create/experimental/__tests__/expert-visibility.test.ts
index b8a3f414..ae38130a 100644
--- a/src/components/create/experimental/__tests__/expert-visibility.test.ts
+++ b/src/components/create/experimental/__tests__/expert-visibility.test.ts
@@ -39,6 +39,34 @@ describe('Expert controls match the desktop backend', () => {
expect(screen.queryByText('Expert')).toBeNull()
})
+ it('hides the five dead knobs on the local music lane', () => {
+ // R2-28: Sampler, Scheduler, LoRA, VAE und Skip CLIP standen auf der
+ // lokalen Musikbahn und keiner davon wurde je gesendet. Der Abschnitt
+ // traegt dort nichts mehr, also faellt er ganz weg.
+ useCreateStore.setState({ backend: 'local', mode: 'video' })
+ useCreateStore.getState().setIntent('music')
+ render(createElement(ParamGroups))
+ expect(screen.queryByText('Expert')).toBeNull()
+ for (const knopf of ['Sampler', 'Scheduler', 'LoRA stack', 'VAE', 'Skip CLIP layers']) {
+ expect(screen.queryByText(knopf), `${knopf} is still on the local music lane`).toBeNull()
+ }
+ })
+
+ it('leaves the lanes whose builder really reads sampler and scheduler alone', () => {
+ // Negativkontrolle: Lipsync und Motion lesen `params.sampler` und
+ // `params.scheduler` wirklich. Ein zu breiter Schnitt haette sie
+ // mitgenommen.
+ for (const intent of ['lipsync', 'motion'] as const) {
+ cleanup()
+ useCreateStore.setState({ backend: 'local', mode: 'video' })
+ useCreateStore.getState().setIntent(intent)
+ render(createElement(ParamGroups))
+ fireEvent.click(screen.getByText('Expert'))
+ expect(screen.getByText('Sampler'), `${intent} lost its sampler`).toBeTruthy()
+ expect(screen.getByText('Scheduler'), `${intent} lost its scheduler`).toBeTruthy()
+ }
+ })
+
it('keeps cloud edit denoise while hiding local mask controls', () => {
useCreateStore.setState({ backend: 'cloud', mode: 'image' })
useCreateStore.getState().setIntent('edit')