[PR #905] [MERGED] Fix Game Mode provider recovery on start screen #4830

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issue-896-game-provider-recovery


📝 Commits (1)

  • bba6d5a Fix game start provider recovery

📊 Changes

4 files changed (+41 additions, -1 deletions)

View changed files

➕ docs/pr-evidence/issue-896/after.png (+0 -0)
➕ docs/pr-evidence/issue-896/before.png (+0 -0)
➕ docs/pr-evidence/issue-896/retry-state.png (+0 -0)
📝 packages/client/src/components/game/GameSurface.tsx (+41 -1)

📄 Description

Linked issue

Closes #896

Why this change

  • If the selected GM provider fails during Game Mode startup, the Start Game/retry screen did not offer a way to switch to another configured provider before retrying.

What changed

  • Added a GM / Party Model selector to the ready Game Mode start surface.
  • Wired the selector to the active game chat connectionId, using the existing chat update path so retry generation uses the newly selected provider.
  • Preserved None and Random connection values and filtered the provider list to language-generation connections.

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 Playwright repro: seeded an isolated local app with two configured providers and a ready Game chat. Before the fix, the Start Game screen showed only genre tags and the Start Game button with no provider selector.
  • Codex Playwright verification: after the fix, the Start Game screen showed the GM / Party Model selector, and choosing the backup provider updated the game chat connectionId through the local API.
  • Codex Playwright edge case: after a deliberately failed initial GM generation, the retry state still kept the selector visible and allowed the provider to be changed before pressing Retry.
  • Codex compatibility check: verified the selector includes Random so existing random-pool game chats do not render an unselectable blank value.
  • Codex baseline: pnpm check passed locally.

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)

Before:

Before: no provider selector on Game Mode start screen

After:

After: provider selector on Game Mode start screen

Retry state after failed startup generation:

Retry state: provider selector remains available


🔄 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/905 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/15/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-896-game-provider-recovery` --- ### 📝 Commits (1) - [`bba6d5a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bba6d5a1192d72f20650e09ea77a9a9b8a3e4151) Fix game start provider recovery ### 📊 Changes **4 files changed** (+41 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-896/after.png` (+0 -0) ➕ `docs/pr-evidence/issue-896/before.png` (+0 -0) ➕ `docs/pr-evidence/issue-896/retry-state.png` (+0 -0) 📝 `packages/client/src/components/game/GameSurface.tsx` (+41 -1) </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 #896 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - If the selected GM provider fails during Game Mode startup, the Start Game/retry screen did not offer a way to switch to another configured provider before retrying. ## What changed <!-- List the key changes in this PR --> - Added a GM / Party Model selector to the ready Game Mode start surface. - Wired the selector to the active game chat `connectionId`, using the existing chat update path so retry generation uses the newly selected provider. - Preserved `None` and `Random` connection values and filtered the provider list to language-generation connections. ## 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` ### 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. --> - Codex Playwright repro: seeded an isolated local app with two configured providers and a ready Game chat. Before the fix, the Start Game screen showed only genre tags and the `Start Game` button with no provider selector. - Codex Playwright verification: after the fix, the Start Game screen showed the GM / Party Model selector, and choosing the backup provider updated the game chat `connectionId` through the local API. - Codex Playwright edge case: after a deliberately failed initial GM generation, the retry state still kept the selector visible and allowed the provider to be changed before pressing `Retry`. - Codex compatibility check: verified the selector includes `Random` so existing random-pool game chats do not render an unselectable blank value. - Codex baseline: `pnpm check` passed locally. ## Docs and release impact - [x] 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) Before: ![Before: no provider selector on Game Mode start screen](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bba6d5a1192d72f20650e09ea77a9a9b8a3e4151/docs/pr-evidence/issue-896/before.png) After: ![After: provider selector on Game Mode start screen](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bba6d5a1192d72f20650e09ea77a9a9b8a3e4151/docs/pr-evidence/issue-896/after.png) Retry state after failed startup generation: ![Retry state: provider selector remains available](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/bba6d5a1192d72f20650e09ea77a9a9b8a3e4151/docs/pr-evidence/issue-896/retry-state.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:00 +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#4830
No description provided.