[GH-ISSUE #216] [Issue]: Rejected World Maps artwork is silently reused and deleted Gallery links suppress replacement requests #108

Closed
opened 2026-10-20 17:24:27 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @thetopham on GitHub (Aug 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/216

Originally assigned to: @thetopham on GitHub.

Summary

In World Maps edit mode, rejecting generated artwork can leave the same Gallery image linked in the location's other artwork role. The batch action then reports fewer art requests than incomplete locations, silently copies the rejected image back, and may stop offering replacement generation entirely after the Gallery image is deleted.

Affected package

World Maps (hierarchical-maps), v1.3.0.

Expected behavior

  • Removing/rejecting a generated image should not silently restore that image during the next batch artwork run.
  • If one Gallery image backs both the location reference and child-map background, the UI should make that relationship explicit and offer a clear reject/regenerate action for both roles.
  • A Gallery ID that no longer resolves should count as missing artwork and remain eligible for replacement generation.
  • The action label should distinguish incomplete locations from actual provider generation requests.

Actual behavior

  • The hover text can say that four locations need artwork while the action offers only one art request.
  • Running the batch can restore previously rejected images for the other locations.
  • Deleting those images from the Gallery prevents the visible restoration, but the dangling artwork IDs suppress the missing-artwork request.
  • Restarting Marinara Engine does not repair the saved dangling state.

Steps to reproduce

  1. Create a World Map with several map-style locations and generate artwork for them.
  2. In edit mode, remove unwanted generated location artwork while the same Gallery image remains assigned to the location's child-map background.
  3. Observe that the hover text counts all incomplete locations, but the button counts only locations with neither artwork ID.
  4. Run the artwork action.
  5. Observe that the retained background IDs are copied back into the missing reference slots, restoring rejected artwork.
  6. Delete the unwanted images from the Gallery and repeat.
  7. Observe that the now-dangling IDs are still treated as present, so replacement requests do not reappear.

Environment

  • Marinara Engine version: v2.4.1
  • Engine builds: a89b71f and 6a6fccb
  • Package version: World Maps v1.3.0
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

The reporter supplied a clip showing the count mismatch and restored artwork. It is not attached here.

Additional context

Current staging source explains the cycle:

  • missingArtworkLocations counts a location when either required role is absent, while artworkImagesToGenerate counts only locations where both IDs are absent.
  • fillMissingArtwork reuses either surviving ID before generating anything.
  • LocationInspector can detect an ID whose Gallery image is missing, but the batch calculation only checks whether the ID string is truthy.

Not saving before a restart can independently restore the last saved draft; that is not the core reproduction above.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/216 Originally assigned to: @thetopham on GitHub. ## Summary In World Maps edit mode, rejecting generated artwork can leave the same Gallery image linked in the location's other artwork role. The batch action then reports fewer art requests than incomplete locations, silently copies the rejected image back, and may stop offering replacement generation entirely after the Gallery image is deleted. ## Affected package World Maps (`hierarchical-maps`), v1.3.0. ## Expected behavior - Removing/rejecting a generated image should not silently restore that image during the next batch artwork run. - If one Gallery image backs both the location reference and child-map background, the UI should make that relationship explicit and offer a clear reject/regenerate action for both roles. - A Gallery ID that no longer resolves should count as missing artwork and remain eligible for replacement generation. - The action label should distinguish incomplete locations from actual provider generation requests. ## Actual behavior - The hover text can say that four locations need artwork while the action offers only one art request. - Running the batch can restore previously rejected images for the other locations. - Deleting those images from the Gallery prevents the visible restoration, but the dangling artwork IDs suppress the missing-artwork request. - Restarting Marinara Engine does not repair the saved dangling state. ## Steps to reproduce 1. Create a World Map with several map-style locations and generate artwork for them. 2. In edit mode, remove unwanted generated location artwork while the same Gallery image remains assigned to the location's child-map background. 3. Observe that the hover text counts all incomplete locations, but the button counts only locations with neither artwork ID. 4. Run the artwork action. 5. Observe that the retained background IDs are copied back into the missing reference slots, restoring rejected artwork. 6. Delete the unwanted images from the Gallery and repeat. 7. Observe that the now-dangling IDs are still treated as present, so replacement requests do not reappear. ## Environment - Marinara Engine version: v2.4.1 - Engine builds: a89b71f and 6a6fccb - Package version: World Maps v1.3.0 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video The reporter supplied a clip showing the count mismatch and restored artwork. It is not attached here. ## Additional context Current `staging` source explains the cycle: - [`missingArtworkLocations`](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx#L704-L716) counts a location when either required role is absent, while `artworkImagesToGenerate` counts only locations where both IDs are absent. - [`fillMissingArtwork`](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx#L863-L892) reuses either surviving ID before generating anything. - [`LocationInspector`](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocationInspector.tsx#L284-L306) can detect an ID whose Gallery image is missing, but the batch calculation only checks whether the ID string is truthy. Not saving before a restart can independently restore the last saved draft; that is not the core reproduction above. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:24:27 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#108
No description provided.