[GH-ISSUE #3894] [Issue]: Empty Roleplay background shows broken-image placeholder in top-left corner #2106

Closed
opened 2026-10-21 05:45:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (Jul 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3894

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When a Roleplay chat has no background image selected, Chromium renders a small broken-image placeholder in the upper-left corner of the chat surface. It reproduces in both Google Chrome and a Microsoft Edge installed-app window, so it is not specific to the Edge app shell.

Expected behavior

A Roleplay chat without a background should show the normal empty/background surface with no image placeholder.

Actual behavior

A browser-native broken-image marker appears at the upper-left edge, underneath the Roleplay HUD controls.

Steps to reproduce

  1. Run Marinara Engine from current staging.
  2. Open or create a Roleplay chat with no chat background selected.
  3. Look at the upper-left corner of the Roleplay chat surface.
  4. Observe the small broken-image placeholder.

Environment

  • Marinara Engine version: 2.3.3 (staging commit e6e4bc162c2358b2c34844398152200a20a94342)
  • Install type: source
  • OS + version: Windows 25H2, build 26200.8875
  • Browser or app shell: Google Chrome 150.0.7871.129 and Microsoft Edge installed app 150.0.4078.83

Logs, screenshots, or video

Image

Additional context

This appears to be a regression from #3837 / commit bdcef26e9d7ae103bcbae20158144663252020d4, which changed the two CrossfadeBackground layers in ChatRoleplaySurface.tsx from <div> elements with CSS background images to <img> elements.

Both image slots are always rendered. An empty slot receives src={bgA ?? undefined} or src={bgB ?? undefined}; when the active slot is empty, its opacity can still be 1, exposing the browser's placeholder at the element's top-left corner.

The empty slot could remain mounted for crossfade behavior while being kept at opacity 0 until it has a URL.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jul 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3894 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When a Roleplay chat has no background image selected, Chromium renders a small broken-image placeholder in the upper-left corner of the chat surface. It reproduces in both Google Chrome and a Microsoft Edge installed-app window, so it is not specific to the Edge app shell. ## Expected behavior A Roleplay chat without a background should show the normal empty/background surface with no image placeholder. ## Actual behavior A browser-native broken-image marker appears at the upper-left edge, underneath the Roleplay HUD controls. ## Steps to reproduce 1. Run Marinara Engine from current `staging`. 2. Open or create a Roleplay chat with no chat background selected. 3. Look at the upper-left corner of the Roleplay chat surface. 4. Observe the small broken-image placeholder. ## Environment - Marinara Engine version: 2.3.3 (`staging` commit `e6e4bc162c2358b2c34844398152200a20a94342`) - Install type: source - OS + version: Windows 25H2, build 26200.8875 - Browser or app shell: Google Chrome 150.0.7871.129 and Microsoft Edge installed app 150.0.4078.83 ## Logs, screenshots, or video <img width="155" height="83" alt="Image" src="https://github.com/user-attachments/assets/90af5d52-1ef7-455d-9d63-c8109a054aea" /> ## Additional context This appears to be a regression from #3837 / commit `bdcef26e9d7ae103bcbae20158144663252020d4`, which changed the two `CrossfadeBackground` layers in `ChatRoleplaySurface.tsx` from `<div>` elements with CSS background images to `<img>` elements. Both image slots are always rendered. An empty slot receives `src={bgA ?? undefined}` or `src={bgB ?? undefined}`; when the active slot is empty, its opacity can still be `1`, exposing the browser's placeholder at the element's top-left corner. The empty slot could remain mounted for crossfade behavior while being kept at opacity `0` until it has a URL. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:25 +07:00
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-Engine#2106
No description provided.