Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(canvas): keep output settings on lazy boundary

Josh Corbett15bcef3107ee
diff --git a/invokeai/frontend/webv2/performance/architecture-baseline.json b/invokeai/frontend/webv2/performance/architecture-baseline.json
index f4e65dd2b9..bd4833b36e 100644
--- a/invokeai/frontend/webv2/performance/architecture-baseline.json
+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json
@@ -2,12 +2,12 @@
"build": {
"launchpad": {
"baseline": {
- "brotliBytes": 837395,
+ "brotliBytes": 837433,
"cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 836375,
+ "gzipBytes": 836417,
"imageRawBytes": 156376,
- "initialRawBytes": 1947050,
+ "initialRawBytes": 1947147,
"largestAssetRawBytes": 746355,
"otherAssetRawBytes": 0,
"ownedRawBytes": 69114,
@@ -287,12 +287,12 @@
]
},
"limits": {
- "brotliBytes": 845769,
+ "brotliBytes": 845808,
"cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 844739,
+ "gzipBytes": 844782,
"imageRawBytes": 157940,
- "initialRawBytes": 1966521,
+ "initialRawBytes": 1966619,
"largestAssetRawBytes": 753819,
"otherAssetRawBytes": 0,
"ownedRawBytes": 69114,
@@ -305,12 +305,12 @@
},
"editor": {
"baseline": {
- "brotliBytes": 1050685,
+ "brotliBytes": 1050651,
"cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 1046295,
+ "gzipBytes": 1046347,
"imageRawBytes": 156376,
- "initialRawBytes": 2585403,
+ "initialRawBytes": 2586287,
"largestAssetRawBytes": 746355,
"otherAssetRawBytes": 0,
"ownedRawBytes": 115755,
@@ -466,7 +466,6 @@
"source:src/features/generation/core/canvas/addRegionalGuidance.ts",
"source:src/features/generation/core/canvas/compileCanvasGraph.ts",
"source:src/features/generation/core/canvas/controlValidation.ts",
- "source:src/features/generation/core/canvas/types.ts",
"source:src/features/generation/core/catalogSearch.ts",
"source:src/features/generation/core/componentCompatibility.ts",
"source:src/features/generation/core/conditioningRebalance.ts",
@@ -865,12 +864,12 @@
]
},
"limits": {
- "brotliBytes": 1061192,
+ "brotliBytes": 1061158,
"cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 1056758,
+ "gzipBytes": 1056811,
"imageRawBytes": 157940,
- "initialRawBytes": 2611258,
+ "initialRawBytes": 2612150,
"largestAssetRawBytes": 753819,
"otherAssetRawBytes": 0,
"ownedRawBytes": 115755,
@@ -882,7 +881,7 @@
"source": "src/app/WorkbenchApp.tsx"
}
},
- "capturedAt": "2026-08-23",
+ "capturedAt": "2026-08-24",
"developmentInvalidation": {
"platformUiBarrel": {
"specifier": "@platform/ui",
diff --git a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.ts b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.ts
index 12f197a401..599ff4bcb5 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.test.ts
@@ -15,7 +15,6 @@ import type { RegionalGuidanceInput } from './addRegionalGuidance';
import type { CanvasCompileMode, CanvasCompositingSettings, Rect } from './types';
import { compileCanvasGraph } from './compileCanvasGraph';
-import { DEFAULT_CANVAS_COMPOSITING } from './types';
const sd1Model: MainModelConfig = { base: 'sd-1', key: 'sd1-model', name: 'SD 1.5', type: 'main' };
const sd2Model: MainModelConfig = { base: 'sd-2', key: 'sd2-model', name: 'SD 2', type: 'main' };
@@ -97,6 +96,18 @@ const COMPONENT_OVERRIDES: Partial<Record<string, Partial<GenerateSettings>>> =
const bbox: Rect = { height: 1024, width: 768, x: 128, y: 64 };
+const COMPOSITING_FIXTURE: CanvasCompositingSettings = {
+ coherenceEdgeSize: 16,
+ coherenceMinDenoise: 0,
+ coherenceMode: 'Gaussian Blur',
+ infillColorValue: { a: 1, b: 0, g: 0, r: 0 },
+ infillMethod: 'lama',
+ infillPatchmatchDownscaleSize: 1,
+ infillTileSize: 32,
+ maskBlur: 16,
+ outputOnlyMaskedRegions: false,
+};
+
const compile = (
model: GenerateModelConfig,
mode: CanvasCompileMode,
@@ -118,9 +129,11 @@ const compile = (
bbox: overrides.bbox ?? bbox,
compositeImageName:
'compositeImageName' in overrides ? (overrides.compositeImageName ?? null) : 'canvas-composite.png',
- compositing: overrides.compositing
- ? { ...DEFAULT_CANVAS_COMPOSITING, ...overrides.compositing }
- : DEFAULT_CANVAS_COMPOSITING,
+ compositing: {
+ ...COMPOSITING_FIXTURE,
+ outputOnlyMaskedRegions: overrides.outputOnlyMaskedRegions ?? false,
+ ...overrides.compositing,
+ },
controlLayers: overrides.controlLayers,
regionalGuidance: overrides.regionalGuidance,
destination: overrides.destination ?? 'canvas',
@@ -129,7 +142,6 @@ const compile = (
mode,
model,
noiseMaskImageName: overrides.noiseMaskImageName ?? null,
- outputOnlyMaskedRegions: overrides.outputOnlyMaskedRegions ?? false,
projectSettings: PROJECT_SETTINGS,
settings: settingsFor(model, {
...COMPONENT_OVERRIDES[model.base],
@@ -461,10 +473,10 @@ describe('compileCanvasGraph', () => {
compileCanvasGraph({
bbox,
compositeImageName: null,
+ compositing: COMPOSITING_FIXTURE,
destination: 'canvas',
mode: 'txt2img',
model: fluxModel,
- outputOnlyMaskedRegions: false,
projectSettings: PROJECT_SETTINGS,
settings: settingsFor(fluxModel),
strength: 0.6,
diff --git a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
index 5be2414e68..9687c6b28a 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
@@ -42,7 +42,6 @@ import type {
import { addControlLayers } from './addControlLayers';
import { addRegionalGuidance, isRegionalGuidanceSupportedForBase } from './addRegionalGuidance';
-import { DEFAULT_CANVAS_COMPOSITING } from './types';
/**
* The backend image-to-latents (encode) node type per supported base. sd-1 /
@@ -304,14 +303,12 @@ const graftMaskTail = (
initialImageName: string;
compositing: CanvasCompositingSettings;
destination: CompileCanvasGraphInput['destination'];
- outputOnlyMaskedRegions: boolean;
/** Either a fixed mask image field or an edge-fed source node. */
gradientMaskImage?: { image_name: string };
gradientMaskEdge?: { node: BackendInvocationContract; field: string };
}
): void => {
- const { compositing, denoise, destination, i2lType, initialImageName, outputOnlyMaskedRegions, settings, vaeSource } =
- args;
+ const { compositing, denoise, destination, i2lType, initialImageName, settings, vaeSource } = args;
// Demote the base decode to an intermediate `canvas_l2i`; the final mask or
// composite node claims `canvas_output`.
@@ -347,7 +344,7 @@ const graftMaskTail = (
});
addEdge(graph, gradientMask, 'expanded_mask_area', expandMask, 'mask');
- const output = outputOnlyMaskedRegions
+ const output = compositing.outputOnlyMaskedRegions
? addNode(graph, {
id: 'canvas_output',
invert_mask: true,
@@ -362,7 +359,7 @@ const graftMaskTail = (
type: 'invokeai_img_blend',
use_cache: false,
});
- addEdge(graph, l2i, 'image', output, outputOnlyMaskedRegions ? 'image' : 'layer_upper');
+ addEdge(graph, l2i, 'image', output, compositing.outputOnlyMaskedRegions ? 'image' : 'layer_upper');
addEdge(graph, expandMask, 'image', output, 'mask');
// The base builder wired core_metadata → the decode's `metadata`; `renameNode`
@@ -439,7 +436,6 @@ const graftInpaint = (
i2lType,
initialImageName,
model,
- outputOnlyMaskedRegions: input.outputOnlyMaskedRegions,
settings: input.settings,
vaeSource,
});
@@ -504,7 +500,6 @@ const graftOutpaint = (
i2lType,
initialImageName,
model,
- outputOnlyMaskedRegions: input.outputOnlyMaskedRegions,
settings: input.settings,
vaeSource,
});
@@ -541,7 +536,7 @@ export const compileCanvasGraph = (input: CompileCanvasGraphInput): CompiledCanv
randDevice: input.randDevice ?? (projectSettings.useCpuNoise ? 'cpu' : 'cuda'),
};
const backendGraph = builder(settings, model, outputIsIntermediate, runtimeProjectSettings);
- const compositing = input.compositing ?? DEFAULT_CANVAS_COMPOSITING;
+ const { compositing } = input;
// Validation above guarantees the composite/mask images required per mode.
if (mode === 'img2img') {
diff --git a/invokeai/frontend/webv2/src/features/generation/core/canvas/types.ts b/invokeai/frontend/webv2/src/features/generation/core/canvas/types.ts
index 59b07d83de..895ef60b0a 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/types.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/types.ts
@@ -28,19 +28,10 @@ export interface CanvasCompositingSettings {
coherenceMode: CanvasCoherenceMode;
coherenceMinDenoise: number;
coherenceEdgeSize: number;
+ /** Preserve transparency outside the generated mask instead of compositing over the source image. */
+ outputOnlyMaskedRegions: boolean;
}
-export const DEFAULT_CANVAS_COMPOSITING: CanvasCompositingSettings = {
- coherenceEdgeSize: 16,
- coherenceMinDenoise: 0,
- coherenceMode: 'Gaussian Blur',
- infillColorValue: { a: 1, b: 0, g: 0, r: 0 },
- infillMethod: 'lama',
- infillPatchmatchDownscaleSize: 1,
- infillTileSize: 32,
- maskBlur: 16,
-};
-
/** The legacy-parity generation modes a canvas invoke resolves to. */
export type CanvasGenerationMode = 'txt2img' | 'img2img' | 'inpaint' | 'outpaint';
@@ -82,10 +73,8 @@ export interface CompileCanvasGraphInput {
noiseMaskImageName?: string | null;
/** Denoising strength in (0, 1]. Consulted for `img2img` / `inpaint` / `outpaint`. */
strength: number;
- /** When true, preserve alpha outside the generated mask instead of compositing over the source image. */
- outputOnlyMaskedRegions: boolean;
- /** Infill / coherence / mask-blur knobs. Defaults applied by the reader. */
- compositing?: CanvasCompositingSettings;
+ /** Resolved infill / coherence / mask-blur knobs and output-compositing policy. */
+ compositing: CanvasCompositingSettings;
/**
* Valid, already-resolved control layers (each with its own uploaded composite
* image name). The executor filters + composites these; the compiler only
diff --git a/invokeai/frontend/webv2/src/workbench/invocation.test.ts b/invokeai/frontend/webv2/src/workbench/invocation.test.ts
index 97e270bc43..f0aa21431a 100644
--- a/invokeai/frontend/webv2/src/workbench/invocation.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/invocation.test.ts
@@ -383,7 +383,7 @@ describe('submitResolvedInvocation', () => {
// The resolved destination rides through so a Canvas source can target the Gallery.
expect(prepareCanvasInvocation.mock.calls[0]?.[0]).toMatchObject({
destination: 'gallery',
- outputOnlyMaskedRegions: false,
+ compositing: expect.objectContaining({ outputOnlyMaskedRegions: false }),
owner,
projectId: project.id,
});
diff --git a/invokeai/frontend/webv2/src/workbench/invocationSubmit.ts b/invokeai/frontend/webv2/src/workbench/invocationSubmit.ts
index 5e69848ba2..0909319fa3 100644
--- a/invokeai/frontend/webv2/src/workbench/invocationSubmit.ts
+++ b/invokeai/frontend/webv2/src/workbench/invocationSubmit.ts
@@ -28,7 +28,6 @@ import { isAccountScopeCurrent } from '@platform/state/accountLifecycle';
import type { PrepareCanvasInvocationArgs } from './widgets/canvas/invoke/prepareCanvasInvocation';
import type { WorkbenchCommands } from './workbenchStore';
-import { readCanvasOutputOnlyMaskedRegions } from './widgets/canvas/canvasSettings';
import { readCanvasCompositingSettings } from './widgets/canvas/invoke/canvasCompositing';
import { readCanvasDenoisingStrength } from './widgets/canvas/invoke/canvasStrength';
import { getProjectWidgetValues } from './widgetState';
@@ -180,7 +179,6 @@ const dispatchResolvedInvocation = (
formatControlLayerError,
generateValues: getProjectWidgetValues(project, 'generate'),
models,
- outputOnlyMaskedRegions: readCanvasOutputOnlyMaskedRegions(getProjectWidgetValues(project, 'canvas')),
owner,
positivePrompts,
projectId: project.id,
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/canvasSettings.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/canvasSettings.ts
index 6eefba3ebf..bfccef4a14 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/canvasSettings.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/canvasSettings.ts
@@ -22,6 +22,8 @@
* no React, no engine imports — unit-testable in node.
*/
+import { CANVAS_COMPOSITING_KEYS, DEFAULT_CANVAS_COMPOSITING } from './invoke/canvasCompositing';
+
/** Which engine boolean store a setting feeds (settings without one are consumed elsewhere in the frontend). */
export type CanvasSettingStore =
| 'checkerboard'
@@ -46,12 +48,12 @@ export const CANVAS_RULE_OF_THIRDS_KEY = 'ruleOfThirds';
export const CANVAS_SNAP_TO_GRID_KEY = 'snapToGrid';
export const CANVAS_CLIP_TO_BBOX_KEY = 'clipToBbox';
export const CANVAS_SHOW_PROGRESS_KEY = 'showProgressOnCanvas';
-export const CANVAS_OUTPUT_ONLY_MASKED_REGIONS_KEY = 'outputOnlyMaskedRegions';
+export const CANVAS_OUTPUT_ONLY_MASKED_REGIONS_KEY = CANVAS_COMPOSITING_KEYS.outputOnlyMaskedRegions;
const OUTPUT_ONLY_MASKED_REGIONS_SETTING: CanvasBooleanSetting = {
// Legacy parity: generation results keep alpha outside the expanded mask
// unless the user explicitly asks to composite them over the source image.
- defaultValue: true,
+ defaultValue: DEFAULT_CANVAS_COMPOSITING.outputOnlyMaskedRegions,
key: CANVAS_OUTPUT_ONLY_MASKED_REGIONS_KEY,
labelKey: 'widgets.canvas.settings.outputOnlyMaskedRegions',
section: 'behavior',
@@ -166,10 +168,6 @@ export const readCanvasBooleanSetting = (
return typeof raw === 'boolean' ? raw : setting.defaultValue;
};
-/** Reads whether generation output should retain transparency outside the mask. */
-export const readCanvasOutputOnlyMaskedRegions = (values: Record<string, unknown> | undefined): boolean =>
- readCanvasBooleanSetting(values, OUTPUT_ONLY_MASKED_REGIONS_SETTING);
-
/** Resolves every canvas setting from persisted values into a key→boolean map. */
export const resolveCanvasSettings = (values: Record<string, unknown> | undefined): ResolvedCanvasSettings => {
const resolved: ResolvedCanvasSettings = {};
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.test.ts
index 0c77df6f97..e8d4f3a5a6 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.test.ts
@@ -17,6 +17,7 @@ describe('readCanvasCompositingSettings', () => {
infillPatchmatchDownscaleSize: 1,
infillTileSize: 32,
maskBlur: 16,
+ outputOnlyMaskedRegions: true,
});
});
@@ -27,12 +28,14 @@ describe('readCanvasCompositingSettings', () => {
coherenceMode: 'Box Blur',
infillMethod: 'patchmatch',
maskBlur: 8,
+ outputOnlyMaskedRegions: false,
});
expect(settings.coherenceEdgeSize).toBe(32);
expect(settings.coherenceMinDenoise).toBe(0.2);
expect(settings.coherenceMode).toBe('Box Blur');
expect(settings.infillMethod).toBe('patchmatch');
expect(settings.maskBlur).toBe(8);
+ expect(settings.outputOnlyMaskedRegions).toBe(false);
});
it('falls back to defaults for invalid enum values', () => {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.ts
index 63aba28df4..b92ca15e4c 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/canvasCompositing.ts
@@ -1,18 +1,18 @@
/**
- * Canvas compositing settings — the infill / coherence / mask-blur knobs a
- * canvas inpaint or outpaint invoke exposes.
+ * Canvas compositing settings — the infill / coherence / mask-blur knobs and
+ * output-compositing policy used by canvas inpaint and outpaint invocations.
*
* Like {@link import('./canvasStrength').readCanvasDenoisingStrength}, these
* values are persisted per-project inside the canvas widget's own state values
* (`widgetInstances['canvas'].state.values`), so they survive reloads and ride
- * along in queue snapshots. The generate widget's compositing section
- * (`widgets/generate/GenerateCanvasCompositingSection`) reads/writes them, and
- * `prepareCanvasInvocation` reads them back — defaulted + clamped — to thread
- * into the pure graph compiler.
+ * along in queue snapshots. The generate widget's compositing section owns the
+ * numeric controls; the canvas settings menu owns the masked-only output flag.
+ * `prepareCanvasInvocation` reads them together — defaulted + clamped — and
+ * threads one generation-facing contract into the pure graph compiler.
*
- * Defaults mirror the legacy params slice (`features/controlLayers/store/types.ts`
- * `getInitialParamsState`): infill `lama`, mask blur 16, coherence Gaussian Blur
- * / edge 16 / min-denoise 0. Pure data + a reader; no React, no engine.
+ * Defaults mirror the legacy params/canvas-settings slices: infill `lama`, mask
+ * blur 16, coherence Gaussian Blur / edge 16 / min-denoise 0, and masked-only
+ * output enabled. Pure data + a reader; no React, no engine.
*/
/** The infill methods the outpaint graph can request (legacy `zInfillMethod`). */
@@ -39,6 +39,8 @@ export interface CanvasCompositingSettings {
coherenceMode: CanvasCoherenceMode;
coherenceMinDenoise: number;
coherenceEdgeSize: number;
+ /** Preserve transparency outside the generated mask instead of compositing over the source image. */
+ outputOnlyMaskedRegions: boolean;
}
/** Persisted keys inside the canvas widget's `state.values`. */
@@ -51,9 +53,10 @@ export const CANVAS_COMPOSITING_KEYS = {
infillPatchmatchDownscaleSize: 'infillPatchmatchDownscaleSize',
infillTileSize: 'infillTileSize',
maskBlur: 'maskBlur',
+ outputOnlyMaskedRegions: 'outputOnlyMaskedRegions',
} as const;
-/** Legacy-parity defaults (`getInitialParamsState`). */
+/** Legacy-parity compositing and output defaults. */
export const DEFAULT_CANVAS_COMPOSITING: CanvasCompositingSettings = {
coherenceEdgeSize: 16,
coherenceMinDenoise: 0,
@@ -63,6 +66,7 @@ export const DEFAULT_CANVAS_COMPOSITING: CanvasCompositingSettings = {
infillPatchmatchDownscaleSize: 1,
infillTileSize: 32,
maskBlur: 16,
+ outputOnlyMaskedRegions: true,
};
/** Inclusive UI/value bounds for the numeric compositing knobs. */
@@ -110,6 +114,7 @@ export const readCanvasCompositingSettings = (
const d = DEFAULT_CANVAS_COMPOSITING;
const coherenceMode = v[CANVAS_COMPOSITING_KEYS.coherenceMode];
const infillMethod = v[CANVAS_COMPOSITING_KEYS.infillMethod];
+ const outputOnlyMaskedRegions = v[CANVAS_COMPOSITING_KEYS.outputOnlyMaskedRegions];
return {
coherenceEdgeSize: clampInt(
v[CANVAS_COMPOSITING_KEYS.coherenceEdgeSize],
@@ -129,5 +134,7 @@ export const readCanvasCompositingSettings = (
),
infillTileSize: clampInt(v[CANVAS_COMPOSITING_KEYS.infillTileSize], 16, 256, d.infillTileSize),
maskBlur: clampInt(v[CANVAS_COMPOSITING_KEYS.maskBlur], 0, CANVAS_MASK_BLUR_MAX, d.maskBlur),
+ outputOnlyMaskedRegions:
+ typeof outputOnlyMaskedRegions === 'boolean' ? outputOnlyMaskedRegions : d.outputOnlyMaskedRegions,
};
};
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts
index 7e24f61b74..f2e2b80130 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts
@@ -253,7 +253,10 @@ const makeHarness = (options: HarnessOptions = {}): Harness => {
const deps: RunCanvasInvocationDeps = {
composeForGeneration: (composeOptions) => composeForGeneration(host, composeOptions),
- compositing: DEFAULT_CANVAS_COMPOSITING,
+ compositing: {
+ ...DEFAULT_CANVAS_COMPOSITING,
+ outputOnlyMaskedRegions: options.outputOnlyMaskedRegions ?? true,
+ },
destination: options.destination ?? 'canvas',
commands: {
generation: {
@@ -267,7 +270,6 @@ const makeHarness = (options: HarnessOptions = {}): Harness => {
generateValues: generateValuesFor(model),
inFlight: options.inFlight ?? new Set<string>(),
models: options.models,
- outputOnlyMaskedRegions: options.outputOnlyMaskedRegions ?? true,
projectId: options.projectId ?? 'project-1',
projectSettings: { useCpuNoise: true },
signal: new AbortController().signal,
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts
index ca044d868a..1a4fe8c07d 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.ts
@@ -119,10 +119,8 @@ export interface RunCanvasInvocationDeps {
randDevice?: string;
/** Persisted denoising strength (already defaulted + clamped). Used for every image mode. */
strength: number;
- /** Persisted compositing settings (infill / coherence / mask blur), defaulted + clamped. */
+ /** Persisted compositing settings (infill / coherence / mask blur / output policy), defaulted + clamped. */
compositing: CanvasCompositingSettings;
- /** Preserve transparency outside the generated mask instead of compositing over the source image. */
- outputOnlyMaskedRegions: boolean;
commands: Pick<WorkbenchCommands, 'generation' | 'notifications'>;
/** Localizes a control-layer rejection; defaults to the English validation sentence. */
formatControlLayerError?: (code: ControlValidationReason, layerName: string) => string;
@@ -391,7 +389,6 @@ export const runCanvasInvocation = async (deps: RunCanvasInvocationDeps): Promis
mode,
model,
noiseMaskImageName: composites.noiseMaskImageName,
- outputOnlyMaskedRegions: deps.outputOnlyMaskedRegions,
projectSettings: deps.projectSettings,
randDevice: deps.randDevice,
regionalGuidance: regions.toGraphInputs(composites.regionalMaskImages),
@@ -460,8 +457,6 @@ export interface PrepareCanvasInvocationArgs {
* (`readCanvasCompositingSettings`). Falls back to legacy defaults when omitted.
*/
compositing?: CanvasCompositingSettings;
- /** Preserve transparency outside the generated mask. Defaults to legacy behavior (enabled). */
- outputOnlyMaskedRegions?: boolean;
commands: Pick<WorkbenchCommands, 'generation' | 'notifications'>;
/** Localizes a control-layer rejection; defaults to the English validation sentence. */
formatControlLayerError?: (code: ControlValidationReason, layerName: string) => string;
@@ -496,7 +491,6 @@ export const prepareCanvasInvocation = async (args: PrepareCanvasInvocationArgs)
inFlight: inFlightProjects,
inFlightKey: `${owner.epoch}:${args.projectId}`,
models: args.models,
- outputOnlyMaskedRegions: args.outputOnlyMaskedRegions ?? true,
projectId: args.projectId,
projectSettings: args.projectSettings,
randDevice: resolveRandDeviceMetadata(args.projectSettings.useCpuNoise, getGenerationDevicesSnapshot().options),