[PR #613] [MERGED] Fix Game Mode scene intro after asset failure #4694

Closed
opened 2026-10-22 04:09:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/613
Author: @cha1latte
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-604-game-scene-stall


📝 Commits (1)

  • 50e7fcf Fix game scene intro after asset failure

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 packages/client/src/components/game/GameSurface.tsx (+3 -2)

📄 Description

Linked issue

Closes #604

Why this change

  • Game Mode's first scene intro could remain stuck on the preparation screen after the API calls completed. The failure path I found is optional generated scene assets: the scene can already be marked processed, but a retained retry payload keeps the first-turn "Continue" gate blocked until switching chats remounts the surface and clears that local pending state.

What changed

  • Let the first-turn intro become ready when scene processing is complete and optional asset generation has failed.
  • Keep the pending asset retry payload available; the change only stops that failed optional payload from blocking scene entry.
  • Keep in-flight asset generation blocking as before, so successful image generation still gets a chance to finish before the intro continues.

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

Codex-run proof:

  • node scratch\issue-604-gate-proof.mjs passed before commit. It reproduced the old readiness gate as before=false for the state where scene processing is done, streaming is finished, optional asset generation failed, and the retry payload is retained. With this patch, the same state returns after=true.
  • Edge cases from the same proof: in-flight asset generation still blocks, and completed asset generation still allows Continue.
  • pnpm check passed in C:\tmp\Marinara-Engine-issue-604.

Manual verification notes

  • Optional manual follow-up: start a Game Mode scene with generated assets enabled and an image backend that times out/fails; after GM narration and scene processing complete, the intro should offer Continue instead of requiring a chat switch.

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)

No docs or release metadata changed.

UI evidence (if applicable)

N/A. This is a focused state-gate fix for a race/failure path; the machine proof covers the readiness condition directly.


🔄 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/613 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-604-game-scene-stall` --- ### 📝 Commits (1) - [`50e7fcf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/50e7fcf6d09661ed6022c439ab1271f5e6445f76) Fix game scene intro after asset failure ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameSurface.tsx` (+3 -2) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #604 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Game Mode's first scene intro could remain stuck on the preparation screen after the API calls completed. The failure path I found is optional generated scene assets: the scene can already be marked processed, but a retained retry payload keeps the first-turn "Continue" gate blocked until switching chats remounts the surface and clears that local pending state. ## What changed <!-- List the key changes in this PR --> - Let the first-turn intro become ready when scene processing is complete and optional asset generation has failed. - Keep the pending asset retry payload available; the change only stops that failed optional payload from blocking scene entry. - Keep in-flight asset generation blocking as before, so successful image generation still gets a chance to finish before the intro continues. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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` Codex-run proof: - `node scratch\issue-604-gate-proof.mjs` passed before commit. It reproduced the old readiness gate as `before=false` for the state where scene processing is done, streaming is finished, optional asset generation failed, and the retry payload is retained. With this patch, the same state returns `after=true`. - Edge cases from the same proof: in-flight asset generation still blocks, and completed asset generation still allows Continue. - `pnpm check` passed in `C:\tmp\Marinara-Engine-issue-604`. ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Optional manual follow-up: start a Game Mode scene with generated assets enabled and an image backend that times out/fails; after GM narration and scene processing complete, the intro should offer Continue instead of requiring a chat switch. ## 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) No docs or release metadata changed. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> N/A. This is a focused state-gate fix for a race/failure path; the machine proof covers the readiness condition directly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:53 +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#4694
No description provided.