Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: keep the image info stamp off by default, recipe stays in the metadata (#14669)

Daniel Hanf76dd22958cb
diff --git a/studio/frontend/src/features/library/settings-store.ts b/studio/frontend/src/features/library/settings-store.ts
index ee963fdc0e1..c5b58515cfa 100644
--- a/studio/frontend/src/features/library/settings-store.ts
+++ b/studio/frontend/src/features/library/settings-store.ts
@@ -52,7 +52,8 @@ export const DEFAULT_LIBRARY_SETTINGS: LibrarySettings = {
showGeneratedMedia: true,
showFineTunes: true,
confirmDelete: true,
- imageInfoStamp: true,
+ // Opt-in: every download already carries the recipe in its metadata.
+ imageInfoStamp: false,
};
export const SUGGESTED_LIMITS = [20, 40, 80] as const;
@@ -84,7 +85,8 @@ interface LibrarySettingsState extends LibrarySettings {
}
/** v1 had one mediaTabs switch for Images, Videos and Audio together; before v3, Fine-tunes
- * always showed; before v4, Images showed only once there were images. */
+ * always showed; before v4, Images showed only once there were images; before v5, the info stamp
+ * defaulted on, and a saved `true` cannot be told apart from that default. */
export function migrateLibrarySettings(persisted: unknown, version: number): Record<string, unknown> {
const state = { ...(persisted as Record<string, unknown>) };
if (version < 2) {
@@ -100,6 +102,9 @@ export function migrateLibrarySettings(persisted: unknown, version: number): Rec
const tabs = state.tabs as Record<string, string> | undefined;
if (tabs?.images === "auto") state.tabs = { ...tabs, images: "always" };
}
+ if (version < 5) {
+ state.imageInfoStamp = false;
+ }
return state;
}
@@ -112,7 +117,7 @@ export const useLibrarySettingsStore = create<LibrarySettingsState>()(
}),
{
name: LIBRARY_SETTINGS_STORAGE_KEY,
- version: 4,
+ version: 5,
migrate: (persisted, version) =>
migrateLibrarySettings(persisted, version) as unknown as LibrarySettingsState,
},
diff --git a/studio/frontend/tests/image-metadata.test.ts b/studio/frontend/tests/image-metadata.test.ts
index 0fa85a94a2d..efca23cc998 100644
--- a/studio/frontend/tests/image-metadata.test.ts
+++ b/studio/frontend/tests/image-metadata.test.ts
@@ -295,7 +295,7 @@ test("the Images page wires downloads, the stamp setting and import", () => {
);
assert.match(page, /onDrop=\{onImportDrop\}/);
const store = readSrc("features/library/settings-store.ts");
- assert.match(store, /imageInfoStamp: true,/);
+ assert.match(store, /imageInfoStamp: false,/);
});
// ComfyUI's default text-to-image graph from its `prompt` chunk, seed wired through a primitive.
diff --git a/studio/frontend/tests/library-helpers.test.ts b/studio/frontend/tests/library-helpers.test.ts
index de8e87d0214..4532a270f16 100644
--- a/studio/frontend/tests/library-helpers.test.ts
+++ b/studio/frontend/tests/library-helpers.test.ts
@@ -316,6 +316,13 @@ test("the Images tab shows by default, and for settings saved before that", () =
assert.equal((migrateLibrarySettings({ mediaTabs: "auto" }, 1).tabs as typeof saved).videos, "auto");
});
+test("the info stamp is off by default, and for settings saved before that", () => {
+ assert.equal(DEFAULT_LIBRARY_SETTINGS.imageInfoStamp, false);
+ assert.equal(migrateLibrarySettings({ imageInfoStamp: true }, 4).imageInfoStamp, false);
+ assert.equal(migrateLibrarySettings({ mediaTabs: "auto" }, 1).imageInfoStamp, false);
+ assert.equal(migrateLibrarySettings({ imageInfoStamp: true }, 5).imageInfoStamp, true);
+});
+
test("a card's date shows on hover, on keyboard focus and always on touch", () => {
const date = /"([^"]*)",\s*\)}\s*>\s*\{formatCardTime/.exec(readSrc("features/library/components/library-cards.tsx"))?.[1].split(" ");
for (const reveal of [