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(models): let the media tools see every installed model, and stop labelling working bundles COMING SOON
purple5847d1b6ad7b
diff --git a/src/api/__tests__/model-discovery-coverage.test.ts b/src/api/__tests__/model-discovery-coverage.test.tsnew file mode 100644index 00000000..57362763--- /dev/null+++ b/src/api/__tests__/model-discovery-coverage.test.ts@@ -0,0 +1,135 @@+/**+ * The image and video tools have to see every model the user actually has.+ *+ * They did not. getImageModels/getVideoModels read two enums, CheckpointLoader+ * and UNETLoader, and UNETLoader lists only .safetensors and .sft. GGUF quants+ * are enumerated by ComfyUI-GGUF's own UnetLoaderGGUF, so a user could install+ * a GGUF bundle straight out of OUR Model Manager, watch it finish, and then be+ * told "No image model installed" by the image tool. Our own catalogue ships+ * Wan video models as GGUF, so this was self-inflicted.+ *+ * These tests pin the merge. They also pin the two rules that keep the merge+ * from over-reaching: an unrecognised UNET is still offered (people install+ * finetunes we have never heard of), and the lane-specific architectures stay+ * out of the general pickers.+ */+import { describe, it, expect, vi, beforeEach } from 'vitest'++const localFetch = vi.fn()+vi.mock('../backend', async (importOriginal) => ({+ ...(await importOriginal<typeof import('../backend')>()),+ localFetch: (...a: unknown[]) => localFetch(...a),+ // The suite runs in the node environment, so isTauri()'s `window` lookup+ // would throw before we ever reach the enum routing. Browser mode is the+ // right answer here anyway: comfyuiUrl then returns the proxy path we match.+ isTauri: () => false,+ comfyuiUrl: (path: string) => `http://127.0.0.1:8188${path}`,+}))++import { getImageModels, getVideoModels } from '../comfyui'++const okJson = (body: unknown) => ({ ok: true, status: 200, json: async () => body })++/** Route each /object_info/<Node> request to the right synthetic enum. */+function routeObjectInfo(opts: {+ checkpoints?: string[]+ unets?: string[]+ gguf?: string[]+ ggufInstalled?: boolean+}) {+ const { checkpoints = [], unets = [], gguf = [], ggufInstalled = true } = opts+ localFetch.mockImplementation(async (url: string) => {+ if (url.includes('CheckpointLoaderSimple')) {+ return okJson({ CheckpointLoaderSimple: { input: { required: { ckpt_name: [checkpoints] } } } })+ }+ if (url.includes('UnetLoaderGGUF')) {+ if (!ggufInstalled) return { ok: false, status: 404, json: async () => ({}) }+ return okJson({ UnetLoaderGGUF: { input: { required: { unet_name: [gguf] } } } })+ }+ if (url.includes('UNETLoader')) {+ return okJson({ UNETLoader: { input: { required: { unet_name: [unets] } } } })+ }+ // filterPartialFiles and anything else: answer empty so nothing is dropped.+ return okJson({})+ })+}++beforeEach(() => {+ localFetch.mockReset()+})++describe('getImageModels sees everything installed', () => {+ it('THE FIX: a GGUF image model is found', async () => {+ routeObjectInfo({ gguf: ['flux1-dev-Q4_K_M.gguf'] })+ const names = (await getImageModels()).map((m) => m.name)+ expect(names).toContain('flux1-dev-Q4_K_M.gguf')+ })++ it('finds checkpoints, safetensors UNETs and GGUF quants together', async () => {+ routeObjectInfo({+ checkpoints: ['juggernautXL_v9.safetensors'],+ unets: ['flux1-schnell-fp8.safetensors'],+ gguf: ['zimage-turbo-Q5_K_M.gguf'],+ })+ const names = (await getImageModels()).map((m) => m.name)+ expect(names).toEqual(+ expect.arrayContaining([+ 'juggernautXL_v9.safetensors',+ 'flux1-schnell-fp8.safetensors',+ 'zimage-turbo-Q5_K_M.gguf',+ ]),+ )+ })++ it('offers a UNET it cannot classify, because the user installed it on purpose', async () => {+ routeObjectInfo({ unets: ['some_brand_new_arch_v2.safetensors'] })+ const names = (await getImageModels()).map((m) => m.name)+ expect(names).toContain('some_brand_new_arch_v2.safetensors')+ })++ it('keeps video models out of the image list', async () => {+ routeObjectInfo({ checkpoints: ['svd_xt_1_1.safetensors'], unets: ['wan2.1_t2v_1.3B.safetensors'] })+ const names = (await getImageModels()).map((m) => m.name)+ expect(names).not.toContain('svd_xt_1_1.safetensors')+ expect(names).not.toContain('wan2.1_t2v_1.3B.safetensors')+ })++ it('degrades quietly when ComfyUI-GGUF is not installed', async () => {+ routeObjectInfo({ unets: ['flux1-dev.safetensors'], ggufInstalled: false })+ const names = (await getImageModels()).map((m) => m.name)+ expect(names).toEqual(['flux1-dev.safetensors'])+ })++ it('does not list the same model twice when both loaders report it', async () => {+ routeObjectInfo({ unets: ['shared-model.gguf'], gguf: ['shared-model.gguf'] })+ const names = (await getImageModels()).map((m) => m.name)+ expect(names.filter((n) => n === 'shared-model.gguf')).toHaveLength(1)+ })+})++describe('getVideoModels sees everything installed', () => {+ it('THE FIX: a GGUF video model is found', async () => {+ // This is a real bundle in our own catalogue, which is what made the gap+ // embarrassing rather than theoretical.+ routeObjectInfo({ gguf: ['Wan2.1-T2V-14B-NSFW-Q4_K_M.gguf'] })+ const names = (await getVideoModels()).map((m) => m.name)+ expect(names).toContain('Wan2.1-T2V-14B-NSFW-Q4_K_M.gguf')+ })++ it('finds a video checkpoint and a GGUF UNET together', async () => {+ routeObjectInfo({+ checkpoints: ['svd_xt_1_1.safetensors'],+ gguf: ['wan2.2_i2v_rapid_aio-Q4_K_M.gguf'],+ })+ const names = (await getVideoModels()).map((m) => m.name)+ expect(names).toEqual(+ expect.arrayContaining(['svd_xt_1_1.safetensors', 'wan2.2_i2v_rapid_aio-Q4_K_M.gguf']),+ )+ })++ it('keeps image models out of the video list', async () => {+ routeObjectInfo({ checkpoints: ['juggernautXL_v9.safetensors'], gguf: ['flux1-dev-Q4_K_M.gguf'] })+ const names = (await getVideoModels()).map((m) => m.name)+ expect(names).toEqual([])+ })+})diff --git a/src/api/comfyui.ts b/src/api/comfyui.tsindex 9f530f21..b06d9470 100644--- a/src/api/comfyui.ts+++ b/src/api/comfyui.ts@@ -638,8 +638,18 @@ export async function filterPartialFiles(filenames: string[]): Promise<Set<strin// ─── Classified Model Lists ───export async function getImageModels(): Promise<ClassifiedModel[]> {- const [checkpoints, diffModels] = await Promise.all([getCheckpoints(), getDiffusionModels()])- const complete = await filterPartialFiles([...checkpoints, ...diffModels])+ // GGUF quants are listed by ComfyUI-GGUF's own loader, NOT by UNETLoader+ // (which only enumerates .safetensors/.sft). Leaving them out meant a user+ // could install a GGUF bundle straight from our own Model Manager and then be+ // told "No image model installed" by the image tool. Empty when the pack is+ // absent, so this is free for everyone else.+ const [checkpoints, diffModels, ggufModels] = await Promise.all([+ getCheckpoints(),+ getDiffusionModels(),+ getGgufUnetModels(),+ ])+ const unets = [...new Set([...diffModels, ...ggufModels])]+ const complete = await filterPartialFiles([...checkpoints, ...unets])const result: ClassifiedModel[] = []for (const name of checkpoints) {@@ -650,9 +660,13 @@ export async function getImageModels(): Promise<ClassifiedModel[]> {result.push({ name, type: isImageModelType(type) ? type : 'sdxl', source: 'checkpoint' })}- for (const name of diffModels) {+ for (const name of unets) {if (!complete.has(name)) continueconst type = classifyModel(name)+ // isImageModelType already lets 'unknown' through, so a UNET the classifier+ // cannot name is still offered. The lane-specific architectures (ACE audio,+ // Wan S2V/Animate/VACE) are excluded by that same predicate and stay in+ // their own pickers.if (isImageModelType(type)) {result.push({ name, type, source: 'diffusion_model' })}@@ -662,8 +676,16 @@ export async function getImageModels(): Promise<ClassifiedModel[]> {}export async function getVideoModels(): Promise<ClassifiedModel[]> {- const [checkpoints, diffModels] = await Promise.all([getCheckpoints(), getDiffusionModels()])- const complete = await filterPartialFiles([...checkpoints, ...diffModels])+ // Same GGUF gap as getImageModels: our own catalogue ships Wan video models+ // as GGUF quants, and UNETLoader does not list those, so downloading one from+ // the Model Manager left the video tool insisting nothing was installed.+ const [checkpoints, diffModels, ggufModels] = await Promise.all([+ getCheckpoints(),+ getDiffusionModels(),+ getGgufUnetModels(),+ ])+ const unets = [...new Set([...diffModels, ...ggufModels])]+ const complete = await filterPartialFiles([...checkpoints, ...unets])const result: ClassifiedModel[] = []// Video checkpoints (e.g. SVD)@@ -675,7 +697,7 @@ export async function getVideoModels(): Promise<ClassifiedModel[]> {}}- for (const name of diffModels) {+ for (const name of unets) {if (!complete.has(name)) continueconst type = classifyModel(name)if (isVideoModelType(type)) {diff --git a/src/components/models/ModelTiles.tsx b/src/components/models/ModelTiles.tsxindex 9401fed7..c6f47c61 100644--- a/src/components/models/ModelTiles.tsx+++ b/src/components/models/ModelTiles.tsx@@ -307,25 +307,26 @@ export interface BundleTileProps {}export function BundleTile({ bundle, vramGb, complete, downloading, hasErrors, onInstall, onRetry, onClear, onOpenUrl, parseVRAM }: BundleTileProps) {- const comingSoon = !bundle.verified && !complete+ // No COMING SOON overlay any more (2026-07-24). It was driven by+ // `!bundle.verified && !complete`, a hand-set boolean, and it dimmed the tile+ // behind a full-cover "COMING SOON" pill while that tile's own working+ // "Get · 3.6 GB" button sat underneath. Everything in this catalogue is+ // downloadable and installable right now, so the badge only ever talked+ // people out of models that work.+ //+ // What replaced the flag is stronger than the flag was: app-wide-smoke+ // asserts every catalogued bundle resolves to a real strategy, and+ // wrapper-node-names pins every node name the builder emits against real+ // wrapper registries. A lane that cannot run gets pulled (see the CogVideoX+ // and Pyramid Flow removals) rather than shipped behind a badge.const need = parseVRAM(bundle.vramRequired)const fit: Fit = !vramGb ? 'unknown' : need <= vramGb ? 'fits' : need <= vramGb + 2 ? 'tight' : 'big'return (<div- className={`relative rounded-xl border border-gray-200 dark:border-white/[0.06] bg-gray-50 dark:bg-white/[0.03] p-3 overflow-hidden transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.05] ${comingSoon ? 'opacity-60' : ''}`}+ className="relative rounded-xl border border-gray-200 dark:border-white/[0.06] bg-gray-50 dark:bg-white/[0.03] p-3 overflow-hidden transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.05]"data-bundle-tile={bundle.name}>- {comingSoon && (- <div className="absolute inset-0 z-10 flex items-center justify-center bg-black/40 backdrop-blur-[1px] rounded-xl">- {/* Arbitrary values on purpose: the `.light .text-white` / `.bg-white/N`- rescue remaps (index.css) would flip this to dark-on-dark — but this- pill always sits on a black/40 backdrop, in both themes. */}- <span className="px-3 py-1.5 rounded-full bg-[rgba(255,255,255,0.12)] border border-[rgba(255,255,255,0.25)] text-[#f3f4f6] text-xs font-semibold tracking-wider">- COMING SOON- </span>- </div>- )}<div className="flex items-start gap-2.5"><div className="flex-1 min-w-0"><div className="flex items-center gap-1.5 min-w-0">