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

address review: drop source filename/id from cleaned-image sidecar so listGallery uses the disk-derived filename

Adam Eivyb598c2818464
diff --git a/server/routes/imageGen.js b/server/routes/imageGen.js
index 9b1ebce30f..0f3639c605 100644
--- a/server/routes/imageGen.js
+++ b/server/routes/imageGen.js
@@ -353,7 +353,9 @@ router.post('/:filename/clean', asyncHandler(async (req, res) => {
const createdAt = new Date().toISOString();
// Strip `hidden` so a clean of a hidden source still surfaces in the gallery
// — cleaning is a deliberate user action that implies wanting to see the result.
- const { hidden: _hidden, ...sourceMetaForCleaned } = sourceMeta;
+ // Strip `filename`/`id` so listGallery's `...metadata` spread doesn't overwrite
+ // the disk-derived filename for the cleaned copy with the source's filename.
+ const { hidden: _hidden, filename: _srcFilename, id: _srcId, ...sourceMetaForCleaned } = sourceMeta;
const cleanedMeta = {
...sourceMetaForCleaned,
createdAt,