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(cloud): survive all-specialized model kinds, true meter parity, real tts presets
purpled5ed33736f7c
diff --git a/src/components/create/experimental/CreditsMeter.tsx b/src/components/create/experimental/CreditsMeter.tsxindex abd1e66d..db2ca6a4 100644--- a/src/components/create/experimental/CreditsMeter.tsx+++ b/src/components/create/experimental/CreditsMeter.tsx@@ -16,21 +16,41 @@ export function CreditsMeter() {const intent = useCreateStore((s) => s.intent())const cloudImageModel = useCreateStore((s) => s.cloudImageModel)const cloudVideoModel = useCreateStore((s) => s.cloudVideoModel)+ const cloudOpModel = useCreateStore((s) => s.cloudOpModel)+ const characterTab = useCreateStore((s) => s.characterTab)const frames = useCreateStore((s) => s.frames)const fps = useCreateStore((s) => s.fps)+ const musicDuration = useCreateStore((s) => s.musicDuration)const targetResolution = useCreateStore((s) => s.targetResolution)if (!quota) return null- const { kind, op } = intentToJob(intent)- // Price the exact run the user is about to make — model, op, (for video)- // clip length and (for upscale) target resolution — not the tier's- // representative per-kind figure; utility ops and pricier models would- // otherwise show a wrong number and mis-gate the button. Same figure- // Composer's creditsOk gates on.- const picked = (kind === 'video' ? cloudVideoModel : cloudImageModel) || defaultCloudModel(kind).id+ let { kind, op } = intentToJob(intent)+ // Mirror Composer's creditsOk pick exactly — meter and gate must show the+ // same number: the character use-surface is a plain LoRA image generate, the+ // specialized 2.5.8 ops run the op picker's model (audio has no classic+ // entries at all), everything else prices the per-kind picker's model.+ const characterUse = intent === 'character' && characterTab === 'use'+ if (characterUse) {+ kind = 'image'+ op = 'generate'+ }+ const special =+ op === 'lipsync' || op === 'extend' || op === 'motion' ||+ op === 'music' || op === 'tts' || op === 'lora-train'+ const picked = characterUse+ ? 'flux-schnell-lora'+ : special+ ? cloudOpModel+ : (kind === 'video' ? cloudVideoModel : cloudImageModel) || defaultCloudModel(kind)?.id || ''const seconds =- kind === 'video' && (op === 'generate' || op === 'animate') && fps > 0 ? frames / fps : undefined- const cost = runCredits(kind, op, picked, seconds, quota.costs[kind], targetResolution)+ op === 'music'+ ? musicDuration+ : kind === 'video' && (op === 'generate' || op === 'animate') && fps > 0+ ? frames / fps+ : undefined+ const cost = runCredits(+ kind, op, picked, seconds, quota.costs[kind === 'audio' ? 'image' : kind], targetResolution,+ )const remaining = quota.remaining.creditsconst limit = quota.limits.creditsconst enough = remaining >= costdiff --git a/src/components/create/experimental/ParamGroups.tsx b/src/components/create/experimental/ParamGroups.tsxindex 4ef8d9d6..7d930b80 100644--- a/src/components/create/experimental/ParamGroups.tsx+++ b/src/components/create/experimental/ParamGroups.tsx@@ -39,7 +39,7 @@ export function ParamGroups() {// control. Sampler/scheduler/LoRA/VAE/clip-skip/batch have no cloud path at// all (useCloudCreate never sends them), so they're local-only knobs.const cloudModelId =- (isVideo ? s.cloudVideoModel : s.cloudImageModel) || defaultCloudModel(isVideo ? 'video' : 'image').id+ (isVideo ? s.cloudVideoModel : s.cloudImageModel) || defaultCloudModel(isVideo ? 'video' : 'image')?.id || ''const showSteps = !(isCloud && isVideo)const showCfg = isCloud ? cloudModelById(cloudModelId)?.cfg === true : truediff --git a/src/components/create/experimental/SpecialIntentControls.tsx b/src/components/create/experimental/SpecialIntentControls.tsxindex 7bf43d48..f10e4dab 100644--- a/src/components/create/experimental/SpecialIntentControls.tsx+++ b/src/components/create/experimental/SpecialIntentControls.tsx@@ -263,7 +263,11 @@ function LipsyncControls() {)}-const TTS_VOICES = ['cherry', 'serena', 'ethan', 'chelsie'] as const+// The hosted tts endpoint requires one of WaveSpeed's own preset voices —+// these exact ids, live-verified 2026-07-18 (invented names get a 400).+const TTS_VOICES = [+ 'Serena', 'Vivian', 'Dylan', 'Eric', 'Ryan', 'Aiden', 'Sohee', 'Ono_Anna', 'Uncle_Fu',+] as constfunction VoiceChip({audioName,@@ -393,7 +397,7 @@ function VoiceChip({className="t-control flex-1 px-2 h-[var(--control-h-sm)] rounded-md bg-white/[0.03] border border-white/[0.06] text-gray-200 focus:outline-none">{TTS_VOICES.map((v) => (- <option key={v} value={v}>{v}</option>+ <option key={v} value={v}>{v.replace(/_/g, ' ')}</option>))}</select>) : (diff --git a/src/components/create/experimental/Stage.tsx b/src/components/create/experimental/Stage.tsxindex 505f10aa..16301cb3 100644--- a/src/components/create/experimental/Stage.tsx+++ b/src/components/create/experimental/Stage.tsx@@ -456,7 +456,7 @@ function TrainSetBoard() {className="flex-1 rounded-xl border-2 border-dashed border-white/10 hover:border-white/25 transition-colors flex flex-col items-center justify-center gap-2 text-gray-500 hover:text-gray-300"><UploadCloud size={28} />- <div className="t-body">Drop 4-30 photos of your character here</div>+ <div className="t-body">Drop 4 to 30 photos of your character here</div><div className="t-label text-gray-600">One person or character, varied angles and lighting works best</div>@@ -489,7 +489,7 @@ function TrainSetBoard() {</div></div><div className="t-label text-gray-500 text-center shrink-0">- {trainImages.length}/30 photos — training runs in the cloud and lands the character on your shelf.+ {trainImages.length}/30 photos. Training runs in the cloud and lands the character on your shelf.</div></>)}diff --git a/src/hooks/useCloudCreate.ts b/src/hooks/useCloudCreate.tsindex ab958640..22e21618 100644--- a/src/hooks/useCloudCreate.ts+++ b/src/hooks/useCloudCreate.ts@@ -38,6 +38,18 @@ const CHARACTER_GEN_DEFAULT: Record<string, string> = {'z-image': 'z-image-turbo-lora',}+// Gallery label for ops that never read the composer prompt. Without this+// they inherit whatever was typed last, and the extend picker then shows a+// motion clip wearing the previous t2v prompt as its name (live find+// 2026-07-18: two different clips, identical "…dancing…" label).+const OP_GALLERY_LABEL: Record<string, string> = {+ lipsync: 'Talking character',+ motion: 'Motion transfer',+ removebg: 'Background removed',+ upscale: 'Upscaled image',+ eraser: 'Object erased',+}+// Per-op progress verb — "Rendering" reads wrong for a training run or a song.function opProgressVerb(op: string): string {switch (op) {@@ -112,7 +124,7 @@ export function useCloudCreate(opts: { onQuotaChange?: () => void } = {}) {} else if (specialOp) {picked = s.cloudOpModel} else {- picked = (kind === 'video' ? s.cloudVideoModel : s.cloudImageModel) || defaultCloudModel(kind).id+ 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.@@ -333,7 +345,7 @@ export function useCloudCreate(opts: { onQuotaChange?: () => void } = {}) {type: kind,filename: '',subfolder: '',- prompt: s.prompt,+ prompt: OP_GALLERY_LABEL[op] ?? s.prompt,negativePrompt: s.negativePrompt,model,modelType: 'unknown',diff --git a/src/stores/__tests__/cloudCatalogStore.test.ts b/src/stores/__tests__/cloudCatalogStore.test.tsindex dc0b91e1..cfc2c135 100644--- a/src/stores/__tests__/cloudCatalogStore.test.ts+++ b/src/stores/__tests__/cloudCatalogStore.test.ts@@ -46,8 +46,8 @@ beforeEach(() => {describe('cloudCatalogStore', () => {it('falls back to the static seed before any fetch', () => {expect(cloudModelsFor('image').length).toBeGreaterThan(0)- expect(defaultCloudModel('image').id).toBe('flux-schnell')- expect(defaultCloudModel('video').id).toBe('wan-2.2-720p')+ expect(defaultCloudModel('image')?.id).toBe('flux-schnell')+ expect(defaultCloudModel('video')?.id).toBe('wan-2.2-720p')expect(isEditCapable('flux-dev')).toBe(true)expect(isEditCapable('flux-schnell')).toBe(false)// never fetched → unknown → treat as live (don't false-block)@@ -56,8 +56,8 @@ describe('cloudCatalogStore', () => {it('setCatalog replaces the seed with the server truth', () => {useCloudCatalogStore.getState().setCatalog(serverCatalog)- expect(defaultCloudModel('image').id).toBe('flux-9')- expect(defaultCloudModel('video').id).toBe('wan-9')+ expect(defaultCloudModel('image')?.id).toBe('flux-9')+ expect(defaultCloudModel('video')?.id).toBe('wan-9')expect(isEditCapable('flux-9')).toBe(true)expect(useCloudCatalogStore.getState().ops?.eraser).toBe(2500)expect(useCloudCatalogStore.getState().fetchedAt).not.toBeNull()@@ -72,6 +72,20 @@ describe('cloudCatalogStore', () => {expect(negPrompt).toEqual(['wan-2.2-720p', 'wan-2.2-fast', 'hunyuan-video'])})+ it('defaultCloudModel never explodes on an all-specialized kind (audio)', () => {+ // Audio has no classic (ops-less) entries — in the seed AND the live v2+ // catalog. Before the guard this was `cloudModelsFor('audio')[0].id` →+ // TypeError, taking down the whole Create page for anyone opening Music+ // without a previously picked image model (live-found on 2026-07-18).+ expect(cloudModelsFor('audio')).toEqual([])+ expect(defaultCloudModel('audio')?.kind).toBe('audio')+ expect(defaultCloudModel('audio')?.ops?.length).toBeGreaterThan(0)+ // a kind with no models at all resolves to undefined instead of throwing+ useCloudCatalogStore.setState({ models: [] })+ expect(defaultCloudModel('audio')).toBeUndefined()+ expect(defaultCloudModel('image')).toBeUndefined()+ })+it('defaultEditModel resolves the first edit-capable image model (seed and server)', () => {expect(defaultEditModel()?.id).toBe('flux-dev')useCloudCatalogStore.getState().setCatalog(serverCatalog)diff --git a/src/stores/cloudCatalogStore.ts b/src/stores/cloudCatalogStore.tsindex fc4e17cf..66e2bc05 100644--- a/src/stores/cloudCatalogStore.ts+++ b/src/stores/cloudCatalogStore.ts@@ -83,8 +83,11 @@ export function loraGenModels(): CloudModel[] {return useCloudCatalogStore.getState().models.filter((m) => m.lora === true)}-export function defaultCloudModel(kind: RenderKind): CloudModel {- return cloudModelsFor(kind)[0]+/** First classic model of the kind; kinds whose models are ALL op-specialized+ * (audio — every entry carries `ops`, in the live catalog and the seed alike)+ * fall back to the kind's first entry so callers never explode on `.id`. */+export function defaultCloudModel(kind: RenderKind): CloudModel | undefined {+ return cloudModelsFor(kind)[0] ?? useCloudCatalogStore.getState().models.find((m) => m.kind === kind)}export function cloudModelById(id: string): CloudModel | undefined {