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.

feat(create): try local or try cloud on the five hosted categories

purple1435fc2bff2b
diff --git a/src/components/cloud/CloudExampleModal.tsx b/src/components/cloud/CloudExampleModal.tsx
index 34911448..a2d0894f 100644
--- a/src/components/cloud/CloudExampleModal.tsx
+++ b/src/components/cloud/CloudExampleModal.tsx
@@ -8,8 +8,9 @@
import { useEffect, useRef, useState } from 'react'
import { AnimatePresence, motion } from 'framer-motion'
-import { X, Cloud, Sparkles, Volume2, VolumeX } from 'lucide-react'
+import { X, Cloud, Sparkles, Volume2, VolumeX, MonitorDown } from 'lucide-react'
import { useUIStore, type CloudTeaserTarget } from '../../stores/uiStore'
+import { useCreateStore, LOCAL_LANE_OPS, type CloudOp } from '../../stores/createStore'
type ExampleIntent = Extract<CloudTeaserTarget, { surface: 'intent' }>['intent']
@@ -27,6 +28,10 @@ export function CloudExampleModal() {
const target = useUIStore((s) => s.cloudExampleVideo)
const setTarget = useUIStore((s) => s.setCloudExampleVideo)
const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
+ const setIntent = useCreateStore((s) => s.setIntent)
+ // Lanes that also run locally (2.5.8): the clip stays REAL CLOUD FOOTAGE
+ // (David's call — the example always shows cloud), but the CTAs fork.
+ const localLane = target && LOCAL_LANE_OPS.has(target.intent as CloudOp) ? target.intent : null
// The music clip carries the generated track; it still starts muted
// (autoplay policy + not startling anyone) with a tap-to-listen toggle.
const [muted, setMuted] = useState(true)
@@ -102,15 +107,25 @@ export function CloudExampleModal() {
</span>
</div>
<p className="text-[0.68rem] leading-relaxed text-gray-400">
- Real output, straight from LU Cloud. This is what the tool makes.
+ {localLane
+ ? 'Real output, straight from LU Cloud. Run it there, or fully on your own PC.'
+ : 'Real output, straight from LU Cloud. This is what the tool makes.'}
</p>
<div className="flex items-center gap-2 pt-1">
<button
onClick={toPlans}
className="flex-1 flex items-center justify-center gap-1.5 h-8 rounded-lg bg-white text-black text-[0.7rem] font-semibold hover:bg-gray-200 transition-colors"
>
- <Sparkles size={12} /> See plans
+ <Sparkles size={12} /> {localLane ? 'Try cloud' : 'See plans'}
</button>
+ {localLane && (
+ <button
+ onClick={() => { close(); setIntent(localLane) }}
+ className="flex-1 flex items-center justify-center gap-1.5 h-8 rounded-lg border border-white/15 text-gray-200 text-[0.7rem] font-semibold hover:bg-white/[0.06] transition-colors"
+ >
+ <MonitorDown size={12} /> Try local
+ </button>
+ )}
<button
onClick={close}
className="px-3 h-8 rounded-lg text-[0.7rem] text-gray-400 hover:text-gray-200 hover:bg-white/[0.06] transition-colors"
diff --git a/src/components/cloud/CloudTeaserModal.tsx b/src/components/cloud/CloudTeaserModal.tsx
index 0d87bc07..269e7107 100644
--- a/src/components/cloud/CloudTeaserModal.tsx
+++ b/src/components/cloud/CloudTeaserModal.tsx
@@ -6,10 +6,11 @@
// footer link turns the whole discovery layer off (Settings can re-enable).
import { AnimatePresence, motion } from 'framer-motion'
-import { X, Cloud, Sparkles } from 'lucide-react'
+import { X, Cloud, Sparkles, MonitorDown } from 'lucide-react'
import { useUIStore, type CloudTeaserTarget } from '../../stores/uiStore'
import { useSettingsStore } from '../../stores/settingsStore'
import { cloudModelById } from '../../stores/cloudCatalogStore'
+import { useCreateStore, LOCAL_LANE_OPS, type CloudOp } from '../../stores/createStore'
interface TeaserCopy {
title: string
@@ -52,9 +53,16 @@ export function CloudTeaserModal() {
const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)
const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
const setCloudExampleVideo = useUIStore((s) => s.setCloudExampleVideo)
+ const setIntent = useCreateStore((s) => s.setIntent)
const { updateSettings } = useSettingsStore()
const close = () => setCloudTeaser(null)
+ // 2.5.8: the lanes that ALSO run locally get a "Try local" path — the sheet
+ // stops being a pure upsell and becomes the fork between the two lanes.
+ const localLane =
+ target?.surface === 'intent' && LOCAL_LANE_OPS.has(target.intent as CloudOp)
+ ? target.intent
+ : null
const copy: TeaserCopy | null =
target?.surface === 'intent'
? INTENT_COPY[target.intent]
@@ -109,8 +117,9 @@ export function CloudTeaserModal() {
</div>
<p className="text-[0.7rem] leading-relaxed text-gray-400">{copy.line}</p>
<p className="text-[0.62rem] leading-relaxed text-gray-500">
- Runs on LU Cloud. Your PC stays cool while datacenter GPUs do the
- heavy lifting. Part of the Max plan (closed beta).
+ {localLane
+ ? 'Runs on your PC with downloaded models, or on LU Cloud where datacenter GPUs do the heavy lifting. Cloud is part of the Max plan (closed beta).'
+ : 'Runs on LU Cloud. Your PC stays cool while datacenter GPUs do the heavy lifting. Part of the Max plan (closed beta).'}
</p>
<div className="flex items-center gap-2 pt-1">
<button
@@ -125,8 +134,16 @@ export function CloudTeaserModal() {
}}
className="flex-1 flex items-center justify-center gap-1.5 h-8 rounded-lg bg-white text-black text-[0.7rem] font-semibold hover:bg-gray-200 transition-colors"
>
- <Sparkles size={12} /> See plans
+ <Sparkles size={12} /> {localLane ? 'Try cloud' : 'See plans'}
</button>
+ {localLane && (
+ <button
+ onClick={() => { close(); setIntent(localLane) }}
+ className="flex-1 flex items-center justify-center gap-1.5 h-8 rounded-lg border border-white/15 text-gray-200 text-[0.7rem] font-semibold hover:bg-white/[0.06] transition-colors"
+ >
+ <MonitorDown size={12} /> Try local
+ </button>
+ )}
<button
onClick={close}
className="px-3 h-8 rounded-lg text-[0.7rem] text-gray-400 hover:text-gray-200 hover:bg-white/[0.06] transition-colors"
diff --git a/src/components/create/experimental/CreditsMeter.tsx b/src/components/create/experimental/CreditsMeter.tsx
index db2ca6a4..cc11460c 100644
--- a/src/components/create/experimental/CreditsMeter.tsx
+++ b/src/components/create/experimental/CreditsMeter.tsx
@@ -1,7 +1,7 @@
import { useCreateStore } from '../../../stores/createStore'
import { useCreateExp } from './CreateContext'
import { intentToJob } from '../../../lib/render/cloud-jobs'
-import { defaultCloudModel, runCredits } from '../../../stores/cloudCatalogStore'
+import { defaultCloudModel, resolveOpPick, runCredits } from '../../../stores/cloudCatalogStore'
import { Tooltip } from '../ui/Tooltip'
import { openExternal } from '../../../api/backend'
import { CLOUD_BASE } from '../../../api/cloud/config'
@@ -40,7 +40,7 @@ export function CreditsMeter() {
const picked = characterUse
? 'flux-schnell-lora'
: special
- ? cloudOpModel
+ ? resolveOpPick(op, cloudOpModel)
: (kind === 'video' ? cloudVideoModel : cloudImageModel) || defaultCloudModel(kind)?.id || ''
const seconds =
op === 'music'
diff --git a/src/components/create/experimental/IntentBar.tsx b/src/components/create/experimental/IntentBar.tsx
index 74d55d95..255da033 100644
--- a/src/components/create/experimental/IntentBar.tsx
+++ b/src/components/create/experimental/IntentBar.tsx
@@ -20,23 +20,31 @@ export function IntentBar() {
const backend = useCreateStore((s) => s.backend)
const teasersEnabled = useSettingsStore((s) => s.settings.cloudTeasersEnabled)
const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)
- // Hosted-only intents (upscale/eraser + the 2.5.8 categories) are live on
- // the cloud backend. On local they stay VISIBLE as locked teasers (cloud
- // glyph, sheet on tap) while the discovery layer is on — never selectable,
- // never blocking a local flow. Teasers off = the pre-2.5.8 behavior.
- const intents = INTENTS.filter((m) => !m.cloudOnly || backend === 'cloud' || teasersEnabled)
+ // Hosted-ONLY intents (upscale/eraser + character training) are live on the
+ // cloud backend; on local they stay VISIBLE as locked teasers (cloud glyph,
+ // sheet on tap) while the discovery layer is on. The 2.5.8 lanes with
+ // hasLocalLane (music / lipsync / extend / motion) are REAL local tabs —
+ // always selectable, always visible; their cloud glyph becomes a small
+ // "Try cloud" affordance that opens the same teaser sheet.
+ const intents = INTENTS.filter(
+ (m) => !m.cloudOnly || m.hasLocalLane || backend === 'cloud' || teasersEnabled,
+ )
return (
<div
role="radiogroup"
aria-label="Create mode"
className="flex items-center justify-center gap-1 px-4 py-0.5"
- // Sized to sit just 9% larger than the QuickControls ratio bar below
+ // Sized to sit just 9% larger than the LaneControls ratio bar below
// (which runs at scale 0.7): 0.7 × 1.09 ≈ 0.763.
style={{ transform: 'scale(0.763)', transformOrigin: 'center' }}
>
{intents.map((meta) => {
- const locked = meta.cloudOnly === true && backend !== 'cloud'
+ const locked = meta.cloudOnly === true && !meta.hasLocalLane && backend !== 'cloud'
+ // Local mode + a lane that also exists hosted: show the glyph as a
+ // real "Try cloud" button next to the (unlocked) pill.
+ const tryCloud = meta.cloudOnly === true && meta.hasLocalLane === true
+ && backend !== 'cloud' && teasersEnabled
const selected = !locked && intent === meta.id
const Icon = meta.icon
return (
@@ -74,6 +82,31 @@ export function IntentBar() {
aria-hidden
/>
)}
+ {tryCloud && (
+ // Nested interactive element inside a radio is invalid — a
+ // keyboard-reachable span with a click handler keeps the pill
+ // itself the only button. Opens the cloud sheet for this lane.
+ <span
+ role="button"
+ tabIndex={0}
+ aria-label={`Try ${meta.label} on LU Cloud`}
+ title={`Try ${meta.label} on LU Cloud`}
+ onClick={(e) => {
+ e.stopPropagation()
+ setCloudTeaser({ surface: 'intent', intent: meta.id as TeaserIntent })
+ }}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault()
+ e.stopPropagation()
+ setCloudTeaser({ surface: 'intent', intent: meta.id as TeaserIntent })
+ }
+ }}
+ className="absolute top-0 right-0 p-0.5 rounded-full text-violet-500 dark:text-violet-200 hover:scale-125 transition-transform"
+ >
+ <Cloud size={11} strokeWidth={2.4} />
+ </span>
+ )}
<span
className={cn(
'overflow-hidden whitespace-nowrap min-w-0 t-control transition-[max-width,opacity,padding] duration-200',
diff --git a/src/components/create/experimental/ModelChip.tsx b/src/components/create/experimental/ModelChip.tsx
index ddb3d414..4f211d44 100644
--- a/src/components/create/experimental/ModelChip.tsx
+++ b/src/components/create/experimental/ModelChip.tsx
@@ -1,10 +1,10 @@
import { useCreateStore } from '../../../stores/createStore'
-import { useCloudCatalogStore, defaultCloudModel } from '../../../stores/cloudCatalogStore'
+import { useCloudCatalogStore, defaultCloudModel, opPickerModels } from '../../../stores/cloudCatalogStore'
import { useSettingsStore } from '../../../stores/settingsStore'
import { useUIStore } from '../../../stores/uiStore'
import { Select, type SelectOption } from '../ui/Select'
import { TYPE_BADGE } from './badges'
-import { isI2VModel, isT2VCapable } from '../../../api/comfyui'
+import { isI2VModel, isT2VCapable, resolveLocalOpPick } from '../../../api/comfyui'
const CLOUD_BADGE = { label: 'Cloud', color: 'bg-violet-500/15 text-violet-500 dark:text-violet-200' }
@@ -49,11 +49,11 @@ function CloudModelChip() {
intent === 'edit' ? models.filter((m) => m.kind === 'image' && m.edit)
: intent === 'animate' ? models.filter((m) => m.kind === 'video' && m.i2v !== false)
: intent === 'video' ? models.filter((m) => m.kind === 'video' && m.t2v !== false)
- : intent === 'character' ? models.filter((m) => m.ops?.includes('lora-train'))
- : intent === 'lipsync' ? models.filter((m) => m.ops?.includes('lipsync'))
- : intent === 'music' ? models.filter((m) => m.ops?.includes('music'))
- : intent === 'extend' ? models.filter((m) => m.ops?.includes('extend'))
- : intent === 'motion' ? models.filter((m) => m.ops?.includes('motion'))
+ : intent === 'character' ? opPickerModels('lora-train')
+ : intent === 'lipsync' ? opPickerModels('lipsync')
+ : intent === 'music' ? opPickerModels('music')
+ : intent === 'extend' ? opPickerModels('extend')
+ : intent === 'motion' ? opPickerModels('motion')
: models.filter((m) => m.kind === kind && !m.ops)
const current = special
? cloudOpModel
@@ -88,29 +88,44 @@ function LocalModelChip() {
const intent = useCreateStore((s) => s.intent())
const imageModel = useCreateStore((s) => s.imageModel)
const videoModel = useCreateStore((s) => s.videoModel)
+ const localOpModel = useCreateStore((s) => s.localOpModel)
const imageModelList = useCreateStore((s) => s.imageModelList)
const videoModelList = useCreateStore((s) => s.videoModelList)
+ const audioModelList = useCreateStore((s) => s.audioModelList)
+ const lipsyncModelList = useCreateStore((s) => s.lipsyncModelList)
+ const motionModelList = useCreateStore((s) => s.motionModelList)
const setImageModel = useCreateStore((s) => s.setImageModel)
const setVideoModel = useCreateStore((s) => s.setVideoModel)
+ const setLocalOpModel = useCreateStore((s) => s.setLocalOpModel)
const teasersEnabled = useSettingsStore((s) => s.settings.cloudTeasersEnabled)
const setCloudTeaser = useUIStore((s) => s.setCloudTeaser)
const catalogModels = useCloudCatalogStore((s) => s.models)
const isVideo = mode === 'video'
+ // The 2.5.8 lanes with their own local model families. Extend is NOT here:
+ // it rides the regular i2v-capable video list (last-frame continue).
+ const laneList =
+ intent === 'music' ? audioModelList
+ : intent === 'lipsync' ? lipsyncModelList
+ : intent === 'motion' ? motionModelList
+ : null
// Mirror the cloud picker's op-gating (David 2026-07-17: "only offer models
- // that can actually do it"): Animate lists i2v-capable local models, Video
- // lists t2v-capable ones (SVD/FramePack are i2v-only and drop out there).
+ // that can actually do it"): Animate/Extend list i2v-capable local models,
+ // Video lists t2v-capable ones (SVD/FramePack are i2v-only and drop there).
const rawList = isVideo ? videoModelList : imageModelList
- const list = !isVideo
+ const list = laneList ?? (!isVideo
? rawList
- : intent === 'animate'
+ : intent === 'animate' || intent === 'extend'
? rawList.filter((m) => isI2VModel(m.name))
- : rawList.filter((m) => isT2VCapable(m.name))
- const stored = isVideo ? videoModel : imageModel
+ : rawList.filter((m) => isT2VCapable(m.name)))
+ const stored = laneList ? localOpModel : (isVideo ? videoModel : imageModel)
// Reflect the model the run will really use — a leftover pick the current
- // op can't perform must not show as "selected".
- const value = list.some((m) => m.name === stored) ? stored : (list[0]?.name ?? stored)
+ // op can't perform must not show as "selected". Lanes share the submit-side
+ // rule (resolveLocalOpPick) so chip, meter and run always agree.
+ const value = laneList
+ ? resolveLocalOpPick(stored, list)
+ : list.some((m) => m.name === stored) ? stored : (list[0]?.name ?? stored)
const options: SelectOption[] = list.map((m) => ({
value: m.name,
@@ -119,7 +134,7 @@ function LocalModelChip() {
}))
// Discovery rows: a few hosted models of this kind at the list's tail.
// Picking one opens the Cloud sheet; the local selection stays untouched.
- if (teasersEnabled) {
+ if (teasersEnabled && !laneList) {
const kind = isVideo ? 'video' : 'image'
for (const m of catalogModels.filter((c) => c.kind === kind && !c.ops).slice(0, TEASER_ROWS)) {
options.push({ value: `${TEASER_PREFIX}${m.id}`, label: m.label, badge: CLOUD_BADGE })
@@ -143,7 +158,8 @@ function LocalModelChip() {
})
return
}
- if (isVideo) setVideoModel(v)
+ if (laneList) setLocalOpModel(v)
+ else if (isVideo) setVideoModel(v)
else {
const m = list.find((x) => x.name === v)
setImageModel(v, m?.type ?? 'unknown')
diff --git a/src/components/create/experimental/__tests__/intents.test.ts b/src/components/create/experimental/__tests__/intents.test.ts
index 5b9eae75..3c26493c 100644
--- a/src/components/create/experimental/__tests__/intents.test.ts
+++ b/src/components/create/experimental/__tests__/intents.test.ts
@@ -1,15 +1,20 @@
import { describe, it, expect } from 'vitest'
import { INTENTS, INTENT_MAP } from '../intents'
+import { LOCAL_LANE_OPS } from '../../../../stores/createStore'
// David 2026-07-10 made the advanced ops cloud-only; David 2026-07-12 brought
// Edit BACK to local as the 4th local tab (checkpoint mask inpaint —
// VAEEncodeForInpaint / InpaintModelConditioning); David 2026-07-17 brought
// Animate (local I2V) back as the 5th — the lu-labs port had regressed it to
-// cloud-only. Only the true hosted-endpoint ops (upscale, eraser) stay cloud.
+// cloud-only. 2.5.8 gives ALL five specialized categories REAL local lanes
+// (hasLocalLane): music / lipsync / extend / motion on core ComfyUI node
+// families, character training on the bundled musubi trainer. Only upscale
+// and eraser remain hosted-only.
describe('intent cloud gating', () => {
- it('upscale and eraser are cloud-only', () => {
+ 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()
}
})
@@ -19,9 +24,21 @@ describe('intent cloud gating', () => {
}
})
- it('the local IntentBar filter keeps exactly the 5 local tabs', () => {
- const local = INTENTS.filter((m) => !m.cloudOnly).map((m) => m.id)
- expect(local).toEqual(['image', 'edit', 'removebg', 'video', 'animate'])
+ it('the 2.5.8 lanes are dual: hosted clip AND a local lane', () => {
+ 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)
+ }
+ })
+
+ it('intent metadata mirrors the store LOCAL_LANE_OPS set exactly', () => {
+ const fromMeta = INTENTS.filter((m) => m.hasLocalLane).map((m) => m.id).sort()
+ expect(fromMeta).toEqual([...LOCAL_LANE_OPS].sort())
+ })
+
+ 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', 'character', 'lipsync', 'music', 'extend', 'motion'])
})
it('local edit gates on the inpaint capability + image models', () => {
@@ -38,4 +55,16 @@ describe('intent cloud gating', () => {
expect(INTENT_MAP.animate.isVideo).toBe(true)
expect(INTENT_MAP.animate.requiresModels).toBe('video')
})
+
+ it('the lanes gate on their own model kinds + the pose capability', () => {
+ expect(INTENT_MAP.music.requiresModels).toBe('audio')
+ expect(INTENT_MAP.lipsync.requiresModels).toBe('lipsync')
+ // Extend rides the regular i2v-capable video list (last-frame continue).
+ expect(INTENT_MAP.extend.requiresModels).toBe('video')
+ expect(INTENT_MAP.motion.requiresModels).toBe('motion')
+ expect(INTENT_MAP.motion.capability).toBe('dwpose')
+ // Character gates itself inside its panel (trainer env + base files),
+ // not on a ComfyUI model list.
+ expect(INTENT_MAP.character.requiresModels).toBeUndefined()
+ })
})
diff --git a/src/components/create/experimental/intents.ts b/src/components/create/experimental/intents.ts
index 4700e6e3..8bf1544a 100644
--- a/src/components/create/experimental/intents.ts
+++ b/src/components/create/experimental/intents.ts
@@ -16,11 +16,15 @@ export interface IntentMeta {
allowsMask: boolean
isVideo: boolean
/** Capability id (node probe) this intent depends on, if any. */
- capability?: 'rmbg' | 'inpaint-nodes'
- /** Single-purpose hosted endpoints — only offered on the cloud backend. */
+ capability?: 'rmbg' | 'inpaint-nodes' | 'dwpose'
+ /** Categories with a hosted endpoint (cloud clip/teaser exists). */
cloudOnly?: true
+ /** 2.5.8: cloudOnly categories that ALSO run on the local ComfyUI backend
+ * (mirrors createStore's LOCAL_LANE_OPS). The IntentBar unlocks these in
+ * local mode; the cloud glyph becomes a "Try cloud" affordance. */
+ hasLocalLane?: true
/** Local model files this intent needs (gates the Download & install card). */
- requiresModels?: 'image' | 'video'
+ requiresModels?: 'image' | 'video' | 'audio' | 'lipsync' | 'motion'
examples: string[]
}
@@ -87,15 +91,21 @@ export const INTENTS: IntentMeta[] = [
examples: ['slow zoom in, subtle parallax', 'hair and clothes moving in the wind'],
},
- // ── 2.5.8 hosted categories (WaveSpeed, 2026-07-17 David). All cloudOnly;
- // their composer surfaces own the extra inputs (training set, audio, driving
- // video, extend pick), so needsSource/needsPrompt describe only what the
- // shared composer scaffolding should render. ────────────────────────────────
+ // ── 2.5.8 specialized categories (2026-07-17 David). All have hosted
+ // endpoints (cloudOnly = cloud clip/teaser exists) and ALL run locally
+ // since 2.5.8 (hasLocalLane) — core ComfyUI node families (ACE audio,
+ // Wan S2V, I2V last-frame chain, Wan Animate/VACE) plus the bundled
+ // musubi trainer for characters. Their composer surfaces own the extra
+ // inputs (training set, audio, driving video, extend pick), so
+ // needsSource / needsPrompt describe only the shared composer scaffolding. ──
{
+ // Local lane trains a Z-Image LoRA on the user's GPU (Rust-managed
+ // musubi-tuner venv); the panel gates itself on trainer env + base files,
+ // so no requiresModels here.
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: [],
},
{
@@ -105,14 +115,14 @@ export const INTENTS: IntentMeta[] = [
id: 'lipsync', label: 'Talking Character', short: 'Lipsync', icon: Mic,
placeholder: '',
needsSource: false, needsPrompt: false, allowsMask: false, isVideo: true,
- cloudOnly: true,
+ cloudOnly: true, hasLocalLane: true, requiresModels: 'lipsync',
examples: [],
},
{
id: 'music', label: 'Music', short: 'Music', icon: Music,
placeholder: 'Describe the track. Genre, mood, tempo, instruments…',
needsSource: false, needsPrompt: true, allowsMask: false, isVideo: false,
- cloudOnly: true,
+ cloudOnly: true, hasLocalLane: true, requiresModels: 'audio',
examples: [
'dreamy lofi hip hop, vinyl crackle, mellow keys',
'epic orchestral trailer, driving percussion',
@@ -120,18 +130,22 @@ export const INTENTS: IntentMeta[] = [
],
},
{
+ // Local lane: the picked clip's LAST FRAME becomes the I2V start image,
+ // so it gates on the regular video models like animate does.
id: 'extend', label: 'Extend Video', short: 'Extend', icon: FastForward,
placeholder: 'Describe how the clip should continue…',
needsSource: false, needsPrompt: true, allowsMask: false, isVideo: true,
- cloudOnly: true,
+ cloudOnly: true, hasLocalLane: true, requiresModels: 'video',
examples: [],
},
{
// Character image + driving video are composer chips (see lipsync note).
+ // Local lane needs the DWPose extractor (controlnet_aux pack) on top of
+ // the Animate/VACE model files.
id: 'motion', label: 'Motion Control', short: 'Motion', icon: PersonStanding,
placeholder: 'Optional: extra style/scene hints…',
needsSource: false, needsPrompt: false, allowsMask: false, isVideo: true,
- cloudOnly: true,
+ cloudOnly: true, hasLocalLane: true, requiresModels: 'motion', capability: 'dwpose',
examples: [],
},
]
diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsx
index d2ba35b7..76058b8f 100644
--- a/src/components/settings/SettingsPage.tsx
+++ b/src/components/settings/SettingsPage.tsx
@@ -579,6 +579,43 @@ function ComfyUISettings() {
{status?.complete === false ? 'Re-install ComfyUI' : 'Install ComfyUI'}
</button>
)}
+ {status?.found && status?.complete !== false && installPhase === 'idle' && (
+ // 2.5.8: the specialized local lanes (music / talking character /
+ // motion) need node families that ship with current cores — this is
+ // the one-click git pull + dependency refresh the lane errors point
+ // to. Reuses the installer's status channel and log panel.
+ <button
+ onClick={async () => {
+ setInstallPhase('comfyui')
+ setInstallErr(null)
+ setInstallLogs(['Updating ComfyUI…'])
+ try {
+ await backendCall('update_comfyui')
+ const poll = setInterval(async () => {
+ try {
+ const data: any = await backendCall('install_comfyui_status')
+ setInstallLogs(data.logs || [])
+ if (data.status === 'complete') {
+ clearInterval(poll)
+ setInstallPhase('idle')
+ } else if (data.status === 'error') {
+ clearInterval(poll)
+ const lastLog = (data.logs?.length ? data.logs[data.logs.length - 1] : '') as string
+ setInstallErr(lastLog || 'ComfyUI update failed')
+ setInstallPhase('error')
+ }
+ } catch { /* keep polling */ }
+ }, 2000)
+ } catch (err) {
+ setInstallPhase('error')
+ setInstallErr(err instanceof Error ? err.message : 'Failed to start the update')
+ }
+ }}
+ className="px-2 py-1 rounded text-[0.6rem] bg-white/5 text-gray-400 hover:text-gray-200 hover:bg-white/10 transition-colors"
+ >
+ Update ComfyUI
+ </button>
+ )}
{(!status?.found || status?.complete === false) && installPhase === 'idle' && (
<p className="w-full text-[0.55rem] text-gray-600">
Installs to your home folder by default. Set Path above (e.g. D:\ComfyUI) to install on another drive.
@@ -992,7 +1029,7 @@ export function SettingsPage() {
<div className="min-w-0 pr-3">
<span className="text-[0.7rem] text-gray-700 dark:text-gray-400">Show Cloud features in Local mode</span>
<p className="text-[0.6rem] text-gray-500 dark:text-gray-600 leading-snug">
- Locked Create tools and hosted models appear as tappable previews. Never blocks a local flow.
+ Cloud previews on Create tools and model lists, plus Try cloud tags on the tools that run both ways. Never blocks a local flow.
</p>
</div>
<button
diff --git a/src/hooks/useCloudCreate.ts b/src/hooks/useCloudCreate.ts
index 22e21618..c487ae4a 100644
--- a/src/hooks/useCloudCreate.ts
+++ b/src/hooks/useCloudCreate.ts
@@ -25,6 +25,7 @@ import {
import {
defaultCloudModel,
modelForOp,
+ resolveOpPick,
cloudModelById,
cloudMediaLive,
} from '../stores/cloudCatalogStore'
@@ -122,13 +123,14 @@ export function useCloudCreate(opts: { onQuotaChange?: () => void } = {}) {
if (characterUse) {
picked = CHARACTER_GEN_DEFAULT[s.selectedCharacter?.family ?? ''] ?? 'flux-schnell-lora'
} else if (specialOp) {
- picked = s.cloudOpModel
+ // Same resolution rule as the chip's display — a pick left over from
+ // another intent must not survive into this op's submit (take-01: the
+ // lipsync model steered the training job onto the LTX video trainer
+ // while the chip showed Flux).
+ picked = resolveOpPick(op, s.cloudOpModel)
} else {
picked = (kind === 'video' ? s.cloudVideoModel : s.cloudImageModel) || defaultCloudModel(kind)?.id || ''
}
- // lora-train: the picked trainer decides the kind (LTX trains video
- // characters) BEFORE coercion, so the video trainer isn't coerced away.
- if (op === 'lora-train' && cloudModelById(picked)?.kind === 'video') kind = 'video'
// Coerce a leftover/incapable pick onto a model that can run this op
// (edit→i2i, animate→i2v, video→t2v, specialized ops→their family) so the
// submit never 400s.
diff --git a/src/stores/__tests__/cloudCatalogStore.test.ts b/src/stores/__tests__/cloudCatalogStore.test.ts
index cfc2c135..8a7cb476 100644
--- a/src/stores/__tests__/cloudCatalogStore.test.ts
+++ b/src/stores/__tests__/cloudCatalogStore.test.ts
@@ -10,6 +10,8 @@ import {
t2vModels,
i2vModels,
modelForOp,
+ opPickerModels,
+ resolveOpPick,
} from '../cloudCatalogStore'
import { CLOUD_MODEL_SEED } from '../../lib/render/cloud-models'
import type { CloudCatalog } from '../../api/cloud/catalog'
@@ -181,6 +183,23 @@ describe('cloudCatalogStore', () => {
expect(t2vModels().map((m) => m.id)).toEqual(['dual', 't2v-only', 'legacy'])
})
+ it('op picker offers image trainers only and resolves stale picks (take-01 regression)', () => {
+ // No surface can provide a video training set (or use a video LoRA), so
+ // the LTX video trainer stays out of the Character-Studio picker.
+ const trainers = opPickerModels('lora-train')
+ expect(trainers.map((m) => m.id)).toContain('flux-lora-trainer')
+ expect(trainers.map((m) => m.id)).not.toContain('ltx-2-video-lora-trainer')
+ expect(trainers.every((m) => m.kind === 'image')).toBe(true)
+ // cloudOpModel still held the lipsync model when Character Studio opened:
+ // the chip displayed Flux but submit flipped kind to video and trained on
+ // the LTX video trainer ("No videos found in the zip file"). Chip, meter
+ // and submit now resolve through this one rule.
+ expect(resolveOpPick('lora-train', 'p-video-avatar')).toBe('flux-lora-trainer')
+ expect(resolveOpPick('lipsync', 'p-video-avatar')).toBe('p-video-avatar')
+ useCloudCatalogStore.setState({ models: [] })
+ expect(resolveOpPick('lora-train', 'p-video-avatar')).toBe('')
+ })
+
it('modelForOp coerces an incapable pick onto the op’s first valid model', () => {
useCloudCatalogStore.getState().setCatalog(mixed)
// animate with a t2v-only pick → first i2v-capable clip model
diff --git a/src/stores/cloudCatalogStore.ts b/src/stores/cloudCatalogStore.ts
index 66e2bc05..f2655302 100644
--- a/src/stores/cloudCatalogStore.ts
+++ b/src/stores/cloudCatalogStore.ts
@@ -78,6 +78,24 @@ export function modelsForOp(kind: RenderKind, op: RenderOp): CloudModel[] {
)
}
+/** Exactly the rows the specialized-op picker offers. Character training is
+ * image trainers only for now: the LTX video trainer needs a video training
+ * set (and a video use-lane) that no surface can provide yet. */
+export function opPickerModels(op: RenderOp): CloudModel[] {
+ return useCloudCatalogStore
+ .getState()
+ .models.filter((m) => m.ops?.includes(op) && (op !== 'lora-train' || m.kind === 'image'))
+}
+
+/** Chip, meter and submit all resolve the stored op pick through this one
+ * rule — a pick left over from another intent (p-video-avatar surviving from
+ * lipsync into character training) falls to the op's first model instead of
+ * silently steering the submit to a different family than the chip shows. */
+export function resolveOpPick(op: RenderOp, pickedId: string): string {
+ const list = opPickerModels(op)
+ return list.some((m) => m.id === pickedId) ? pickedId : (list[0]?.id ?? '')
+}
+
/** Character-Studio generation endpoints (accept `params.loras`). */
export function loraGenModels(): CloudModel[] {
return useCloudCatalogStore.getState().models.filter((m) => m.lora === true)