Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Allow an empty prompt in the image gen form

[._.]/ Adam Eivy6ffe3df78e1f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index f88a4d952c..97b8f438e8 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -21,6 +21,8 @@
## Changed
+- **Image Gen accepts an empty prompt** — The prompt is no longer required: you can Generate with an empty prompt (and empty negative prompt), which is the natural case for image-to-image and unconditional/edit renders. Models that require a source image (edit-only) still prompt you for one.
+
- **[issue-912] Stronger, more compatible SynthID regeneration** — The gallery "Regenerate" pass (which overwrites Google's invisible SynthID watermark by round-tripping the image through a local FLUX model) gets four upgrades drawn from a survey of public watermark-removal tools. (1) Every regen now also nudges the render resolution down-and-back-up, not just oversized images — SynthID's invisible signal is keyed to resolution, so this resolution shift disrupts it for free on top of the model round-trip. (2) A new **Light (CPU)** option appears even on machines without a local FLUX runner: a fast, GPU-free spatial pass that disrupts the watermark directly in the pixels — clearly labeled as less reliable than the full round-trip, so installs that previously had no defeat path at all now have a best-effort one. (3) Each regenerated image now records and shows **how much it actually changed** (a "% changed" figure in the image's lineage row, with the full PSNR kept in the saved metadata), so you can see at a glance whether a pass stayed faithful or drifted — and it surfaces silent failures that used to be invisible. (4) The default denoise strength now adapts to the source: watermark-bearing generators (gpt-image / Gemini / Imagen) keep the conservative known-good setting, while your own local renders use a lighter, more faithful default. The original image is always kept; you can still tune strength and prompt by hand.
- **[issue-878] City photo mode freezes the scene for a clean shot** — When you enter photo mode, the city now holds still once the camera settles into its framing — particles, data streams, weather, and landmark pulses pause — so your postcard captures a deliberate, motion-free frame instead of whatever the animation happened to be doing. The camera still flies smoothly to each preset (and re-animates when you switch shots); the scene only freezes once it arrives. Leaving photo mode resumes the live, always-moving city.
diff --git a/client/src/pages/ImageGen.jsx b/client/src/pages/ImageGen.jsx
index 7fc97df765..37c0d7e369 100644
--- a/client/src/pages/ImageGen.jsx
+++ b/client/src/pages/ImageGen.jsx
@@ -813,7 +813,7 @@ export default function ImageGen() {
// completed images so the queued ones become visible as they land.
// Async-mode only; external is synchronous so submitting N would block N×.
const queueAdditional = async (count = 1) => {
- if (!prompt.trim() || count < 1) return;
+ if (count < 1) return;
const submissions = Array.from({ length: count }, () =>
submitGenerationPayload().then(({ data }) => data).catch((err) => err),
);
@@ -827,10 +827,10 @@ export default function ImageGen() {
const handleGenerate = async (e) => {
e?.preventDefault?.();
- if (!prompt.trim()) return;
- // The disabled submit button blocks clicks, but an Enter keypress in a
- // number input still fires onSubmit — gate here too so an edit-only model
- // without a source image hits the inline hint, not a server 400 toast.
+ // Empty prompt is allowed (e.g. i2i / unconditional generation). The disabled
+ // submit button blocks clicks, but an Enter keypress in a number input still
+ // fires onSubmit — gate here too so an edit-only model without a source image
+ // hits the inline hint, not a server 400 toast.
if (editImageMissing) return;
const batchN = isAsyncMode ? Math.max(1, batchCount) : 1;
if (generating) return queueAdditional(batchN);
@@ -1197,7 +1197,7 @@ export default function ImageGen() {
<div className="flex items-center gap-2 pt-1 flex-wrap">
<button
type="submit"
- disabled={!prompt.trim() || notConnected || editImageMissing}
+ disabled={notConnected || editImageMissing}
title={editImageMissing ? 'This image-edit model needs a source image — upload one below first' : undefined}
className="flex items-center gap-2 px-4 py-2 bg-port-accent hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed text-white text-sm font-medium rounded-lg min-h-[40px]"
>
diff --git a/server/routes/imageGen.js b/server/routes/imageGen.js
index 1cda7cbd57..83ee090b2c 100644
--- a/server/routes/imageGen.js
+++ b/server/routes/imageGen.js
@@ -52,7 +52,8 @@ const router = Router();
router.get('/style-presets', (_req, res) => res.json(STYLE_PRESETS));
const generateSchema = z.object({
- prompt: z.string().min(1).max(8000),
+ // Empty prompt allowed — i2i / edit / unconditional generation don't require one.
+ prompt: z.string().max(8000),
negativePrompt: z.string().max(8000).optional(),
// Per-request backend override. If omitted, the dispatcher uses
// `imageGen.mode` from settings.json.