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): MOSS Image is an image model, and an unknown model runs its assigned workflow (#192)

purple30321bbebc7a
diff --git a/src/api/__tests__/moss-image-and-an-assigned-workflow-192.test.ts b/src/api/__tests__/moss-image-and-an-assigned-workflow-192.test.ts
new file mode 100644
index 00000000..a58cc38d
--- /dev/null
+++ b/src/api/__tests__/moss-image-and-an-assigned-workflow-192.test.ts
@@ -0,0 +1,67 @@
+/**
+ * GH #192 (ToxesFoxes): MOSS Image (OpenMOSS, 16.10.2026) was no family LU
+ * knew. Create said "LU does not recognize which model family ..." and
+ * dropped the workflow the user had imported and assigned to it, because an
+ * unknown model was taken for a checkpoint and the workflow loads a UNET.
+ * Now MOSS Image is an image model by its name, LU's builder says it has no
+ * graph for it yet, and a workflow assigned to a model LU does not know is
+ * used as it is. The chat image tool goes through the same check
+ * (vram-handoff.ts, since 2271a04da).
+ *
+ * Run: npx vitest run src/api/__tests__/moss-image-and-an-assigned-workflow-192.test.ts
+ */
+import { describe, it, expect } from 'vitest'
+import { classifyModel, isImageModelType, isVideoModelType } from '../comfyui'
+import { determineStrategy, MOSS_IMAGE_NO_BUILDER } from '../dynamic-workflow'
+import { ownWorkflowMisfit, ownWorkflowMisfitNote } from '../../lib/own-workflow-fit'
+import { MODEL_TYPE_DEFAULTS } from '../../stores/createStore'
+
+/** The workflow the reporter ran in ComfyUI: UNET, CLIP, VAE, no checkpoint. */
+const MOSS_WORKFLOW = ['UNETLoader', 'CLIPLoader', 'VAELoader', 'EmptyFlux2LatentImage', 'ModelSamplingAuraFlow', 'KSampler', 'VAEDecode', 'SaveImage']
+
+describe('MOSS Image is an image model', () => {
+ it('by the names it is shipped under, also with the folder in front', () => {
+ for (const n of ['MOSS\\SFT\\MOSS-Image_SFT_int8.safetensors', 'mossImage_sft_pruned_int8.safetensors', 'moss_image_sft_bf16.safetensors', 'MOSS-Image-SFT-Q8_0.gguf']) {
+ expect(classifyModel(n), n).toBe('mossimage')
+ expect(isImageModelType(classifyModel(n))).toBe(true)
+ expect(isVideoModelType(classifyModel(n))).toBe(false)
+ }
+ })
+
+ it('NEGATIVE CONTROL: a name that only contains "moss" is not MOSS Image', () => {
+ for (const n of ['mossy_forest_sdxl.safetensors', 'kromoss_dmd2_lora.safetensors', 'flux1-dev.safetensors']) {
+ expect(classifyModel(n), n).not.toBe('mossimage')
+ }
+ })
+
+ it('starts from the OpenMOSS defaults', () => {
+ expect(MODEL_TYPE_DEFAULTS.mossimage).toMatchObject({ steps: 50, cfgScale: 3, sampler: 'euler', scheduler: 'simple' })
+ })
+
+ it('LU\'s own builder says what to do instead of building a wrong graph', () => {
+ const nodes = { loaders: ['UNETLoader', 'CLIPLoader', 'VAELoader', 'CheckpointLoaderSimple'], samplers: ['KSampler'], latentImage: [], textEncoders: [], decoders: [], savers: [], other: [] }
+ expect(determineStrategy('mossimage', false, nodes as never, {} as never)).toEqual({ strategy: 'unavailable', reason: MOSS_IMAGE_NO_BUILDER })
+ expect(MOSS_IMAGE_NO_BUILDER).toMatch(/assign it to this model/)
+ })
+
+ it('and its workflow fits it, wherever the file was found', () => {
+ expect(ownWorkflowMisfit(MOSS_WORKFLOW, 'mossimage', 'diffusion_model')).toBeNull()
+ expect(ownWorkflowMisfit(MOSS_WORKFLOW, 'mossimage')).toBeNull()
+ })
+})
+
+describe('a workflow assigned to a model LU does not know is used', () => {
+ it('the reported case: an unknown model and a UNET workflow, no folder known', () => {
+ expect(ownWorkflowMisfit(MOSS_WORKFLOW, 'unknown')).toBeNull()
+ expect(ownWorkflowMisfitNote('MOSS API', MOSS_WORKFLOW, 'unknown')).toBeNull()
+ })
+
+ it('also a checkpoint workflow on an unknown model in diffusion_models', () => {
+ expect(ownWorkflowMisfit(['CheckpointLoaderSimple', 'KSampler'], 'unknown', 'diffusion_model')).toBeNull()
+ })
+
+ it('NEGATIVE CONTROL: for a family LU knows, a wrong loader is still set aside', () => {
+ expect(ownWorkflowMisfit(['UNETLoader', 'KSampler'], 'sdxl', 'checkpoint')).toMatch(/CheckpointLoaderSimple/)
+ expect(ownWorkflowMisfit(['CheckpointLoaderSimple', 'KSampler'], 'flux')).toMatch(/UNETLoader/)
+ })
+})
diff --git a/src/api/comfyui.ts b/src/api/comfyui.ts
index a9cb965c..3bc645b8 100644
--- a/src/api/comfyui.ts
+++ b/src/api/comfyui.ts
@@ -192,7 +192,7 @@ export function galleryTypeForFile(
// 2.5.8: ace / wans2v / wananimate / wanvace are the specialized local-lane
// architectures (music, talking character, motion control). They are neither
// image nor video picker material — each lane has its own model list.
-export type ModelType = 'flux' | 'flux2' | 'krea2' | 'zimage' | 'ernie_image' | 'qwenimage' | 'qwenimage1' | 'chroma' | 'hidream' | 'sd3' | 'lumina2' | 'sdxl' | 'sd15' | 'wan' | 'wan22' | 'hunyuan' | 'ltx' | 'ltx25' | 'mochi' | 'cosmos' | 'cogvideo' | 'svd' | 'framepack' | 'pyramidflow' | 'allegro' | 'ace' | 'yue2' | 'wans2v' | 'wananimate' | 'wanvace' | 'animatediff' | 'minimaxh3' | 'minimaxh3image' | 'unknown'
+export type ModelType = 'flux' | 'flux2' | 'krea2' | 'zimage' | 'ernie_image' | 'qwenimage' | 'qwenimage1' | 'chroma' | 'hidream' | 'sd3' | 'lumina2' | 'sdxl' | 'sd15' | 'wan' | 'wan22' | 'hunyuan' | 'ltx' | 'ltx25' | 'mochi' | 'cosmos' | 'cogvideo' | 'svd' | 'framepack' | 'pyramidflow' | 'allegro' | 'ace' | 'yue2' | 'wans2v' | 'wananimate' | 'wanvace' | 'animatediff' | 'minimaxh3' | 'minimaxh3image' | 'mossimage' | 'unknown'
export type VideoBackend = 'wan' | 'animatediff' | 'none'
export interface ClassifiedModel {
@@ -316,6 +316,12 @@ export function isMinimaxH3ImageName(name: string): boolean {
return /minimax[_-]?h3[_-]?image/.test(name.toLowerCase())
}
+/** GH #192: a file name of MOSS Image (OpenMOSS, 16.10.2026): the CivitAI
+ * repack mossImage_sft_pruned_int8, MOSS-Image_SFT_int8, moss_image_*. */
+export function isMossImageName(name: string): boolean {
+ return /(^|[^a-z0-9])moss[_-]?image/.test(name.toLowerCase())
+}
+
/** FastVideo's distilled MiniMax H3 (fastvideo_fasth3_8step_v2_*). A full
* checkpoint, not a LoRA, and it only does text to video: the model card says
* the first/last frame and reference tasks were not distilled. */
@@ -389,6 +395,9 @@ export function classifyModel(name: string | null | undefined): ModelType {
// still model on the H3 layout, not a video (C78). The header decides for a
// name that says neither (model_sniff.rs, applyHeaderSniff).
if (isMinimaxH3ImageName(lower)) return 'minimaxh3image'
+ // GH #192: MOSS Image, an image model of its own (Qwen3.5 9B encoder, the
+ // FLUX.2 VAE). Before any family a word in its name could look like.
+ if (isMossImageName(lower)) return 'mossimage'
if (lower.includes('minimax_h3') || lower.includes('minimaxh3') || lower.includes('minimax-h3') || isFastH3(lower)) return 'minimaxh3'
// Video models — most specific first (order matters: specific before generic)
@@ -501,7 +510,7 @@ export function hidreamSampling(model: string): { steps: number; cfg: number; sa
export function isImageModelType(type: ModelType): boolean {
return type === 'flux' || type === 'flux2' || type === 'krea2' || type === 'zimage' || type === 'ernie_image' || type === 'qwenimage'
|| type === 'qwenimage1' || type === 'chroma' || type === 'hidream' || type === 'sd3' || type === 'lumina2'
- || type === 'sdxl' || type === 'sd15' || type === 'minimaxh3image' || type === 'unknown'
+ || type === 'sdxl' || type === 'sd15' || type === 'minimaxh3image' || type === 'mossimage' || type === 'unknown'
}
export function isVideoModelType(type: ModelType): boolean {
@@ -772,6 +781,9 @@ export const MODEL_TYPE_DEFAULTS: Record<string, ModelTypeDefaults> = {
// 12.11.2026): KSampler 6 steps at CFG 1 on euler / simple. The template
// note says it works badly below about 4 MP, so 2048 x 2048.
minimaxh3image: { steps: 6, cfg: 1.0, sampler: 'euler', scheduler: 'simple', width: 2048, height: 2048, frames: 1, fps: 1 },
+ // GH #192: MOSS Image, the OpenMOSS defaults the reporter ran on ComfyUI
+ // 0.42.5: KSampler euler / simple, 50 steps, CFG 3; 512 px to 2K.
+ mossimage: { steps: 50, cfg: 3.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 1024, frames: 1, fps: 1 },
mochi: { steps: 30, cfg: 4.5, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 84, fps: 24 },
cosmos: { steps: 35, cfg: 7.0, sampler: 'euler', scheduler: 'normal', width: 1024, height: 1024, frames: 121, fps: 24 },
cogvideo: { steps: 50, cfg: 6.0, sampler: 'euler_ancestral', scheduler: 'normal', width: 480, height: 480, frames: 49, fps: 8 },
diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.ts
index bec5750b..87471629 100644
--- a/src/api/dynamic-workflow.ts
+++ b/src/api/dynamic-workflow.ts
@@ -128,6 +128,10 @@ export const LTX25_NEEDS_UPDATE = 'LTX 2.5 needs ComfyUI 0.32.0 or newer. Update
export const MINIMAX_H3_IMAGE_NO_BUILDER =
'LU has no built-in workflow for MiniMax H3 Image. Save the ComfyUI template "MiniMax-H3-Image: Text to Image", '
+ 'import it under Workflows and assign it to this model. Create then runs it with your prompt, size and LoRAs.'
+/** GH #192: what Create says for MOSS Image until LU has a graph of its own. */
+export const MOSS_IMAGE_NO_BUILDER =
+ 'MOSS Image has no workflow built into LU yet. Import a ComfyUI workflow that runs MOSS Image under Workflows and assign it to this model. '
+ + 'Create then runs it with your prompt, size and LoRAs.'
/** A step distillation LoRA names its step count (minimax_h3_fl2v_turbo_8step_...). */
const H3_STEP_LORA = /turbo\D*?(\d+)\s*_?steps?/i
export const FASTH3_NEEDS_UPDATE = 'FastH3 needs ComfyUI 0.35.0 or newer. Update ComfyUI in Settings.'
@@ -145,6 +149,9 @@ export function determineStrategy(
if (modelType === 'minimaxh3image') {
return { strategy: 'unavailable', reason: MINIMAX_H3_IMAGE_NO_BUILDER }
}
+ if (modelType === 'mossimage') {
+ return { strategy: 'unavailable', reason: MOSS_IMAGE_NO_BUILDER }
+ }
const hasUNET = nodes.loaders.includes('UNETLoader')
const hasCheckpoint = nodes.loaders.includes('CheckpointLoaderSimple')
diff --git a/src/components/create/experimental/badges.ts b/src/components/create/experimental/badges.ts
index bcfad8c3..b47a73da 100644
--- a/src/components/create/experimental/badges.ts
+++ b/src/components/create/experimental/badges.ts
@@ -25,6 +25,7 @@ export const TYPE_LABEL: Record<ModelType, string> = {
ltx25: 'LTX 2.5',
minimaxh3: 'MiniMax H3',
minimaxh3image: 'MiniMax H3 Image',
+ mossimage: 'MOSS Image',
mochi: 'Mochi',
cosmos: 'Cosmos',
cogvideo: 'CogVideo',
diff --git a/src/lib/own-workflow-fit.ts b/src/lib/own-workflow-fit.ts
index 39b805b9..93a61407 100644
--- a/src/lib/own-workflow-fit.ts
+++ b/src/lib/own-workflow-fit.ts
@@ -12,7 +12,7 @@
import type { ComfyModelSource } from '../types/models'
-const UNET_FAMILIES = new Set(['flux', 'flux2', 'zimage', 'wan', 'wan22', 'hunyuan', 'ltx25', 'minimaxh3image'])
+const UNET_FAMILIES = new Set(['flux', 'flux2', 'zimage', 'wan', 'wan22', 'hunyuan', 'ltx25', 'minimaxh3image', 'mossimage'])
export function modelNeedsUnetLoader(type: string, source?: ComfyModelSource): boolean {
if (source === 'diffusion_model') return true
@@ -22,6 +22,9 @@ export function modelNeedsUnetLoader(type: string, source?: ComfyModelSource): b
/** Null when the workflow fits, else why it is set aside. */
export function ownWorkflowMisfit(classTypes: readonly string[], type: string, source?: ComfyModelSource): string | null {
+ // GH #192: for a model LU does not know, the user's assignment is the only
+ // knowledge there is; LU's own builder has nothing to run it with anyway.
+ if (type === 'unknown') return null
const needsUnet = modelNeedsUnetLoader(type, source)
const hasUnet = classTypes.includes('UNETLoader')
const hasCheckpoint = classTypes.includes('CheckpointLoaderSimple')
diff --git a/src/stores/createStore.ts b/src/stores/createStore.ts
index 46309dac..192d385d 100644
--- a/src/stores/createStore.ts
+++ b/src/stores/createStore.ts
@@ -228,6 +228,7 @@ export const MODEL_TYPE_DEFAULTS: Record<ModelType, {
ltx25: { steps: 8, cfgScale: 1.0, sampler: 'euler_ancestral', scheduler: 'simple', width: 1280, height: 704, frames: 121, fps: 24 },
minimaxh3: { steps: 20, cfgScale: 1.0, sampler: 'res_multistep', scheduler: 'simple', width: 1344, height: 768, frames: 124, fps: 24 },
minimaxh3image: { steps: 6, cfgScale: 1.0, sampler: 'euler', scheduler: 'simple', width: 2048, height: 2048, frames: 1, fps: 1 },
+ mossimage: { steps: 50, cfgScale: 3.0, sampler: 'euler', scheduler: 'simple', width: 1024, height: 1024, frames: 1, fps: 1 },
mochi: { steps: 40, cfgScale: 4.5, sampler: 'euler', scheduler: 'normal', width: 848, height: 480, frames: 49, fps: 24 },
cosmos: { steps: 30, cfgScale: 7.0, sampler: 'euler', scheduler: 'normal', width: 1280, height: 704, frames: 57, fps: 24 },
cogvideo: { steps: 50, cfgScale: 6.0, sampler: 'euler', scheduler: 'normal', width: 720, height: 480, frames: 49, fps: 8 },