[PR #869] [MERGED] Fix GM Game Mode start with HUD widgets #4809

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/869
Author: @Promansis
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @Promansis

Base: staging ← Head: fix/849-gm-start-game


📝 Commits (1)

  • 612db14 fix: unblock GM game start with HUD widgets (#849)

📊 Changes

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

View changed files

📝 packages/client/src/components/game/GameSurface.tsx (+0 -2)
📝 packages/client/src/components/game/GameWidgetPanel.tsx (+10 -1)

📄 Description

Linked issue

Closes #849

Why this change

  • In GM Game Mode, chats with AI-generated/custom HUD widgets could make the Start Game button appear unresponsive because the initial widget review flow always attempted to save widgets before starting, even when the user made no widget changes.
  • The start flow should preserve the existing widget review step without requiring an unnecessary widget-save request on the unchanged happy path.

What changed

  • Kept the existing pre-first-turn HUD widget review modal and Start Game screen UI.
  • Centralized the safer behavior in GameWidgetSessionPrepModal: if widget drafts are unchanged, the modal proceeds directly to the start/session action without calling PUT /game/:chatId/widgets.
  • Left changed-widget saves, next-session widget preparation, and active-game HUD widget editing intact.

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

  • Codex ran pnpm check; it passed. Build emitted the existing Node DEP0190 warning during the server build.
  • Manual browser verification still needed: create a GM Game Mode chat with generated/custom HUD widgets enabled, complete setup, click Start Game in the widget review modal without changing widgets, and confirm /api/game/start plus generation activity occur.

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, schema, dependency, release metadata, or version files were changed.

UI evidence (if applicable)

Not captured yet. Manual browser verification should include before/after notes or screenshot/recording if needed.


🔄 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/869 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/15/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/849-gm-start-game` --- ### 📝 Commits (1) - [`612db14`](https://github.com/Pasta-Devs/Marinara-Engine/commit/612db14a8f21fea369cecb2cb972f398fb18e046) fix: unblock GM game start with HUD widgets (#849) ### 📊 Changes **2 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameSurface.tsx` (+0 -2) 📝 `packages/client/src/components/game/GameWidgetPanel.tsx` (+10 -1) </details> ### 📄 Description ## Linked issue Closes #849 ## Why this change - In GM Game Mode, chats with AI-generated/custom HUD widgets could make the Start Game button appear unresponsive because the initial widget review flow always attempted to save widgets before starting, even when the user made no widget changes. - The start flow should preserve the existing widget review step without requiring an unnecessary widget-save request on the unchanged happy path. ## What changed - Kept the existing pre-first-turn HUD widget review modal and Start Game screen UI. - Centralized the safer behavior in `GameWidgetSessionPrepModal`: if widget drafts are unchanged, the modal proceeds directly to the start/session action without calling `PUT /game/:chatId/widgets`. - Left changed-widget saves, next-session widget preparation, and active-game HUD widget editing intact. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] 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` ### Manual verification notes - Codex ran `pnpm check`; it passed. Build emitted the existing Node `DEP0190` warning during the server build. - Manual browser verification still needed: create a GM Game Mode chat with generated/custom HUD widgets enabled, complete setup, click Start Game in the widget review modal without changing widgets, and confirm `/api/game/start` plus generation activity occur. ## Docs and release impact - [x] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [x] Version/release files updated (only if this PR includes a version bump) No docs, schema, dependency, release metadata, or version files were changed. ## UI evidence (if applicable) Not captured yet. Manual browser verification should include before/after notes or screenshot/recording if needed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:50 +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#4809
No description provided.