Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Temporarily hide Extend template

Bittid975cdaa230f
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 403ad8e..7c746e7 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -4,14 +4,13 @@ This alpha update adds LAN generation workers, Linux support, expanded color gra
## What's new
-- Extend and Character Sheet create a selectable image-bar entry as soon as generation is queued. Selecting it while generation runs shows the template's existing settings panel with the submitted settings. Finished results open in the normal image editor.
+- Character Sheet creates a selectable image-bar entry as soon as generation is queued. Selecting it while generation runs shows the template's existing settings panel with the submitted settings. Finished results open in the normal image editor.
- LAN workers: run the Slopus worker package on another Windows or Linux computer and pick it in the new **Settings → Workers** tab to generate there. Slopus finds workers on the local network automatically, or by address. Workers download generator weights from their download links themselves and use CUDA when available, with a Vulkan fallback; local-only files are sent from this computer, and finished videos, images and latents are saved in your project as usual.
- Slopus for Linux (x86_64): install the .deb or .rpm package, or run the AppImage, which updates itself. Local generation on Linux needs an NVIDIA GPU with CUDA 13.
- Every project now includes Video and Image tabs. Older video and image projects keep their saved content, and Export supports both output types.
- Renamed Colour correction to Basic Corrections and added temperature, tint, brightness, highlights, shadows, whites and blacks alongside exposure, contrast and saturation.
- Added Creative with eight built-in procedural looks and intensity, faded film, sharpen and vibrance controls; RGB and hue/saturation/luma curve editors; and shadow, midtone and highlight Color Wheels with individual lightness controls.
- Vignette now includes midpoint, roundness and feather, plus negative amounts for lighter edges. Grading settings are saved with the project and applied consistently in preview and export.
-- Extend an image from the Image toolbar's Template menu. Draw, move or resize a bounding box to generate beyond any edge, with optional prompts and references, steps and seed controls. The original is downscaled to make room for the extension, and its scaled pixels are preserved in a child image saved as lossless PNG. Output stays within the source pixel count and selected generation resolution, with dimensions in multiples of 32.
- Configure a character sheet from the Image toolbar's Template menu, with one reference-enabled prompt for clothing and other details, a resolution selection controlling sheet height (512–2048 px), and step count and seed controls, then select Execute. A square waist-up shot and three 9:16 full-body views are combined into one child image in the image bar. The front view provides a shared clothing reference for the other views; all four views share the selected step count and seed.
- Continue scenes from a selected scene's saved latents, with adjustable overlap and a choice of beginning or end. This replaces Previous scene in First & last frame.
- Share URL-based generator templates using Import and Export in Generator settings. Versioned `.slop` JSON bundles include GPU download variants, LoRAs and additional safetensors, preserve existing templates on import, and leave local paths out of shared files.
@@ -34,14 +33,12 @@ This alpha update adds LAN generation workers, Linux support, expanded color gra
## Fixes and improvements
- Click a work queue job to open its image, scene, reference, generator download or export. Navigation works across projects and preserves unsaved project edits.
-- Character Sheet and Extend offer Debug prompt when debug options are enabled. Character Sheet exposes the separate compiled prompt for each of its four views.
+- Character Sheet offers Debug prompt when debug options are enabled, exposing the separate compiled prompt for each of its four views.
- Updated the bundled SlopFab runtime to API 1.18 for refmod export and support for version-5 refmod bundles.
- LAN workers select weight downloads using their own GPU type and VRAM, even when a different variant is already downloaded on the client.
- Continue preserves the full joined video and audio from Slopfab. Adjacent source and continuation scenes use that shared decode in preview and export, preserving context across the cut. Regenerate older Continue scenes to apply the fix.
- The timeline playhead follows playback without waiting for editor updates.
- Character sheet prompts focus on each view's essential framing and orientation, with concise instructions for consistent identity and clothing.
-- Extend bounding box edges gently snap to nearby original image borders when drawing, moving or resizing. Box dimensions use 32-pixel increments and stay within the maximum generation resolution.
-- Extend generates all new space in one outpainting pass, holding the placed original as fixed context throughout generation so edges and corners can continue the same scene. It no longer repaints separate border strips and pastes the original over them.
- Removing a reference from a scene's last prompt citation now removes it from generation inputs and “Used by.” References selected as frame or motion inputs remain active.
- Copy and paste effect settings between matching effects from their **…** menus, including bypass state and LUT data.
- Add voice reference chips directly in a shot's Speech field. Voice guidance stays separate from the words spoken.
diff --git a/src/components/workspace/Extend.test.tsx b/src/components/workspace/Extend.test.tsx
index 44e0ab1..fbc8dc0 100644
--- a/src/components/workspace/Extend.test.tsx
+++ b/src/components/workspace/Extend.test.tsx
@@ -1,13 +1,11 @@
// @vitest-environment jsdom
import "@testing-library/jest-dom/vitest";
import { useState } from "react";
-import { cleanup, createEvent, fireEvent, render, screen, within } from "@testing-library/react";
+import { cleanup, createEvent, fireEvent, render, screen } from "@testing-library/react";
import { afterEach, expect, it, vi } from "vitest";
import { ImageEditor } from "./ImageEditor";
import { ExtendCanvas } from "./ExtendCanvas";
-import { typePrompt } from "./promptTestUtils";
import { parseProjectConfig } from "../../lib/project";
-import { EMPTY_ENGINE_SETTINGS, saveGeneratorTemplateSettings } from "../../lib/settings";
import * as persistence from "../../lib/persistence";
import fixture from "../../../fixtures/project-v1-image.json";
import type { ExtendBounds } from "../../lib/extendImage";
@@ -15,49 +13,13 @@ import type { ExtendBounds } from "../../lib/extendImage";
afterEach(() => { cleanup(); localStorage.clear(); vi.restoreAllMocks(); });
const source = { id: "source", name: "Source", kind: "image" as const, relativePath: "media/source.png", mimeType: "image/png", width: 400, height: 300, createdAt: "2026-10-04T00:00:00Z" };
-it("activates the box through Template, validates settings and executes without editing the source", () => {
- vi.spyOn(persistence, "isTauri").mockReturnValue(true);
+it("temporarily hides Extend from Template while keeping Character sheet available", () => {
vi.spyOn(persistence, "readMediaFileUrl").mockResolvedValue(null);
- const template = { id: "test", name: "Test", modelType: "minimax-h3" as const, defaultSteps: 20, attention: "sage2" as const, paths: { ...EMPTY_ENGINE_SETTINGS, transformer: "D:/h3.safetensors" } };
- saveGeneratorTemplateSettings({ defaultTemplateId: "test", templates: [template] });
const config = parseProjectConfig(fixture); config.assets = [source]; config.imageScene!.outputAssetId = source.id;
- const generate = vi.fn(), change = vi.fn();
- render(<ImageEditor config={config} folderPath="D:/Images" onChange={change} onGenerate={vi.fn()} onCancel={vi.fn()} onGenerateExtend={generate} />);
+ render(<ImageEditor config={config} folderPath="D:/Images" onChange={vi.fn()} onGenerate={vi.fn()} onCancel={vi.fn()} onGenerateExtend={vi.fn()} />);
fireEvent.click(screen.getByRole("button", { name: "Template" }));
- fireEvent.click(screen.getByRole("menuitem", { name: "Extend" }));
- expect(screen.getByLabelText("Extend bounding box tool")).toBeInTheDocument();
- expect(screen.queryByLabelText("Image placement canvas")).not.toBeInTheDocument();
- const panel = within(screen.getByRole("complementary", { name: "Extend settings" }));
- expect(panel.getByLabelText("Extend x")).toHaveValue(-104);
- expect(panel.getByLabelText("Extend width")).toHaveValue(608);
- expect(panel.getByLabelText("Extend width")).toHaveAttribute("step", "32");
- expect(panel.getByLabelText("Extend width")).toHaveAttribute("max", "3648");
- fireEvent.change(panel.getByLabelText("Extend width"), { target: { value: "619" } });
- expect(panel.getByLabelText("Extend width")).toHaveValue(608);
- fireEvent.change(panel.getByLabelText("Extend width"), { target: { value: "9999" } });
- expect(panel.getByLabelText("Extend width")).toHaveValue(3648);
- fireEvent.click(panel.getByRole("button", { name: "Reset box" }));
- fireEvent.keyDown(screen.getByRole("button", { name: "Move Extend box" }), { key: "ArrowLeft", shiftKey: true });
- expect(panel.getByLabelText("Extend x")).toHaveValue(-114);
- fireEvent.change(panel.getByLabelText("Extend x"), { target: { value: "400" } });
- expect(panel.getByRole("button", { name: "Execute" })).toBeDisabled();
- expect(panel.getByText("The box must overlap the original image.")).toBeInTheDocument();
- fireEvent.click(panel.getByRole("button", { name: "Reset box" }));
- fireEvent.change(panel.getByLabelText("Steps"), { target: { value: "31" } });
- fireEvent.change(panel.getByLabelText("Seed"), { target: { value: "0" } });
- typePrompt(panel.getByRole("textbox", { name: "Extend prompt" }), "A forest clearing");
- fireEvent.click(panel.getByRole("button", { name: "Execute" }));
- expect(generate).toHaveBeenCalledWith(expect.objectContaining({ id: template.id }), source.id,
- { bounds: { x: -104, y: -74, width: 608, height: 448 }, steps: 31, seed: 0, prompt: "A forest clearing" });
- expect(screen.getByRole("status")).toHaveTextContent("Extend: 384 × 288 px");
- expect(change).not.toHaveBeenCalled();
- fireEvent.click(panel.getByRole("button", { name: "Close template settings" }));
- expect(screen.queryByLabelText("Extend bounding box tool")).not.toBeInTheDocument();
- const normal = screen.getByLabelText("Image placement canvas").closest(".image-viewport")!;
- const frame = normal.querySelector<HTMLElement>(".image-frame")!;
- const zoom = frame.style.getPropertyValue("--image-zoom");
- fireEvent.wheel(normal, { deltaY: -100 });
- expect(frame.style.getPropertyValue("--image-zoom")).not.toBe(zoom);
+ expect(screen.queryByRole("menuitem", { name: "Extend" })).not.toBeInTheDocument();
+ expect(screen.getByRole("menuitem", { name: "Character sheet" })).toBeEnabled();
});
it("moves, resizes, redraws and cancels box drags in original pixel coordinates", () => {
diff --git a/src/components/workspace/ImageEditor.tsx b/src/components/workspace/ImageEditor.tsx
index 06fe18f..ee8f36e 100644
--- a/src/components/workspace/ImageEditor.tsx
+++ b/src/components/workspace/ImageEditor.tsx
@@ -18,7 +18,7 @@ import { ImageBar } from "./ImageBar";
import { CharacterSheetSettings } from "./CharacterSheetSettings";
import { ExtendSettings } from "./ExtendSettings";
import { ExtendCanvas } from "./ExtendCanvas";
-import { extendOutputDimensions, initialExtendBounds, type ExtendOptions } from "../../lib/extendImage";
+import { extendOutputDimensions, type ExtendOptions } from "../../lib/extendImage";
import type { CharacterSheetOptions } from "../../lib/characterSheet";
import { referenceMediaTypes } from "../../lib/referenceSelection";
import { DebugPromptDialog } from "./DebugPromptDialog";
@@ -582,11 +582,6 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
disabled={!output || (!output.relativePath && !output.sourcePath)}
onClick={(event) => templateMenu.open(event.currentTarget, [{ label: "Character sheet", icon: <Image16 />,
onSelect: () => { setExtendSourceId(null); setTemplateSourceId(output!.id); },
- }, { label: "Extend", icon: <Boxes16 />, disabled: !output?.width || !output?.height || Boolean(output?.imageDraft),
- onSelect: () => {
- setTemplateSourceId(null); setExtendSourceId(output!.id); setDrawKind(null); setContextMenu(null); setImageMenu(null);
- setExtendOptions({ bounds: initialExtendBounds(output!.width!, output!.height!), prompt: "", steps: scene.steps, seed: scene.seed });
- },
}], { "aria-label": "Image templates", placement: "bottom-end" })}>
Template <ChevronDown14 aria-hidden="true" />
</button>