[PR #8526] [MERGED] Game: play the intro sequence only at the opening, never replay played directions #8654

Closed
opened 2026-11-07 16:46:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8526
Author: @kolacheee
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @kolacheee

Base: staging ← Head: fix/game-intro-replay


📝 Commits (2)

  • 234b12b fix(game): play a game's intro sequence only at its opening, never replay played directions
  • 68dcfd4 Merge branch 'staging' into fix/game-intro-replay

📊 Changes

2 files changed (+32 additions, -3 deletions)

View changed files

📝 packages/client/src/components/game/GameSurface.tsx (+7 -3)
➕ scripts/regressions/game-intro-sequence-replay.regression.ts (+25 -0)

📄 Description

Linked issue

Found in a two-player Game room playtest; no separate issue was opened.

Why this change

After a Continue story, the host's Game screen went black, with only "Skip effects" showing, until that was pressed. The reply had no [direction:] tags. The host's Game screen had been mounted after the Room view, so it treated the game as a first load and played the blueprint's intro sequence, whose cinematic hides the game's UI. Directions that had played out also stayed set, so a direction engine that remounted played them again.

What changed

  • The blueprint intro sequence plays only in a game nobody has spoken in yet. A restored session already skipped it; now a game with any user message does too.
  • When the direction engine reports it has finished playing, its directions are cleared, so they never replay.

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

New game-intro-sequence-replay regression. Client tsc and eslint (rules-of-hooks) pass on the changed file. pnpm check wasn't run in full here.

Manual verification notes

Checked in a two-machine room playtest on the same change in our working branch: Continue story after a fight, then 10 switches between the Room and Game views. The screen never went black, and Skip effects never stuck.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

🔄 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/8526 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `fix/game-intro-replay` --- ### 📝 Commits (2) - [`234b12b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/234b12ba0e9ff82bcc8045398051593be07df1f4) fix(game): play a game's intro sequence only at its opening, never replay played directions - [`68dcfd4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/68dcfd4db6cabc27a534534aecf84cdaa84e0a6a) Merge branch 'staging' into fix/game-intro-replay ### 📊 Changes **2 files changed** (+32 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameSurface.tsx` (+7 -3) ➕ `scripts/regressions/game-intro-sequence-replay.regression.ts` (+25 -0) </details> ### 📄 Description ## Linked issue Found in a two-player Game room playtest; no separate issue was opened. ## Why this change After a Continue story, the host's Game screen went black, with only "Skip effects" showing, until that was pressed. The reply had no `[direction:]` tags. The host's Game screen had been mounted after the Room view, so it treated the game as a first load and played the blueprint's intro sequence, whose cinematic hides the game's UI. Directions that had played out also stayed set, so a direction engine that remounted played them again. ## What changed - The blueprint intro sequence plays only in a game nobody has spoken in yet. A restored session already skipped it; now a game with any user message does too. - When the direction engine reports it has finished playing, its directions are cleared, so they never replay. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` New `game-intro-sequence-replay` regression. Client tsc and eslint (rules-of-hooks) pass on the changed file. `pnpm check` wasn't run in full here. ### Manual verification notes Checked in a two-machine room playtest on the same change in our working branch: Continue story after a fight, then 10 switches between the Room and Game views. The screen never went black, and Skip effects never stuck. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:46:15 +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#8654
No description provided.