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(edit): Edit strength is guidance between the edit and no edit (D8)

purple6490129be2a7
diff --git a/e2e/qwen-edit-strength.spec.ts b/e2e/qwen-edit-strength.spec.ts
index 25e225b9..13100a32 100644
--- a/e2e/qwen-edit-strength.spec.ts
+++ b/e2e/qwen-edit-strength.spec.ts
@@ -7,8 +7,8 @@ import { appModules, type AppWindow } from './support/ui'
/**
* B46 / D8 (Discord #bug-reports 30.10.2026, help chat 06.11.2026): the Edit
- * strength of a Qwen-Image 2.1 edit through ComfyUI. The edit runs as at
- * 1.00, and below 1 its result is mixed with the source in that share.
+ * strength of a Qwen-Image 2.1 edit through ComfyUI. Below 1 it is the CFG
+ * between the edit and the same image without an instruction.
* Windows or Linux, local: a Mac runs this model on MLX, where the slider was
* never gone.
*
@@ -41,7 +41,7 @@ async function boot(page: Page) {
VAELoader: { input: { required: { vae_name: combo(['qwen_image_2.1_vae_bf16.safetensors']) } } },
KSampler: { input: { required: { sampler_name: combo(['euler']), scheduler: combo(['simple']) } } },
TextEncodeQwenImage21: { input: { required: { clip: ['CLIP'], prompt: ['STRING'], negative_prompt: ['STRING'], resolution: ['INT'] }, optional: { vae: ['VAE'], 'images.image_1': ['IMAGE'] } } },
- ImageScaleToTotalPixels: { input: { required: {} } }, ImageBlend: { input: { required: {} } },
+ ImageScaleToTotalPixels: { input: { required: {} } },
EmptyLatentImage: { input: { required: {} } }, VAEEncode: { input: { required: {} } }, VAEDecode: { input: { required: {} } },
SaveImage: { input: { required: {} } }, LoadImage: { input: { required: { image: combo(['source.png']) } } },
VAEEncodeForInpaint: { input: { required: {} } }, InpaintModelConditioning: { input: { required: {} } }, LoadImageMask: { input: { required: {} } },
@@ -96,14 +96,14 @@ async function openEdit(page: Page) {
/** The Edit strength row under the prompt: label, value, range input. */
const strengthRow = (page: Page) => page.locator('div.space-y-1\\.5').filter({ has: page.getByText('Edit strength', { exact: true }) }).first()
-test('B46 / D8: Qwen-Image 2.1 Edit through ComfyUI at 0.40 is the full edit, 40 % of it over the source', async ({ page }) => {
+test('B46 / D8: Qwen-Image 2.1 Edit through ComfyUI at 0.40 runs at CFG 0.4 between the edit and the source as it is', async ({ page }) => {
await openEdit(page)
// At 1.00 by default: the run of today.
const row = strengthRow(page)
await expect(row).toBeVisible({ timeout: 15_000 })
await expect(row).toContainText('1.00')
- await expect(row).toContainText('1.00 is the full edit. Lower keeps more of the original.')
+ await expect(row).toContainText('1.00 is the full edit. Lower makes a lighter edit and takes longer.')
await shot(page, 'D6-B46-1')
// The real range input, moved down to 0.40 with the keyboard.
@@ -118,16 +118,18 @@ test('B46 / D8: Qwen-Image 2.1 Edit through ComfyUI at 0.40 is the full edit, 40
await expect.poll(async () => (await posted(page)).length, { timeout: 20_000 }).toBe(1)
const low = (await posted(page))[0]
const sampler = Object.values(low).find((n) => n.class_type === 'KSampler')!
- // The edit itself as at 1.00 (3.0.9 started here from the source at 0.4,
- // and the source came back).
+ // One path from noise as at 1.00 (3.0.9 started here from the source at
+ // 0.4, and the source came back), guided 0.4 of the way from the source
+ // as it is (the encoder's negative: the image, no text) to the edit.
expect(sampler.inputs.denoise).toBe(1)
- expect(low[(sampler.inputs.latent_image as [string, number])[0]].class_type).toBe('TextEncodeQwenImage21')
- const save = Object.values(low).find((n) => n.class_type === 'SaveImage')!
- const blend = low[(save.inputs.images as [string, number])[0]]
- expect(blend.class_type).toBe('ImageBlend')
- expect(low[(blend.inputs.image1 as [string, number])[0]].class_type).toBe('VAEDecode')
- expect(low[(blend.inputs.image2 as [string, number])[0]].inputs.image).toBe('source.png')
- expect(blend.inputs.blend_factor).toBe(0.6)
+ expect(sampler.inputs.cfg).toBe(0.4)
+ const [encLink] = sampler.inputs.latent_image as [string, number]
+ const enc = low[encLink]
+ expect(enc.class_type).toBe('TextEncodeQwenImage21')
+ expect(sampler.inputs.positive).toEqual([encLink, 0])
+ expect(sampler.inputs.negative).toEqual([encLink, 1])
+ expect(enc.inputs.negative_prompt).toBe('')
+ expect(low[(enc.inputs['images.image_1'] as [string, number])[0]].inputs.image).toBe('source.png')
if (SHOTS) {
writeFileSync(`${SHOTS}/D6-workflow-staerke-0.40.json`, JSON.stringify(low, null, 2))
@@ -155,6 +157,6 @@ test('COUNTER-CHECK B46: at 1.00 (the default) the run is the template edit of t
const sampler = Object.values(full).find((n) => n.class_type === 'KSampler')!
expect(sampler.inputs.denoise).toBe(1)
expect(full[(sampler.inputs.latent_image as [string, number])[0]].class_type).toBe('TextEncodeQwenImage21')
- expect(Object.values(full).some((n) => n.class_type === 'ImageBlend')).toBe(false)
+ expect(sampler.inputs.cfg).toBe(1)
if (SHOTS) writeFileSync(`${SHOTS}/D6-workflow-staerke-1.00.json`, JSON.stringify(full, null, 2))
})
diff --git a/src/api/__tests__/hires-fix.test.ts b/src/api/__tests__/hires-fix.test.ts
index b023997e..b2b8b884 100644
--- a/src/api/__tests__/hires-fix.test.ts
+++ b/src/api/__tests__/hires-fix.test.ts
@@ -118,11 +118,19 @@ describe('applyNativeHiresFix', () => {
expect(result).toEqual(expect.objectContaining({ width: 1280, height: 1280 }))
})
- it('B46 / D8: an Edit strength below 1 (ImageBlend before SaveImage) gets the pass on the edit, the mix stays', () => {
+ it('B46 / D8: a Qwen edit below Edit strength 1 on DualCFGGuider gets its pass on the same guider', () => {
const workflow: ComfyApiGraph = baseWorkflow()
- workflow['9'] = { class_type: 'LoadImage', inputs: { image: 'source.png' } }
- workflow['10'] = { class_type: 'ImageBlend', inputs: { image1: ['5', 0], image2: ['9', 0], blend_factor: 0.6, blend_mode: 'normal' } }
- workflow['6'] = { class_type: 'SaveImage', inputs: { images: ['10', 0], filename_prefix: 'LU' } }
+ workflow['10'] = { class_type: 'RandomNoise', inputs: { noise_seed: 123 } }
+ workflow['11'] = {
+ class_type: 'DualCFGGuider',
+ inputs: { model: ['1', 0], cond1: ['2', 0], cond2: ['3', 0], negative: ['3', 0], cfg_conds: 0.4, cfg_cond2_negative: 4, style: 'nested' },
+ }
+ workflow['12'] = { class_type: 'KSamplerSelect', inputs: { sampler_name: 'euler' } }
+ workflow['13'] = { class_type: 'BasicScheduler', inputs: { model: ['1', 0], scheduler: 'beta', steps: 20, denoise: 1 } }
+ workflow['4'] = {
+ class_type: 'SamplerCustomAdvanced',
+ inputs: { noise: ['10', 0], guider: ['11', 0], sampler: ['12', 0], sigmas: ['13', 0], latent_image: ['8', 0] },
+ }
const result = applyNativeHiresFix(workflow, {
baseWidth: 1024,
@@ -133,9 +141,18 @@ describe('applyNativeHiresFix', () => {
upscaleMethod: 'bislerp',
})
+ const pass = result.workflow[result.samplerNodeId]
+ expect(pass.class_type).toBe('SamplerCustomAdvanced')
+ expect(nodeInput(pass, 'guider')).toEqual(['11', 0])
+ expect(nodeInput(pass, 'noise')).toEqual(['10', 0])
+ expect(nodeInput(pass, 'sampler')).toEqual(['12', 0])
+ expect(nodeInput(pass, 'latent_image')).toEqual([result.upscaleNodeId, 0])
+ const sigmas = nodeInput(pass, 'sigmas') as [string, number]
+ expect(result.workflow[sigmas[0]]).toEqual(expect.objectContaining({
+ class_type: 'BasicScheduler',
+ inputs: { model: ['1', 0], scheduler: 'beta', steps: 12, denoise: 0.35 },
+ }))
expect(nodeInput(result.workflow['5'], 'samples')).toEqual([result.samplerNodeId, 0])
- expect(nodeInput(result.workflow['10'], 'image1')).toEqual(['5', 0])
- expect(nodeInput(result.workflow['6'], 'images')).toEqual(['10', 0])
})
it('rejects workflows whose final decode is not fed by a core KSampler', () => {
diff --git a/src/api/__tests__/qwen-edit-strength.test.ts b/src/api/__tests__/qwen-edit-strength.test.ts
index 20f3d40b..2983956d 100644
--- a/src/api/__tests__/qwen-edit-strength.test.ts
+++ b/src/api/__tests__/qwen-edit-strength.test.ts
@@ -6,8 +6,10 @@
* started the sampler from the source at denoise = strength: the box run of
* 01.11. came back as the source at 0.40 and 0.10, only 1.00 edited, because
* these edit models copy their reference unless they start from pure noise.
- * Now the edit always runs as the template runs it, and below 1 the result is
- * mixed with the source in that share (ImageBlend after the decode).
+ * Now the strength is guidance between the edit and the same images without
+ * an instruction (identity): identity + strength x (edit - identity), on one
+ * path from noise. At CFG 1 that is the sampler's CFG with identity as the
+ * negative; above it the nested DualCFGGuider keeps the user's negative.
*
* Run: npx vitest run src/api/__tests__/qwen-edit-strength.test.ts
*/
@@ -44,7 +46,7 @@ function nodes(without: string[] = []): Record<string, unknown> {
const n: Record<string, unknown> = {}
for (const k of ['CLIPTextEncode', 'KSampler', 'EmptyLatentImage', 'EmptySD3LatentImage', 'LoadImage', 'VAEEncode', 'VAEDecode',
'SaveImage', 'ModelSamplingAuraFlow', 'TextEncodeQwenImageEditPlus', 'CFGNorm', 'FluxKontextImageScale', 'ImageScaleToTotalPixels',
- 'RandomNoise', 'KSamplerSelect', 'CFGGuider', 'ManualSigmas', 'SamplerCustomAdvanced', 'ImageBlend'])
+ 'RandomNoise', 'KSamplerSelect', 'CFGGuider', 'ManualSigmas', 'SamplerCustomAdvanced', 'DualCFGGuider', 'BasicScheduler'])
n[k] = { input: { required: {} } }
n.UNETLoader = { input: { required: { unet_name: [[EDIT_PLUS, QWEN21_OFFICIAL_MODEL, TURBO]] } } }
n.CheckpointLoaderSimple = { input: { required: { ckpt_name: [[SDXL]] } } }
@@ -80,129 +82,156 @@ beforeEach(() => {
} as never)
})
-/** The edit as the template runs it: denoise 1.0, nothing between the
- * decode and SaveImage. */
-function expectTemplateEdit(wf: ComfyApiGraph) {
- const [, save] = nodeOf(wf, 'SaveImage')!
- expect(classAt(wf, save.inputs.images)).toBe('VAEDecode')
- expect(classTypes(wf)).not.toContain('ImageBlend')
-}
+const ref = (wf: ComfyApiGraph, r: unknown) => nodeAt(wf, String((r as [string, number])[0]))!
-/** The ImageBlend in front of SaveImage: the decoded edit as image1, the
- * source as image2, at 1 - strength. */
-function blendOf(wf: ComfyApiGraph) {
- const [, save] = nodeOf(wf, 'SaveImage')!
- expect(classAt(wf, save.inputs.images)).toBe('ImageBlend')
- const blend = nodeAt(wf, String((save.inputs.images as [string, number])[0]))!
- expect(classAt(wf, blend.inputs.image1)).toBe('VAEDecode')
- expect(blend.inputs.blend_mode).toBe('normal')
- return blend
+/** The edit as the template runs it: denoise 1.0, the template's negative
+ * and CFG, no second guidance. */
+function expectTemplateEdit(wf: ComfyApiGraph, cfg: number) {
+ expect(classTypes(wf)).not.toContain('DualCFGGuider')
+ const sampler = nodeOf(wf, 'KSampler')?.[1] ?? nodeOf(wf, 'CFGGuider')![1]
+ expect(sampler.inputs.cfg).toBe(cfg)
+ if (sampler.class_type === 'KSampler') expect(sampler.inputs.denoise).toBe(1)
}
-describe('Qwen-Image 2.1 edit: the Edit strength reaches the picture', () => {
- it('0.4: the edit runs at denoise 1.0 from the encoder latent, then 40 % of it over 60 % of the source', async () => {
- const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.4 })
+describe('Qwen-Image 2.1 edit (CFG 1): the strength is the CFG between the edit and the source as it is', () => {
+ it('0.4: KSampler at CFG 0.4, positive the edit, negative the same images without an instruction, denoise 1 from the encoder latent', async () => {
+ const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.4, cfgScale: 1 })
const [encId, enc] = nodeOf(wf, 'TextEncodeQwenImage21')!
const [, sampler] = nodeOf(wf, 'KSampler')!
- // The run that edits, unchanged: the 3.0.9 start from the source at
- // denoise 0.4 is what gave the source back.
+ expect(sampler.inputs.cfg).toBe(0.4)
expect(sampler.inputs.denoise).toBe(1)
expect(sampler.inputs.latent_image).toEqual([encId, 2])
- expect(classTypes(wf)).not.toContain('VAEEncode')
- const blend = blendOf(wf)
- expect(blend.inputs.blend_factor).toBe(0.6)
- // image2 is the source the encoder reads as image_1.
- expect(blend.inputs.image2).toEqual(enc.inputs['images.image_1'])
- expect(nodeAt(wf, String((blend.inputs.image2 as [string, number])[0]))!.inputs.image).toBe('jacket.png')
+ expect(sampler.inputs.positive).toEqual([encId, 0])
+ // The node's negative: the images with the (empty) negative prompt.
+ expect(sampler.inputs.negative).toEqual([encId, 1])
+ expect(enc.inputs.negative_prompt).toBe('')
+ expect(enc.inputs['images.image_1']).toBeDefined()
+ // One path from noise: no blend, no start from the source.
+ for (const c of ['ImageBlend', 'VAEEncode', 'DualCFGGuider']) expect(classTypes(wf)).not.toContain(c)
})
- it('every step of the slider gives its own share: 0.05 to 0.95', async () => {
- for (const s of [0.05, 0.25, 0.5, 0.75, 0.95]) {
- const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: s })
- expect(blendOf(wf).inputs.blend_factor).toBeCloseTo(1 - s, 6)
- expect(nodeOf(wf, 'KSampler')![1].inputs.denoise).toBe(1)
+ it('every step of the slider is its own CFG: 0.05 to 0.95', async () => {
+ for (const s of [0.05, 0.3, 0.5, 0.7, 0.95]) {
+ const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: s, cfgScale: 1 })
+ expect(nodeOf(wf, 'KSampler')![1].inputs.cfg).toBe(s)
}
})
- it('with references the source is still image_1, not a reference', async () => {
- const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.5, referenceImages: ['ref2.png', 'ref3.png'] })
- const blend = blendOf(wf)
- expect(nodeAt(wf, String((blend.inputs.image2 as [string, number])[0]))!.inputs.image).toBe('jacket.png')
+ it('with a negative prompt the identity is an encode of its own, the same images and no text', async () => {
+ const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.5, cfgScale: 1, negativePrompt: 'blurry' })
+ const encoders = Object.entries(wf).filter(([, node]) => node.class_type === 'TextEncodeQwenImage21')
+ expect(encoders).toHaveLength(2)
+ const [, sampler] = nodeOf(wf, 'KSampler')!
+ const identity = ref(wf, sampler.inputs.negative)
+ expect(identity.class_type).toBe('TextEncodeQwenImage21')
+ expect(identity.inputs.prompt).toBe('')
+ expect(identity.inputs.negative_prompt).toBe('')
+ const edit = ref(wf, sampler.inputs.positive)
+ expect(identity.inputs['images.image_1']).toEqual(edit.inputs['images.image_1'])
+ expect(identity.inputs.resolution).toBe(edit.inputs.resolution)
+ expect(sampler.inputs.negative).toEqual([encoders.find(([, n]) => n === identity)![0], 0])
})
- it('COUNTER-CHECK: 1 or unset is the graph of today, denoise 1.0 on the encoder latent, no blend', async () => {
+ it('COUNTER-CHECK: 1 or unset is the graph of today', async () => {
for (const extra of [{}, { editStrength: 1 }]) {
- const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', extra)
+ const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { ...extra, cfgScale: 1 })
const [encId] = nodeOf(wf, 'TextEncodeQwenImage21')!
- const [, sampler] = nodeOf(wf, 'KSampler')!
- expect(sampler.inputs.denoise).toBe(1)
- expect(sampler.inputs.latent_image).toEqual([encId, 2])
- expectTemplateEdit(wf)
+ expectTemplateEdit(wf, 1)
+ expect(nodeOf(wf, 'KSampler')![1].inputs.latent_image).toEqual([encId, 2])
}
})
it('COUNTER-CHECK: the img2img denoise alone changes nothing on a Qwen edit', async () => {
- const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { denoise: 0.3 })
- expect(nodeOf(wf, 'KSampler')![1].inputs.denoise).toBe(1)
- expectTemplateEdit(wf)
+ const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { denoise: 0.3, cfgScale: 1 })
+ expectTemplateEdit(wf, 1)
})
it('below 0.05 it holds at 0.05', async () => {
- const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.01 })
- expect(blendOf(wf).inputs.blend_factor).toBe(0.95)
+ const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.01, cfgScale: 1 })
+ expect(nodeOf(wf, 'KSampler')![1].inputs.cfg).toBe(0.05)
})
- it('a ComfyUI without ImageBlend says so instead of failing in the run', async () => {
- const err = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.4 }, ['ImageBlend']).catch((e: unknown) => e)
- expect(err).toBeInstanceOf(WorkflowUnavailableError)
- expect(String((err as Error).message)).toMatch(/Edit strength below 1 needs a newer ComfyUI/)
- })
-
- it('Turbo: its whole schedule as at 1, then the same blend', async () => {
- const wf = await build(TURBO, 'qwenimage', { editStrength: 0.5 })
- const [samplerId, custom] = nodeOf(wf, 'SamplerCustomAdvanced')!
+ it('Turbo: its whole schedule, the CFGGuider at the strength against the identity', async () => {
+ const wf = await build(TURBO, 'qwenimage', { editStrength: 0.5, cfgScale: 1 })
+ const [encId] = nodeOf(wf, 'TextEncodeQwenImage21')!
+ const [, custom] = nodeOf(wf, 'SamplerCustomAdvanced')!
expect(classAt(wf, custom.inputs.sigmas)).toBe('ManualSigmas')
- expect(classTypes(wf)).not.toContain('SplitSigmasDenoise')
- expect(classAt(wf, custom.inputs.latent_image)).toBe('TextEncodeQwenImage21')
- const blend = blendOf(wf)
- expect(blend.inputs.blend_factor).toBe(0.5)
- const decode = nodeAt(wf, String((blend.inputs.image1 as [string, number])[0]))!
- expect(decode.inputs.samples).toEqual([samplerId, 0])
+ const guider = ref(wf, custom.inputs.guider)
+ expect(guider.class_type).toBe('CFGGuider')
+ expect(guider.inputs.cfg).toBe(0.5)
+ expect(guider.inputs.negative).toEqual([encId, 1])
+ expect(custom.inputs.latent_image).toEqual([encId, 2])
})
it('COUNTER-CHECK Turbo at 1: the template chain as before', async () => {
- const wf = await build(TURBO, 'qwenimage', { editStrength: 1 })
- expect(classAt(wf, nodeOf(wf, 'SamplerCustomAdvanced')![1].inputs.sigmas)).toBe('ManualSigmas')
- expectTemplateEdit(wf)
+ const wf = await build(TURBO, 'qwenimage', { editStrength: 1, cfgScale: 1 })
+ const guider = ref(wf, nodeOf(wf, 'SamplerCustomAdvanced')![1].inputs.guider)
+ expect(guider.inputs.cfg).toBe(1)
+ expect(classTypes(wf)).not.toContain('DualCFGGuider')
})
})
-describe('Qwen-Image-Edit 2509/2511: the same field, the same blend', () => {
- it('0.4: the template edit at denoise 1.0, then mixed with the scaled source it edited', async () => {
- const wf = await build(EDIT_PLUS, 'qwenimage1', { editStrength: 0.4 })
- const [, sampler] = nodeOf(wf, 'KSampler')!
- expect(sampler.inputs.denoise).toBe(1)
- expect(classAt(wf, sampler.inputs.latent_image)).toBe('VAEEncode')
- const blend = blendOf(wf)
- expect(blend.inputs.blend_factor).toBe(0.6)
- // The source the latent was encoded from (FluxKontextImageScale), so
- // both images have the same size.
- const [, enc] = nodeOf(wf, 'VAEEncode')!
- expect(blend.inputs.image2).toEqual(enc.inputs.pixels)
- expect(classAt(wf, blend.inputs.image2)).toBe('FluxKontextImageScale')
+describe('a Qwen edit above CFG 1: the nested DualCFGGuider keeps the negative', () => {
+ it('Qwen-Image-Edit 2509 at CFG 4, 0.4: cond1 the edit, cond2 the identity, cfg_conds 0.4, cfg_cond2_negative 4, nested', async () => {
+ const wf = await build(EDIT_PLUS, 'qwenimage1', { editStrength: 0.4, cfgScale: 4 })
+ expect(classTypes(wf)).not.toContain('KSampler')
+ const [, custom] = nodeOf(wf, 'SamplerCustomAdvanced')!
+ const guider = ref(wf, custom.inputs.guider)
+ expect(guider.class_type).toBe('DualCFGGuider')
+ expect(guider.inputs).toMatchObject({ cfg_conds: 0.4, cfg_cond2_negative: 4, style: 'nested' })
+ const edit = ref(wf, guider.inputs.cond1)
+ const identity = ref(wf, guider.inputs.cond2)
+ expect(edit.class_type).toBe('TextEncodeQwenImageEditPlus')
+ expect(identity.class_type).toBe('TextEncodeQwenImageEditPlus')
+ expect(identity.inputs.prompt).toBe('')
+ expect(identity.inputs.image1).toEqual(edit.inputs.image1)
+ // Empty negative prompt: the identity IS the negative encode.
+ expect(guider.inputs.negative).toEqual(guider.inputs.cond2)
+ // The KSampler's steps, scheduler, sampler and seed, denoise 1 on the
+ // encoded source as the template.
+ const sigmas = ref(wf, custom.inputs.sigmas)
+ expect(sigmas).toMatchObject({ class_type: 'BasicScheduler', inputs: { scheduler: 'simple', steps: 20, denoise: 1 } })
+ expect(ref(wf, custom.inputs.sampler).inputs.sampler_name).toBe('euler')
+ expect(ref(wf, custom.inputs.noise).inputs.noise_seed).toBe(7)
+ expect(classAt(wf, custom.inputs.latent_image)).toBe('VAEEncode')
})
- it('COUNTER-CHECK: unset stays at 1.0, the template', async () => {
- const wf = await build(EDIT_PLUS, 'qwenimage1')
- expect(nodeOf(wf, 'KSampler')![1].inputs.denoise).toBe(1)
- expectTemplateEdit(wf)
+ it('with a negative prompt the identity is its own encode and the negative stays the negative', async () => {
+ const wf = await build(EDIT_PLUS, 'qwenimage1', { editStrength: 0.6, cfgScale: 4, negativePrompt: 'blurry' })
+ const guider = ref(wf, nodeOf(wf, 'SamplerCustomAdvanced')![1].inputs.guider)
+ const identity = ref(wf, guider.inputs.cond2)
+ const negative = ref(wf, guider.inputs.negative)
+ expect(identity.inputs.prompt).toBe('')
+ expect(String(negative.inputs.prompt)).toContain('blurry')
+ expect(guider.inputs.cond2).not.toEqual(guider.inputs.negative)
+ })
+
+ it('Qwen-Image 2.1 at CFG 4 takes the same guider', async () => {
+ const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.5, cfgScale: 4 })
+ const [encId] = nodeOf(wf, 'TextEncodeQwenImage21')!
+ const [, custom] = nodeOf(wf, 'SamplerCustomAdvanced')!
+ const guider = ref(wf, custom.inputs.guider)
+ expect(guider.inputs).toMatchObject({ cond1: [encId, 0], cond2: [encId, 1], negative: [encId, 1], cfg_conds: 0.5, cfg_cond2_negative: 4 })
+ expect(custom.inputs.latent_image).toEqual([encId, 2])
+ })
+
+ it('a ComfyUI without DualCFGGuider says so instead of failing in the run', async () => {
+ const err = await build(EDIT_PLUS, 'qwenimage1', { editStrength: 0.4, cfgScale: 4 }, ['DualCFGGuider']).catch((e: unknown) => e)
+ expect(err).toBeInstanceOf(WorkflowUnavailableError)
+ expect(String((err as Error).message)).toMatch(/Edit strength below 1 needs a newer ComfyUI/)
+ })
+
+ it('COUNTER-CHECK: 2509 unset stays the template, KSampler at CFG 4', async () => {
+ const wf = await build(EDIT_PLUS, 'qwenimage1', { cfgScale: 4 })
+ expectTemplateEdit(wf, 4)
})
})
describe('every other edit ignores it', () => {
- it('SDXL keeps the img2img denoise and no blend', async () => {
- const wf = await build(SDXL, 'sdxl', { editStrength: 0.2 })
- expect(nodeOf(wf, 'KSampler')![1].inputs.denoise).toBe(0.7)
- expectTemplateEdit(wf)
+ it('SDXL keeps the img2img denoise and its CFG', async () => {
+ const wf = await build(SDXL, 'sdxl', { editStrength: 0.2, cfgScale: 7 })
+ const [, sampler] = nodeOf(wf, 'KSampler')!
+ expect(sampler.inputs.denoise).toBe(0.7)
+ expect(sampler.inputs.cfg).toBe(7)
})
})
diff --git a/src/api/__tests__/wrapper-node-names.test.ts b/src/api/__tests__/wrapper-node-names.test.ts
index 4b11dc84..b330f5d2 100644
--- a/src/api/__tests__/wrapper-node-names.test.ts
+++ b/src/api/__tests__/wrapper-node-names.test.ts
@@ -101,11 +101,11 @@ const CORE_NODES = new Set([
// [nodes_edit_model.py], ImageScaleToTotalPixels [nodes_post_processing.py 234].
'WanFirstLastFrameToVideo', 'FluxKontextMultiReferenceLatentMethod', 'ModelSamplingFlux', 'ReferenceLatent',
'ImageScaleToTotalPixels',
- // B46 / D8 (Qwen edit strength), read in ComfyUI master on 08.11.2026:
- // ImageBlend [nodes_post_processing.py, class Blend: image1, image2,
- // blend_factor 0..1, blend_mode; out = image1 x (1 - f) + image2 x f, at
- // the size of image1].
- 'ImageBlend',
+ // B46 / D8 (Qwen edit strength at a CFG above 1), read in ComfyUI master
+ // on 08.11.2026: DualCFGGuider [nodes_custom_sampler.py: model, cond1,
+ // cond2, negative, cfg_conds, cfg_cond2_negative, style regular|nested;
+ // nested = negative + cfg2 x (cond2 + cfg1 x (cond1 - cond2) - negative)].
+ 'DualCFGGuider',
'YuE2GenerateMusic', 'EmptyYuE2LatentAudio',
// lora
'LoraLoader', 'LoraLoaderModelOnly',
diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.ts
index 6cccc68e..4896814f 100644
--- a/src/api/dynamic-workflow.ts
+++ b/src/api/dynamic-workflow.ts
@@ -1159,21 +1159,30 @@ export async function buildDynamicWorkflow(
? await getSystemVRAM().catch(() => null)
: null
const fullImages = comfyEditFullImages(cardGb)
- // B46 / D8 (Discord 06.11.2026, 3.0.10): the Edit strength of a Qwen edit.
- // The edit itself always runs as the template runs it, 1 is that result.
- // Below 1 the result is mixed with the source in that share (ImageBlend
- // after the decode), so 0.40 keeps 60 % of the source. 3.0.9 started the
- // sampler from the source at denoise = strength instead: these edit models
- // copy their reference unless they start from (nearly) pure noise, so
- // every value below 1 came back as the source (box run 01.11., 0.40 and
- // 0.10 equal to the source, only 1.00 red).
+ // B46 / D8 (Discord 06.11.2026, 3.0.10): the Edit strength of a Qwen edit,
+ // as guidance between the edit and no edit. Both encoders also give a
+ // conditioning of the same images without an instruction ("identity",
+ // the source as it is); every step the sampler follows
+ // identity + strength x (edit - identity)
+ // the way InstructPix2Pix scales its text guidance. 1 is the template's
+ // edit exactly; lower is the same edit taken less far, on one path from
+ // noise, so nothing is laid over anything. At CFG 1 (Qwen-Image 2.1, its
+ // Turbo) that is the sampler's own CFG = strength with identity as the
+ // negative; at a higher CFG (Qwen-Image-Edit 2509/2511 at 4) DualCFGGuider
+ // in its nested form, so the user's negative still counts:
+ // negative + cfg x (identity + strength x (edit - identity) - negative)
+ // 3.0.9 started the sampler from the source at denoise = strength instead:
+ // these edit models copy their reference unless they start from pure
+ // noise, so every value below 1 came back as the source (box run 01.11.).
const qwenEditStrength = (isQwenEdit || isQwen1Edit) && Number.isFinite(gp.editStrength) && gp.editStrength! < 1
? Math.max(0.05, gp.editStrength!)
: 1
- // The source the result is mixed with.
- let qwenEditSource: [string, number] | null = null
- if (qwenEditStrength < 1) {
- requireRelease(allNodes, ['ImageBlend'],
+ const qwenStrengthCfg1 = qwenEditStrength < 1 && Math.abs(params.cfgScale - 1) < 1e-6
+ const qwenStrengthDual = qwenEditStrength < 1 && !qwenStrengthCfg1
+ // The conditioning without an instruction, set where the encoder is built.
+ let qwenIdentityRef: [string, number] | null = null
+ if (qwenStrengthDual) {
+ requireRelease(allNodes, ['DualCFGGuider', 'SamplerCustomAdvanced', 'RandomNoise', 'KSamplerSelect', 'BasicScheduler'],
'An Edit strength below 1 needs a newer ComfyUI. Update ComfyUI, or set the Edit strength to 1.', strategy)
}
if (isQwen1Edit) {
@@ -1247,7 +1256,6 @@ export async function buildDynamicWorkflow(
qwenInputs[`images.image_${i + 1}`] = [loadId, 0]
}
qwenInputs.vae = [vaeSourceId, vaeOutputSlot]
- qwenEditSource = qwenInputs['images.image_1'] as [string, number]
} else if (createRefs.length > 0) {
// B45: references without a source. They are image_1 and up; the
// picture still comes from the empty latent at the canvas size below.
@@ -1259,6 +1267,17 @@ export async function buildDynamicWorkflow(
qwenInputs.vae = [vaeSourceId, vaeOutputSlot]
}
workflow[posId] = { class_type: 'TextEncodeQwenImage21', inputs: qwenInputs }
+ if (isQwenEdit && qwenEditStrength < 1) {
+ // The node's negative is the images with the negative prompt, so with
+ // none it is the identity already; with one, a second encode.
+ if ((params.negativePrompt || '').trim() === '') {
+ qwenIdentityRef = [posId, 1]
+ } else {
+ const idId = String(n++)
+ workflow[idId] = { class_type: 'TextEncodeQwenImage21', inputs: { ...qwenInputs, prompt: '', negative_prompt: '' }, _meta: { title: 'Edit strength: the source as it is' } }
+ qwenIdentityRef = [idId, 0]
+ }
+ }
} else if (isQwen1Edit) {
const loadId = String(n++)
workflow[loadId] = { class_type: 'LoadImage', inputs: { image: gp.inputImage } }
@@ -1269,7 +1288,6 @@ export async function buildDynamicWorkflow(
workflow[scaleId] = { class_type: 'FluxKontextImageScale', inputs: { image: [loadId, 0] } }
qwen1EditImageRef = [scaleId, 0]
}
- qwenEditSource = qwen1EditImageRef
// References go in unscaled as image2 and image3: the node resizes every
// extra image itself, only image1 sets the canvas.
const refInputs: ComfyNodeInputs = {}
@@ -1286,6 +1304,17 @@ export async function buildDynamicWorkflow(
const pictures = (text: string) => canonicalImageRefs(text, 1 + references.length, 'qwenEditPlus')
workflow[posId] = { class_type: 'TextEncodeQwenImageEditPlus', inputs: editInputs(pictures(params.prompt)) }
workflow[negId] = { class_type: 'TextEncodeQwenImageEditPlus', inputs: editInputs(pictures(params.negativePrompt || '')) }
+ if (qwenEditStrength < 1) {
+ // The same images without an instruction: the negative when it is
+ // empty, else an encode of its own.
+ if ((params.negativePrompt || '').trim() === '') {
+ qwenIdentityRef = [negId, 0]
+ } else {
+ const idId = String(n++)
+ workflow[idId] = { class_type: 'TextEncodeQwenImageEditPlus', inputs: editInputs(''), _meta: { title: 'Edit strength: the source as it is' } }
+ qwenIdentityRef = [idId, 0]
+ }
+ }
} else if (krea2StyleRef) {
// B45: the official Krea 2 style reference template. The images go
// through TextEncodeQwenImageEditPlus (image1 to image3), the reference
@@ -1826,23 +1855,52 @@ export async function buildDynamicWorkflow(
log.info(`[dynamic-workflow] Wan 2.2 A14B pair: ${params.model} → ${lowNoisePartner}, split at step ${split}`)
}
+ // B46 / D8: the Edit strength at CFG 1 is the sampler's CFG, with the
+ // identity as its negative (see qwenEditStrength above).
+ const samplerNegative: [string, number] = qwenStrengthCfg1 && qwenIdentityRef ? qwenIdentityRef : negativeRef
+ const samplerCfg = qwenStrengthCfg1 && qwenIdentityRef ? qwenEditStrength : params.cfgScale
+ const part = (node: { class_type: string; inputs: ComfyNodeInputs; _meta?: { title: string } }): [string, number] => {
+ const id = String(n++)
+ workflow[id] = node
+ return [id, 0]
+ }
+ // ...and at a higher CFG the nested DualCFGGuider.
+ const dualGuider = (): [string, number] => part({
+ class_type: 'DualCFGGuider',
+ inputs: {
+ model: [samplerModelId, 0], cond1: positiveRef, cond2: qwenIdentityRef!, negative: negativeRef,
+ cfg_conds: qwenEditStrength, cfg_cond2_negative: params.cfgScale, style: 'nested',
+ },
+ _meta: { title: `Edit strength ${qwenEditStrength.toFixed(2)}` },
+ })
+ const useDual = qwenStrengthDual && !!qwenIdentityRef
+
// The four inputs of the Turbo chain besides the latent, one node each.
let qwenTurboCustom: ComfyNodeInputs | null = null
if (qwenTurboChain) {
- const part = (node: { class_type: string; inputs: ComfyNodeInputs }): [string, number] => {
- const id = String(n++)
- workflow[id] = node
- return [id, 0]
- }
qwenTurboCustom = {
noise: part({ class_type: 'RandomNoise', inputs: { noise_seed: seed } }),
- guider: part({
+ guider: useDual ? dualGuider() : part({
class_type: 'CFGGuider',
- inputs: { model: [samplerModelId, 0], positive: positiveRef, negative: negativeRef, cfg: params.cfgScale },
+ inputs: { model: [samplerModelId, 0], positive: positiveRef, negative: samplerNegative, cfg: samplerCfg },
}),
sampler: part({ class_type: 'KSamplerSelect', inputs: { sampler_name: QWEN21_TURBO_SAMPLING.sampler } }),
sigmas: part({ class_type: 'ManualSigmas', inputs: { sigmas: QWEN21_TURBO_SIGMAS } }),
}
+ } else if (useDual) {
+ // A guider needs the custom sampler; its steps are the KSampler's.
+ qwenTurboCustom = {
+ noise: part({ class_type: 'RandomNoise', inputs: { noise_seed: seed } }),
+ guider: dualGuider(),
+ sampler: part({ class_type: 'KSamplerSelect', inputs: { sampler_name: qwenTurbo ? QWEN21_TURBO_SAMPLING.sampler : params.sampler } }),
+ sigmas: part({
+ class_type: 'BasicScheduler',
+ inputs: {
+ model: [samplerModelId, 0], scheduler: qwenTurbo ? QWEN21_TURBO_SAMPLING.scheduler : params.scheduler,
+ steps: qwenTurbo ? QWEN21_TURBO_SAMPLING.steps : params.steps, denoise: 1.0,
+ },
+ }),
+ }
}
const samplerId = String(n++)
@@ -1862,17 +1920,17 @@ export async function buildDynamicWorkflow(
...qwenTurboCustom,
latent_image: latentRef,
},
- _meta: { title: 'Qwen-Image 2.1 Turbo' },
+ _meta: { title: qwenTurboChain ? 'Qwen-Image 2.1 Turbo' : 'Qwen edit' },
} : {
class_type: 'KSampler',
inputs: {
model: [samplerModelId, 0],
positive: positiveRef,
- negative: negativeRef,
+ negative: samplerNegative,
latent_image: latentRef,
seed,
steps: qwenTurbo ? QWEN21_TURBO_SAMPLING.steps : params.steps,
- cfg: params.cfgScale,
+ cfg: samplerCfg,
sampler_name: qwenTurbo ? QWEN21_TURBO_SAMPLING.sampler : params.sampler,
scheduler: qwenTurbo ? QWEN21_TURBO_SAMPLING.scheduler : params.scheduler,
// Qwen edits: 1.0 like their templates, whatever the Edit strength.
@@ -1893,20 +1951,6 @@ export async function buildDynamicWorkflow(
vae: [vaeSourceId, vaeOutputSlot],
},
}
- let imageOut: [string, number] = [decodeId, 0]
-
- // B46 / D8: an Edit strength below 1 mixes the edit with its source. The
- // edit is image1, so the output keeps its size; ImageBlend scales the
- // source to it. Out = edit x strength + source x (1 - strength).
- if (qwenEditStrength < 1 && qwenEditSource) {
- const blendId = String(n++)
- workflow[blendId] = {
- class_type: 'ImageBlend',
- inputs: { image1: imageOut, image2: qwenEditSource, blend_factor: Number((1 - qwenEditStrength).toFixed(4)), blend_mode: 'normal' },
- _meta: { title: `Edit strength ${qwenEditStrength.toFixed(2)}` },
- }
- imageOut = [blendId, 0]
- }
// ─── Phase 6: Output ───
@@ -1925,7 +1969,7 @@ export async function buildDynamicWorkflow(
workflow[String(n)] = {
class_type: 'SaveImage',
inputs: {
- images: imageOut,
+ images: [decodeId, 0],
filename_prefix: promptFilenamePrefix(params.prompt, false),
},
}
diff --git a/src/api/hires-fix.ts b/src/api/hires-fix.ts
index 9420d681..48593e5b 100644
--- a/src/api/hires-fix.ts
+++ b/src/api/hires-fix.ts
@@ -184,6 +184,27 @@ function customAsKSampler(workflow: ComfyApiGraph, custom: ComfyApiNode): ComfyA
return { class_type: 'KSampler', inputs }
}
+/** The parts of a SamplerCustomAdvanced on a DualCFGGuider (the Edit
+ * strength of a Qwen edit at a CFG above 1), or undefined for any other. */
+function dualGuided(workflow: ComfyApiGraph, custom: ComfyApiNode) {
+ const ref = (key: string) => {
+ const r = nodeInput(custom, key)
+ return isComfyLinkRef(r) ? r : undefined
+ }
+ const guider = ref('guider')
+ const guiderNode = guider ? nodeAt(workflow, String(guider[0])) : undefined
+ if (guiderNode?.class_type !== 'DualCFGGuider') return undefined
+ const noise = ref('noise')
+ const sampler = ref('sampler')
+ const latent = ref('latent_image')
+ const model = nodeInput(guiderNode, 'model')
+ if (!guider || !noise || !sampler || !latent || !isComfyLinkRef(model)) return undefined
+ const sigmas = ref('sigmas')
+ const schedule = sigmas ? nodeAt(workflow, String(sigmas[0])) : undefined
+ const scheduler = schedule?.class_type === 'BasicScheduler' ? nodeInput(schedule, 'scheduler') : undefined
+ return { guider, noise, sampler, latent, model, scheduler: typeof scheduler === 'string' ? scheduler : 'simple' }
+}
+
/**
* Adds a native latent-upscale refinement pass to a simple image workflow:
*
@@ -241,12 +262,7 @@ export function applyNativeHiresFix(
const terminalDecodeIds = new Set<string>()
for (const [, node] of apiNodes(workflow)) {
if (!IMAGE_OUTPUT_NODES.has(node.class_type)) continue
- let imageRef = nodeInput(node, 'images')
- if (!isComfyLinkRef(imageRef)) continue
- // The Edit strength of a Qwen edit (B46 / D8) mixes the decoded edit,
- // image1, with its source; the pass goes on the edit, the mix stays.
- const blend = nodeAt(workflow, String(imageRef[0]))
- if (blend?.class_type === 'ImageBlend') imageRef = nodeInput(blend, 'image1')
+ const imageRef = nodeInput(node, 'images')
if (!isComfyLinkRef(imageRef)) continue
const decodeId = String(imageRef[0])
const decode = nodeAt(workflow, decodeId)
@@ -275,20 +291,26 @@ export function applyNativeHiresFix(
// Qwen-Image 2.1 Turbo's chain (lib/render/qwen21-turbo) ends in a
// SamplerCustomAdvanced; its pass reads the same model, prompt, CFG, seed
// and sampler off the CFGGuider, RandomNoise and KSamplerSelect.
- const firstSampler = found?.class_type === 'SamplerCustomAdvanced' ? customAsKSampler(workflow, found) : found
- if (!firstSampler || firstSampler.class_type !== 'KSampler') {
+ // A Qwen edit below Edit strength 1 at a CFG above 1 (B46 / D8) samples
+ // through DualCFGGuider, which no KSampler can say; its pass reuses that
+ // guider, the noise and the sampler.
+ const dual = found?.class_type === 'SamplerCustomAdvanced' ? dualGuided(workflow, found) : undefined
+ const firstSampler = dual ? undefined : found?.class_type === 'SamplerCustomAdvanced' ? customAsKSampler(workflow, found) : found
+ if (!dual && (!firstSampler || firstSampler.class_type !== 'KSampler')) {
throw new NativeHiresFixError(
`Native HiRes currently requires a core KSampler before the final decode; this workflow uses ${found?.class_type ?? 'an unknown node'}.`,
)
}
- const requiredInputs = ['model', 'positive', 'negative', 'latent_image']
- const missing = requiredInputs.filter((key) => nodeInput(firstSampler, key) === undefined)
- if (missing.length > 0) {
- throw new NativeHiresFixError(`The final KSampler is missing required inputs: ${missing.join(', ')}.`)
+ if (firstSampler) {
+ const requiredInputs = ['model', 'positive', 'negative', 'latent_image']
+ const missing = requiredInputs.filter((key) => nodeInput(firstSampler, key) === undefined)
+ if (missing.length > 0) {
+ throw new NativeHiresFixError(`The final KSampler is missing required inputs: ${missing.join(', ')}.`)
+ }
}
- const latentRef = nodeInput(firstSampler, 'latent_image')
+ const latentRef = dual ? dual.latent : nodeInput(firstSampler, 'latent_image')
let latentSource = isComfyLinkRef(latentRef) ? nodeAt(workflow, String(latentRef[0])) : undefined
// An edit batch (api/edit-batch) repeats the source latent; the mask is
// the one of the latent it repeats.
@@ -317,20 +339,36 @@ export function applyNativeHiresFix(
}
workflow[upscaleNodeId] = upscaleNode
- const samplerNodeId = nextNodeId(workflow)
- const refinementNode: HiresNode = {
- class_type: 'KSampler',
- inputs: {
- ...firstSampler.inputs,
- latent_image: [upscaleNodeId, 0],
- steps: Math.floor(options.steps),
- denoise: options.denoise,
- },
- _meta: {
- title: 'LU Native HiRes — refinement pass',
- luNativeHiresFix: true,
- },
+ let refinementNode: HiresNode
+ if (dual) {
+ const scheduleId = nextNodeId(workflow)
+ const scheduleNode: HiresNode = {
+ class_type: 'BasicScheduler',
+ inputs: { model: dual.model, scheduler: dual.scheduler, steps: Math.floor(options.steps), denoise: options.denoise },
+ _meta: { title: 'LU Native HiRes — refinement steps', luNativeHiresFix: true },
+ }
+ workflow[scheduleId] = scheduleNode
+ refinementNode = {
+ class_type: 'SamplerCustomAdvanced',
+ inputs: { noise: dual.noise, guider: dual.guider, sampler: dual.sampler, sigmas: [scheduleId, 0], latent_image: [upscaleNodeId, 0] },
+ _meta: { title: 'LU Native HiRes — refinement pass', luNativeHiresFix: true },
+ }
+ } else {
+ refinementNode = {
+ class_type: 'KSampler',
+ inputs: {
+ ...firstSampler!.inputs,
+ latent_image: [upscaleNodeId, 0],
+ steps: Math.floor(options.steps),
+ denoise: options.denoise,
+ },
+ _meta: {
+ title: 'LU Native HiRes — refinement pass',
+ luNativeHiresFix: true,
+ },
+ }
}
+ const samplerNodeId = nextNodeId(workflow)
workflow[samplerNodeId] = refinementNode
decode.inputs = {
diff --git a/src/components/create/experimental/ParamGroups.tsx b/src/components/create/experimental/ParamGroups.tsx
index 92c56b9b..6e2b9a1e 100644
--- a/src/components/create/experimental/ParamGroups.tsx
+++ b/src/components/create/experimental/ParamGroups.tsx
@@ -5,7 +5,7 @@ import { useCreateStore } from '../../../stores/createStore'
import { useCreateExp } from './CreateContext'
import { cloudModelById, defaultCloudModel } from '../../../stores/cloudCatalogStore'
import { classifyModel } from '../../../api/comfyui'
-import { readsEditStrength, EDIT_STRENGTH_HINT } from '../../../lib/edit-references'
+import { readsEditStrength, EDIT_STRENGTH_HINT, EDIT_STRENGTH_HINT_MAC } from '../../../lib/edit-references'
import { latentDownscale, nativeHiresFinalSize, type HiresUpscaleMethod } from '../../../api/hires-fix'
import { isMlxImageHost } from '../../../api/mlx-image'
import { macHiresPass } from '../../../lib/mac-hires'
@@ -501,8 +501,8 @@ export function ParamGroups() {
{(macEdit || (isEdit && !isCloud && readsEditStrength(laneType, laneModel))) && (
// 1.00 is the edit from the prompt alone, as before. Lower keeps
// more of the image. A Qwen edit through ComfyUI reads the same
- // field and mixes its result with the source (B46 / D8).
- <Slider label="Edit strength" min={0.05} max={1} step={0.05} value={s.editStrength} onChange={s.setEditStrength} format={(v) => v.toFixed(2)} hint={EDIT_STRENGTH_HINT} />
+ // field as guidance between the edit and no edit (B46 / D8).
+ <Slider label="Edit strength" min={0.05} max={1} step={0.05} value={s.editStrength} onChange={s.setEditStrength} format={(v) => v.toFixed(2)} hint={macEdit ? EDIT_STRENGTH_HINT_MAC : EDIT_STRENGTH_HINT} />
)}
{meta.allowsMask && !isCloud && (
<Slider label="Mask edge feather" min={0} max={64} step={1} value={s.growMaskBy} onChange={s.setGrowMaskBy} unit="px" />
diff --git a/src/lib/edit-references.ts b/src/lib/edit-references.ts
index 7efcb4d6..165e332a 100644
--- a/src/lib/edit-references.ts
+++ b/src/lib/edit-references.ts
@@ -101,11 +101,16 @@ export const MANY_REFERENCES_LINE = 'With this many images, say what each one br
* the slider here set `denoise`, which the graph never read (Discord #general
* 23.10.2026: "even with strength at 95%"); 3.0.8 took it out. B46 (3.0.9)
* started the run from the source at that denoise, which gave the source back
- * (D8, 3.0.10). Now the edit runs as at 1 and is mixed with the source in
- * that share (dynamic-workflow.ts).
+ * (D8, 3.0.10). Now it is guidance between the edit and the same images
+ * without an instruction (dynamic-workflow.ts).
*/
-/** The line under the Edit strength of a Qwen edit (1.00 = the edit). */
-export const EDIT_STRENGTH_HINT = '1.00 is the full edit. Lower keeps more of the original.'
+/** The line under the Edit strength of a Qwen edit (1.00 = the edit). Below
+ * 1 a run through ComfyUI samples the edit and the source as it is in each
+ * step, so it takes about twice as long. */
+export const EDIT_STRENGTH_HINT = '1.00 is the full edit. Lower makes a lighter edit and takes longer.'
+/** The same line on a Mac, whose engine starts a lower strength from the
+ * image and so takes no longer. */
+export const EDIT_STRENGTH_HINT_MAC = '1.00 is the full edit. Lower keeps more of the original.'
/** The line under the Edit strength of an img2img edit (the denoise). */
export const EDIT_DENOISE_HINT = 'Higher lets the prompt change more. Lower keeps more of the original.'