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): the local character trainer is reachable from the bar

purplee7c4e00c4d1a
diff --git a/e2e/cloud-create.spec.ts b/e2e/cloud-create.spec.ts
index 0139ddeb..4de888d0 100644
--- a/e2e/cloud-create.spec.ts
+++ b/e2e/cloud-create.spec.ts
@@ -87,12 +87,15 @@ test('local mode: local lanes usable, cloud-only ops shown as locked teasers', a
await expect(page.getByRole('radio', { name: 'Animate Image', exact: true })).toBeVisible()
await expect(page.getByRole('radio', { name: 'Music', exact: true })).toBeVisible()
- // cloudOnly WITHOUT a local lane (upscale / eraser / character training)
- // renders locked: aria-label gains ", runs on LU Cloud" and a click opens
- // the teaser instead of switching the lane.
+ // Character Studio joined the local lanes in 2.6.0 (musubi trainer ships
+ // in trainer.rs), so it renders as a plain selectable tab now.
+ await expect(page.getByRole('radio', { name: 'Character Studio', exact: true })).toBeVisible()
+
+ // cloudOnly WITHOUT a local lane (upscale / eraser) renders locked:
+ // aria-label gains ", runs on LU Cloud" and a click opens the teaser
+ // instead of switching the lane.
await expect(page.getByRole('radio', { name: 'Upscale, runs on LU Cloud' })).toBeVisible()
await expect(page.getByRole('radio', { name: 'Erase Object, runs on LU Cloud' })).toBeVisible()
- await expect(page.getByRole('radio', { name: 'Character Studio, runs on LU Cloud' })).toBeVisible()
await page.getByRole('radio', { name: 'Upscale, runs on LU Cloud' }).click()
await expect(page.getByRole('radio', { name: 'Image', exact: true })).toBeChecked()
diff --git a/src/components/create/experimental/__tests__/intents.test.ts b/src/components/create/experimental/__tests__/intents.test.ts
index 2391082d..c2c4830e 100644
--- a/src/components/create/experimental/__tests__/intents.test.ts
+++ b/src/components/create/experimental/__tests__/intents.test.ts
@@ -8,9 +8,9 @@ import { LOCAL_LANE_OPS } from '../../../../stores/createStore'
// Animate (local I2V) back as the 5th. 2.5.8 gives FOUR specialized categories
// REAL local lanes (hasLocalLane): music / lipsync / extend / motion on core
// ComfyUI node families (motion additionally needs the DWPose pack, which
-// loads fine on Windows via the OpenCV CPU fallback). Upscale, eraser AND
-// character stay hosted-only — character training is cloud-first (David
-// 2026-07-19) until a local trainer runtime ships.
+// loads fine on Windows via the OpenCV CPU fallback). Upscale and eraser
+// stay hosted-only. Character was cloud-first through 2.5.x; 2.6.0 ships the
+// musubi trainer runtime (trainer.rs), so its train lane is local now too.
/** The pills the bar shows, in order. */
const shown = (backend: 'local' | 'cloud', mlxHost: boolean) =>
visibleIntents(backend, mlxHost).map((m) => m.id)
@@ -22,8 +22,8 @@ const teasers = (backend: 'local' | 'cloud', mlxHost: boolean) =>
visibleIntents(backend, mlxHost).filter((m) => isIntentLocked(m, backend, mlxHost)).map((m) => m.id)
describe('intent cloud gating', () => {
- it('upscale, eraser and character stay hosted-only (no local lane)', () => {
- for (const id of ['upscale', 'eraser', 'character'] as const) {
+ it('upscale and eraser stay hosted-only (no local lane)', () => {
+ for (const id of ['upscale', 'eraser'] as const) {
expect(INTENT_MAP[id].cloudOnly, id).toBe(true)
expect(INTENT_MAP[id].hasLocalLane, id).toBeUndefined()
}
@@ -35,8 +35,8 @@ describe('intent cloud gating', () => {
}
})
- it('the 2.5.8 lanes are dual: hosted clip AND a local lane', () => {
- for (const id of ['music', 'lipsync', 'extend', 'motion'] as const) {
+ it('the dual lanes carry a hosted clip AND a local lane (character joined in 2.6.0)', () => {
+ for (const id of ['music', 'lipsync', 'extend', 'motion', 'character'] as const) {
expect(INTENT_MAP[id].cloudOnly, id).toBe(true)
expect(INTENT_MAP[id].hasLocalLane, id).toBe(true)
}
@@ -47,9 +47,9 @@ describe('intent cloud gating', () => {
expect(fromMeta).toEqual([...LOCAL_LANE_OPS].sort())
})
- it('the local IntentBar filter keeps the 5 classic tabs plus the 4 lanes selectable', () => {
+ it('the local IntentBar filter keeps the 5 classic tabs plus the 5 lanes selectable', () => {
const selectable = INTENTS.filter((m) => !m.cloudOnly || m.hasLocalLane).map((m) => m.id)
- expect(selectable).toEqual(['image', 'edit', 'removebg', 'video', 'animate', 'lipsync', 'music', 'extend', 'motion'])
+ expect(selectable).toEqual(['image', 'edit', 'removebg', 'video', 'animate', 'character', 'lipsync', 'music', 'extend', 'motion'])
// …and that IS what the pure filter reports for a ComfyUI local host.
expect(unlocked('local', false)).toEqual(selectable)
})
@@ -77,7 +77,8 @@ describe('intent cloud gating', () => {
// Motion gates on the VACE/Animate model list AND the DWPose pack.
expect(INTENT_MAP.motion.requiresModels).toBe('motion')
expect(INTENT_MAP.motion.capability).toBe('dwpose')
- // Character is hosted-only — no local model gate.
+ // Character has no requiresModels gate: LocalTrainControls runs its own
+ // three gates (trainer env, Z-Image bases, staged photos) instead.
expect(INTENT_MAP.character.requiresModels).toBeUndefined()
})
})
diff --git a/src/components/create/experimental/intents.ts b/src/components/create/experimental/intents.ts
index 70ba1f77..f9314e43 100644
--- a/src/components/create/experimental/intents.ts
+++ b/src/components/create/experimental/intents.ts
@@ -103,13 +103,17 @@ export const INTENTS: IntentMeta[] = [
// video, extend pick), so needsSource / needsPrompt describe only the
// shared composer scaffolding. ──
{
- // Character training is CLOUD-FIRST (David 2026-07-19): the local lane
- // needs a whole trainer runtime (musubi-tuner venv) that 2.5.8 does not
- // ship, so no hasLocalLane until that exists.
+ // 2.6.0 ships the local trainer runtime (trainer.rs installs the pinned
+ // musubi-tuner venv, the Z-Image bases ride the regular download
+ // pipeline), so the local lane is real now. Without hasLocalLane the bar
+ // rendered the finished feature as a locked cloud teaser and a local
+ // user could never reach LocalTrainControls at all (found 2026-08-01 on
+ // the real Windows bundle). No requiresModels here: the lane runs its
+ // own three gates (trainer env, base files, photos).
id: 'character', label: 'Character Studio', short: 'Character', icon: UserRound,
placeholder: 'Describe the scene for your character…',
needsSource: false, needsPrompt: false, allowsMask: false, isVideo: false,
- cloudOnly: true,
+ cloudOnly: true, hasLocalLane: true,
examples: [],
},
{
diff --git a/src/stores/__tests__/createStore.test.ts b/src/stores/__tests__/createStore.test.ts
index 64d2a8b4..541c0973 100644
--- a/src/stores/__tests__/createStore.test.ts
+++ b/src/stores/__tests__/createStore.test.ts
@@ -771,14 +771,14 @@ describe('createStore', () => {
expect(after.source).not.toBeNull()
})
- it('clears character — training is cloud-first (David 2026-07-19), no local lane in 2.5.8', () => {
+ it('keeps character since 2.6.0 ships the local musubi trainer lane', () => {
const s = useCreateStore.getState()
s.setBackend('cloud')
s.setIntent('character')
useCreateStore.getState().setBackend('local')
const after = useCreateStore.getState()
- expect(after.cloudOp).toBeNull()
- expect(after.intent()).not.toBe('character')
+ expect(after.cloudOp).toBe('character')
+ expect(after.intent()).toBe('character')
})
it('keeps motion — its DWPose + VACE local lane shipped in 2.5.8', () => {
diff --git a/src/stores/createStore.ts b/src/stores/createStore.ts
index d110358f..3f418b71 100644
--- a/src/stores/createStore.ts
+++ b/src/stores/createStore.ts
@@ -40,9 +40,10 @@ export type CloudOp = 'character' | 'lipsync' | 'music' | 'extend' | 'motion'
* metadata, the IntentBar lock state and the backend-flip cleanup below —
* lives here (lowest layer) so intents.ts can derive from it without a
* component→store import cycle. */
-// Character stays cloud-first (David 2026-07-19): its local lane needs a
-// trainer runtime (musubi venv) that 2.5.8 does not ship.
-export const LOCAL_LANE_OPS: ReadonlySet<CloudOp> = new Set(['music', 'lipsync', 'extend', 'motion'])
+// Character joined in 2.6.0: trainer.rs ships the musubi venv install, so
+// the train lane is a real local tab now (it was cloud-first while 2.5.8
+// had no trainer runtime).
+export const LOCAL_LANE_OPS: ReadonlySet<CloudOp> = new Set(['music', 'lipsync', 'extend', 'motion', 'character'])
/** An audio/video file (or training image) staged in the composer before
* upload. `blob` carries the bytes for the cloud upload; `url` is a local
@@ -658,10 +659,10 @@ export const useCreateStore = create<CreateState>()(
if (backend !== 'local') return { backend }
const patch: Record<string, unknown> = { backend }
if (s.utilityOp) Object.assign(patch, { utilityOp: null, mask: null, error: null })
- // 2.5.8: music/lipsync/extend/motion run locally, so a backend flip
- // keeps them selected; character stays cloud-only (its trainer
- // runtime does not ship yet), so it drops on a flip to local just
- // like upscale/eraser. LOCAL_LANE_OPS is the single source of truth.
+ // music/lipsync/extend/motion (2.5.8) and character (2.6.0, local
+ // musubi trainer) run locally, so a backend flip keeps them
+ // selected; only the genuinely hosted-only ops (upscale/eraser)
+ // drop. LOCAL_LANE_OPS is the single source of truth.
if (s.cloudOp && !LOCAL_LANE_OPS.has(s.cloudOp)) {
Object.assign(patch, { cloudOp: null, error: null })
}