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(edit): Edit strength below 1 changes the picture again (D8)
purple8eb7dc71ec0e
diff --git a/e2e/qwen-edit-strength.spec.ts b/e2e/qwen-edit-strength.spec.tsindex 35a93fa4..25e225b9 100644--- a/e2e/qwen-edit-strength.spec.ts+++ b/e2e/qwen-edit-strength.spec.ts@@ -6,8 +6,9 @@ import { gradientPng } from './support/png'import { appModules, type AppWindow } from './support/ui'/**- * 3.0.9 D6 / B46 (Discord #bug-reports 30.10.2026): the Edit strength of a- * Qwen-Image 2.1 edit through ComfyUI is back, and it reaches the graph.+ * 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.* Windows or Linux, local: a Mac runs this model on MLX, where the slider was* never gone.*@@ -40,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: {} } },+ ImageScaleToTotalPixels: { input: { required: {} } }, ImageBlend: { 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: {} } },@@ -95,13 +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: Qwen-Image 2.1 Edit through ComfyUI has the Edit strength again, and 0.40 is the denoise of the run', async ({ page }) => {+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 }) => {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 shot(page, 'D6-B46-1')// The real range input, moved down to 0.40 with the keyboard.@@ -116,12 +118,16 @@ test('B46: Qwen-Image 2.1 Edit through ComfyUI has the Edit strength again, andawait 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')!- expect(sampler.inputs.denoise).toBe(0.4)- const from = low[(sampler.inputs.latent_image as [string, number])[0]]- expect(from.class_type).toBe('VAEEncode')- const scale = low[(from.inputs.pixels as [string, number])[0]]- expect(scale.class_type).toBe('ImageScaleToTotalPixels')- expect(low[(scale.inputs.image as [string, number])[0]].inputs.image).toBe('source.png')+ // The edit itself as at 1.00 (3.0.9 started here from the source at 0.4,+ // and the source came back).+ 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)if (SHOTS) {writeFileSync(`${SHOTS}/D6-workflow-staerke-0.40.json`, JSON.stringify(low, null, 2))@@ -149,6 +155,6 @@ test('COUNTER-CHECK B46: at 1.00 (the default) the run is the template edit of tconst 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 === 'ImageScaleToTotalPixels')).toBe(false)+ expect(Object.values(full).some((n) => n.class_type === 'ImageBlend')).toBe(false)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.tsindex 46a3fa6d..b023997e 100644--- a/src/api/__tests__/hires-fix.test.ts+++ b/src/api/__tests__/hires-fix.test.ts@@ -118,6 +118,26 @@ 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', () => {+ 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' } }++ const result = applyNativeHiresFix(workflow, {+ baseWidth: 1024,+ baseHeight: 1024,+ scale: 1.5,+ denoise: 0.35,+ steps: 12,+ upscaleMethod: 'bislerp',+ })++ 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', () => {const workflow: ComfyApiGraph = baseWorkflow()workflow['4'].class_type = 'SamplerCustom'diff --git a/src/api/__tests__/qwen-edit-strength.test.ts b/src/api/__tests__/qwen-edit-strength.test.tsindex 2636d7d6..20f3d40b 100644--- a/src/api/__tests__/qwen-edit-strength.test.ts+++ b/src/api/__tests__/qwen-edit-strength.test.ts@@ -1,14 +1,13 @@/**- * B46 (Discord #bug-reports 30.10.2026; back in 3.0.9 on- * David's word 01.11.): the Edit strength of a Qwen edit through ComfyUI.+ * B46 / D8 (Discord #bug-reports 30.10.2026, help chat 06.11.2026 on 3.0.10):+ * the Edit strength of a Qwen edit through ComfyUI.*- * Up to 3.0.7 the slider showed on a Qwen-Image 2.1 edit, but it set- * `denoise`, and the graph sampled at 1.0 from the empty latent of- * TextEncodeQwenImage21 whatever it said; 3.0.8 took it out as dead. Now it- * is the Edit strength (`editStrength`, 1 = as before): below 1 the sampler- * starts from the source, scaled to exactly the latent the encoder hands- * over, at that denoise. Qwen-Image-Edit 2509/2511 already samples from the- * encoded source and only needs the denoise.+ * Up to 3.0.7 the slider set `denoise`, which the graph never read. 3.0.9+ * 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).** Run: npx vitest run src/api/__tests__/qwen-edit-strength.test.ts*/@@ -45,7 +44,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', 'SplitSigmasDenoise'])+ 'RandomNoise', 'KSamplerSelect', 'CFGGuider', 'ManualSigmas', 'SamplerCustomAdvanced', 'ImageBlend'])n[k] = { input: { required: {} } }n.UNETLoader = { input: { required: { unet_name: [[EDIT_PLUS, QWEN21_OFFICIAL_MODEL, TURBO]] } } }n.CheckpointLoaderSimple = { input: { required: { ckpt_name: [[SDXL]] } } }@@ -81,99 +80,129 @@ beforeEach(() => {} as never)})-describe('Qwen-Image 2.1 edit: the Edit strength reaches the graph', () => {- it('0.4: the KSampler runs at denoise 0.4 from the encoded source, not the empty latent', async () => {+/** 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')+}++/** 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+}++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 })const [encId, enc] = nodeOf(wf, 'TextEncodeQwenImage21')!const [, sampler] = nodeOf(wf, 'KSampler')!- expect(sampler.inputs.denoise).toBe(0.4)- expect(sampler.inputs.latent_image).not.toEqual([encId, 2])- expect(classAt(wf, sampler.inputs.latent_image)).toBe('VAEEncode')- const [, vaeEnc] = nodeOf(wf, 'VAEEncode')!- expect(vaeEnc.inputs.vae).toEqual(enc.inputs.vae)- // The source the encoder reads as image_1, scaled the way the encoder- // scales it: side² pixels, multiples of 32, lanczos.- const [scaleId, scale] = nodeOf(wf, 'ImageScaleToTotalPixels')!- expect(vaeEnc.inputs.pixels).toEqual([scaleId, 0])- expect(scale.inputs.image).toEqual(enc.inputs['images.image_1'])- expect(nodeAt(wf, String((scale.inputs.image as [string, number])[0]))!.inputs.image).toBe('jacket.png')- expect(scale.inputs.resolution_steps).toBe(32)- expect(scale.inputs.upscale_method).toBe('lanczos')- const side = enc.inputs.resolution as number- expect(side).toBe(1344) // 1328 on the grid of 32 (qwenEditResolution)- expect((scale.inputs.megapixels as number) * 1024 * 1024).toBeCloseTo(side * side, 6)+ // 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.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')})- it('the shared side of many images is the side the source is scaled to', async () => {- const refs = Array.from({ length: 6 }, (_, i) => `ref${i + 2}.png`)- const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.5, referenceImages: refs })- const side = nodeOf(wf, 'TextEncodeQwenImage21')![1].inputs.resolution as number- expect(side).toBeLessThan(1328)- expect((nodeOf(wf, 'ImageScaleToTotalPixels')![1].inputs.megapixels as number) * 1024 * 1024).toBeCloseTo(side * side, 6)+ 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('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('COUNTER-CHECK: 1 or unset is the graph of today, denoise 1.0 on the encoder latent', async () => {+ it('COUNTER-CHECK: 1 or unset is the graph of today, denoise 1.0 on the encoder latent, no blend', async () => {for (const extra of [{}, { editStrength: 1 }]) {const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', extra)const [encId] = nodeOf(wf, 'TextEncodeQwenImage21')!const [, sampler] = nodeOf(wf, 'KSampler')!expect(sampler.inputs.denoise).toBe(1)expect(sampler.inputs.latent_image).toEqual([encId, 2])- expect(classTypes(wf)).not.toContain('VAEEncode')- expect(classTypes(wf)).not.toContain('ImageScaleToTotalPixels')+ expectTemplateEdit(wf)}})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)})it('below 0.05 it holds at 0.05', async () => {const wf = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.01 })- expect(nodeOf(wf, 'KSampler')![1].inputs.denoise).toBe(0.05)+ expect(blendOf(wf).inputs.blend_factor).toBe(0.95)})- it('a ComfyUI without ImageScaleToTotalPixels says so instead of failing in the run', async () => {- const err = await build(QWEN21_OFFICIAL_MODEL, 'qwenimage', { editStrength: 0.4 }, ['ImageScaleToTotalPixels']).catch((e: unknown) => e)+ 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 own sigmas, cut to the strength by SplitSigmasDenoise (low sigmas)', async () => {+ it('Turbo: its whole schedule as at 1, then the same blend', async () => {const wf = await build(TURBO, 'qwenimage', { editStrength: 0.5 })- const [, custom] = nodeOf(wf, 'SamplerCustomAdvanced')!- const [splitId, split] = nodeOf(wf, 'SplitSigmasDenoise')!- expect(custom.inputs.sigmas).toEqual([splitId, 1])- expect(split.inputs.denoise).toBe(0.5)- expect(classAt(wf, split.inputs.sigmas)).toBe('ManualSigmas')- expect(classAt(wf, custom.inputs.latent_image)).toBe('VAEEncode')+ const [samplerId, 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])})it('COUNTER-CHECK Turbo at 1: the template chain as before', async () => {const wf = await build(TURBO, 'qwenimage', { editStrength: 1 })- expect(classTypes(wf)).not.toContain('SplitSigmasDenoise')expect(classAt(wf, nodeOf(wf, 'SamplerCustomAdvanced')![1].inputs.sigmas)).toBe('ManualSigmas')+ expectTemplateEdit(wf)})})-describe('Qwen-Image-Edit 2509/2511: the same field', () => {- it('0.4 is the denoise of its KSampler, still on the encoded source', async () => {+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(0.4)+ 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')})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)})})describe('every other edit ignores it', () => {- it('SDXL keeps the img2img denoise', async () => {+ 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)})})diff --git a/src/api/__tests__/wrapper-node-names.test.ts b/src/api/__tests__/wrapper-node-names.test.tsindex 02be0a8d..4b11dc84 100644--- a/src/api/__tests__/wrapper-node-names.test.ts+++ b/src/api/__tests__/wrapper-node-names.test.ts@@ -101,10 +101,11 @@ const CORE_NODES = new Set([// [nodes_edit_model.py], ImageScaleToTotalPixels [nodes_post_processing.py 234].'WanFirstLastFrameToVideo', 'FluxKontextMultiReferenceLatentMethod', 'ModelSamplingFlux', 'ReferenceLatent','ImageScaleToTotalPixels',- // B46 (Qwen edit strength on Turbo), read in ComfyUI master on 01.11.2026:- // SplitSigmasDenoise [nodes_custom_sampler.py 228, outputs high_sigmas,- // low_sigmas].- 'SplitSigmasDenoise',+ // 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','YuE2GenerateMusic', 'EmptyYuE2LatentAudio',// lora'LoraLoader', 'LoraLoaderModelOnly',diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.tsindex af74bbc5..6cccc68e 100644--- a/src/api/dynamic-workflow.ts+++ b/src/api/dynamic-workflow.ts@@ -1159,19 +1159,21 @@ export async function buildDynamicWorkflow(? await getSystemVRAM().catch(() => null): nullconst fullImages = comfyEditFullImages(cardGb)- // B46 (Discord 30.10.2026, back in 3.0.9): the Edit strength of a Qwen- // edit. 1 is the template's edit from the empty latent, as before; below 1- // the sampler starts from the source itself at that denoise, so less of- // the picture changes. Up to 3.0.7 the slider showed here but its value- // never reached the graph (denoise stayed 1.0 on an empty latent).+ // 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).const qwenEditStrength = (isQwenEdit || isQwen1Edit) && Number.isFinite(gp.editStrength) && gp.editStrength! < 1? Math.max(0.05, gp.editStrength!): 1- // The source and the side the encoder scales it to, for that start.+ // The source the result is mixed with.let qwenEditSource: [string, number] | null = null- let qwenEditSide = 0- if (isQwenEdit && qwenEditStrength < 1) {- requireRelease(allNodes, ['ImageScaleToTotalPixels', 'VAEEncode'],+ if (qwenEditStrength < 1) {+ requireRelease(allNodes, ['ImageBlend'],'An Edit strength below 1 needs a newer ComfyUI. Update ComfyUI, or set the Edit strength to 1.', strategy)}if (isQwen1Edit) {@@ -1246,7 +1248,6 @@ export async function buildDynamicWorkflow(}qwenInputs.vae = [vaeSourceId, vaeOutputSlot]qwenEditSource = qwenInputs['images.image_1'] as [string, number]- qwenEditSide = qwenInputs.resolution as 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.@@ -1268,6 +1269,7 @@ 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 = {}@@ -1463,20 +1465,6 @@ export async function buildDynamicWorkflow(// calls out as required, because any other size shifts the edit.latentRef = [posId, 2]delete workflow[latentId]- if (qwenEditStrength < 1 && qwenEditSource) {- // B46: the source at exactly the size of that latent. The encoder- // scales image_1 to about side x side pixels on multiples of 32 in- // its own shape (nodes_qwen.py); ImageScaleToTotalPixels does the- // same sum with side² pixels and steps of 32.- const scaleId = String(n++)- workflow[scaleId] = {- class_type: 'ImageScaleToTotalPixels',- inputs: { image: qwenEditSource, upscale_method: 'lanczos', megapixels: (qwenEditSide * qwenEditSide) / (1024 * 1024), resolution_steps: 32 },- }- const encId = String(n++)- workflow[encId] = { class_type: 'VAEEncode', inputs: { pixels: [scaleId, 0], vae: [vaeSourceId, vaeOutputSlot] } }- latentRef = [encId, 0]- }}}@@ -1855,10 +1843,6 @@ export async function buildDynamicWorkflow(sampler: part({ class_type: 'KSamplerSelect', inputs: { sampler_name: QWEN21_TURBO_SAMPLING.sampler } }),sigmas: part({ class_type: 'ManualSigmas', inputs: { sigmas: QWEN21_TURBO_SIGMAS } }),}- if (qwenEditStrength < 1) {- // B46 on Turbo: its own schedule, cut to the strength (low_sigmas).- qwenTurboCustom.sigmas = [part({ class_type: 'SplitSigmasDenoise', inputs: { sigmas: qwenTurboCustom.sigmas, denoise: qwenEditStrength } })[0], 1]- }}const samplerId = String(n++)@@ -1891,8 +1875,8 @@ export async function buildDynamicWorkflow(cfg: params.cfgScale,sampler_name: qwenTurbo ? QWEN21_TURBO_SAMPLING.sampler : params.sampler,scheduler: qwenTurbo ? QWEN21_TURBO_SAMPLING.scheduler : params.scheduler,- // Qwen edits: 1.0 like their templates, or the Edit strength (B46).- denoise: isInpaint ? (params.denoise ?? 0.85) : isI2I ? (params.denoise ?? 0.7) : qwenEditStrength,+ // Qwen edits: 1.0 like their templates, whatever the Edit strength.+ denoise: isInpaint ? (params.denoise ?? 0.85) : isI2I ? (params.denoise ?? 0.7) : 1.0,},}@@ -1909,6 +1893,20 @@ 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 ───@@ -1927,7 +1925,7 @@ export async function buildDynamicWorkflow(workflow[String(n)] = {class_type: 'SaveImage',inputs: {- images: [decodeId, 0],+ images: imageOut,filename_prefix: promptFilenamePrefix(params.prompt, false),},}diff --git a/src/api/hires-fix.ts b/src/api/hires-fix.tsindex c522c26f..9420d681 100644--- a/src/api/hires-fix.ts+++ b/src/api/hires-fix.ts@@ -241,7 +241,12 @@ export function applyNativeHiresFix(const terminalDecodeIds = new Set<string>()for (const [, node] of apiNodes(workflow)) {if (!IMAGE_OUTPUT_NODES.has(node.class_type)) continue- const imageRef = nodeInput(node, 'images')+ 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')if (!isComfyLinkRef(imageRef)) continueconst decodeId = String(imageRef[0])const decode = nodeAt(workflow, decodeId)diff --git a/src/components/create/experimental/Composer.tsx b/src/components/create/experimental/Composer.tsxindex 3cdc41f9..8e4ca267 100644--- a/src/components/create/experimental/Composer.tsx+++ b/src/components/create/experimental/Composer.tsx@@ -8,7 +8,7 @@ import { useMacMemoryGb } from '../../../lib/mac-memory'import { applyAspect } from '../../../lib/create-resolution'import { useCreateStore, MODEL_TYPE_DEFAULTS, EDIT_MAX_DENOISE, imageQualityLadder, type ImageQuality } from '../../../stores/createStore'import { classifyModel, resolveLocalOpPick } from '../../../api/comfyui'-import { readsEditStrength } from '../../../lib/edit-references'+import { readsEditStrength, EDIT_STRENGTH_HINT, EDIT_DENOISE_HINT } from '../../../lib/edit-references'import { useCreateExp } from './CreateContext'import { intentToJob } from '../../../lib/render/cloud-jobs'import { meterState } from '../../../lib/render/credits-meter'@@ -819,12 +819,12 @@ function LaneControls() {{meta.id === 'edit' && !mlxLocal && !qwenStrength && (<div className="w-44">- <Slider label="Edit strength" min={0.05} max={EDIT_MAX_DENOISE} step={0.05} value={Math.min(denoise, EDIT_MAX_DENOISE)} onChange={setDenoise} format={(v) => v.toFixed(2)} />+ <Slider label="Edit strength" min={0.05} max={EDIT_MAX_DENOISE} step={0.05} value={Math.min(denoise, EDIT_MAX_DENOISE)} onChange={setDenoise} format={(v) => v.toFixed(2)} hint={EDIT_DENOISE_HINT} /></div>)}{meta.id === 'edit' && qwenStrength && (<div className="w-44">- <Slider label="Edit strength" min={0.05} max={1} step={0.05} value={editStrength} onChange={setEditStrength} format={(v) => v.toFixed(2)} />+ <Slider label="Edit strength" min={0.05} max={1} step={0.05} value={editStrength} onChange={setEditStrength} format={(v) => v.toFixed(2)} hint={EDIT_STRENGTH_HINT} /></div>)}</div>diff --git a/src/components/create/experimental/ParamGroups.tsx b/src/components/create/experimental/ParamGroups.tsxindex 246f406c..92c56b9b 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 } from '../../../lib/edit-references'+import { readsEditStrength, EDIT_STRENGTH_HINT } 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'@@ -499,10 +499,10 @@ export function ParamGroups() {<Slider label="Denoise (raw)" min={0.05} max={1} step={0.05} value={s.denoise} onChange={s.setDenoise} format={(v) => v.toFixed(2)} />)}{(macEdit || (isEdit && !isCloud && readsEditStrength(laneType, laneModel))) && (- // 1.00 is the edit from the prompt alone, as before. Lower starts- // from the image and keeps more of it. A Qwen edit through ComfyUI- // reads the same field (B46).- <Slider label="Edit strength" min={0.05} max={1} step={0.05} value={s.editStrength} onChange={s.setEditStrength} format={(v) => v.toFixed(2)} />+ // 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} />)}{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/components/create/ui/Slider.tsx b/src/components/create/ui/Slider.tsxindex e7daa5a7..1e0a4788 100644--- a/src/components/create/ui/Slider.tsx+++ b/src/components/create/ui/Slider.tsx@@ -10,11 +10,13 @@ interface Props {/** Where the bar starts and a small mark sits, for a range around zero* (the LoRA strength). Without it the bar starts at min, as before. */origin?: number+ /** One short line under the slider: what its ends mean. */+ hint?: string}// Upgrade of src/components/settings/SliderControl.tsx — same neutral-grey fill// and thumb as the live app, plus a unit + tabular-mono value readout.-export function Slider({ label, value, min, max, step, onChange, unit, format, origin }: Props) {+export function Slider({ label, value, min, max, step, onChange, unit, format, origin, hint }: Props) {// Held inside the track: a value outside min..max (a stored setting from a// wider range) drew the bar and the thumb past the end of the slider.const at = (v: number) => max > min ? Math.min(100, Math.max(0, ((v - min) / (max - min)) * 100)) : 0@@ -50,6 +52,7 @@ export function Slider({ label, value, min, max, step, onChange, unit, format, ostyle={{ left: `calc(${pct}% - 7px)`, zIndex: 1, boxShadow: '0 1px 4px rgba(0,0,0,0.4)' }}/></div>+ {hint && <p className="t-micro text-gray-500 leading-snug">{hint}</p>}</div>)}diff --git a/src/lib/edit-references.ts b/src/lib/edit-references.tsindex 89a45194..7efcb4d6 100644--- a/src/lib/edit-references.ts+++ b/src/lib/edit-references.ts@@ -99,10 +99,16 @@ export const MANY_REFERENCES_LINE = 'With this many images, say what each one br* img2img `denoise`. Both Qwen edit families sample at denoise 1.0 from the* latent their encoder hands over, as the official templates do. Up to 3.0.7* 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):- * below 1 the run starts from the source at that denoise (dynamic-workflow.ts),- * so the slider is back and does what it says.+ * 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).*/+/** 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 an img2img edit (the denoise). */+export const EDIT_DENOISE_HINT = 'Higher lets the prompt change more. Lower keeps more of the original.'+export function readsEditStrength(type: ModelType | null | undefined, modelName: string): boolean {return type === 'qwenimage' || (type === 'qwenimage1' && isQwenImageEditModel(modelName))}