[PR #3593] [MERGED] Fix Roleplay background selection #6007

Closed
opened 2026-10-23 04:06:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3593
Author: @SpicyMarinara
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3592-roleplay-backgrounds


📝 Commits (2)

  • 65be062 Fix Roleplay background selection
  • d191c33 Test Roleplay backgrounds on mobile

📊 Changes

3 files changed (+86 additions, -14 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+67 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+18 -14)

📄 Description

Linked issue

Closes #3592

Why this change

  • Selecting a background-library image in Roleplay immediately cleared it because the renderer sent a HEAD probe to a GET-only file route.

What changed

  • Preload selected Roleplay backgrounds through the browser image loader before crossfading them.
  • Ignore stale load callbacks so an older failed request cannot clear a newer selection.
  • Add a browser regression where GET succeeds and HEAD is rejected.
  • Record the fix in the v2.2.2 changelog.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated browser proof selects a managed background whose endpoint rejects HEAD, verifies GET loading, and confirms the selected image becomes the visible Roleplay background layer.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • No visual redesign; this restores the existing selected-background behavior.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3593 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/14/2026 **Status:** ✅ Merged **Merged:** 7/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3592-roleplay-backgrounds` --- ### 📝 Commits (2) - [`65be062`](https://github.com/Pasta-Devs/Marinara-Engine/commit/65be062504c5a8f0a3a8840990a887d92a9462b6) Fix Roleplay background selection - [`d191c33`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d191c338664ee76e2009accc436421c6b0600b6d) Test Roleplay backgrounds on mobile ### 📊 Changes **3 files changed** (+86 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+67 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+18 -14) </details> ### 📄 Description ## Linked issue Closes #3592 ## Why this change - Selecting a background-library image in Roleplay immediately cleared it because the renderer sent a HEAD probe to a GET-only file route. ## What changed - Preload selected Roleplay backgrounds through the browser image loader before crossfading them. - Ignore stale load callbacks so an older failed request cannot clear a newer selection. - Add a browser regression where GET succeeds and HEAD is rejected. - Record the fix in the v2.2.2 changelog. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated browser proof selects a managed background whose endpoint rejects HEAD, verifies GET loading, and confirms the selected image becomes the visible Roleplay background layer. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - No visual redesign; this restores the existing selected-background behavior. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:06:10 +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#6007
No description provided.