[PR #1147] [MERGED] Fix game setup provider errors surfacing only in console #4945

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/refactor-game-setup-error


📝 Commits (1)

  • acbcc36 fix(game): surface setup provider errors in wizard

📊 Changes

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

View changed files

📝 src/features/modes/game/components/GameSetupWizard.tsx (+13 -1)
📝 src/features/modes/game/components/GameSurface.tsx (+21 -2)

📄 Description

## Summary

Fixes #1146.

When game setup fails during Start Game because the selected provider/connection returns an auth or config error, the New Game Setup modal now shows a persistent in-app error instead of relying on console/toast feedback only.

Changes

  • Store game setup failures in the Game mode surface during create/setup mutations.
  • Pass the setup failure into the New Game Setup wizard.
  • Render a clear Game setup failed alert with the provider error text inside the modal.

Validation

  • Reproduced the provider-auth failure before the fix during the refactor smoke test.
  • Verified the setup modal now shows an in-app error after the fix.
  • Verified GitHub-renderable evidence URLs return HTTP 200.
  • pnpm check:architecture passed on Pasta-Devs/Marinara-Engine refactor worktree.
  • pnpm typecheck passed on Pasta-Devs/Marinara-Engine refactor worktree.
  • pnpm check passed on Pasta-Devs/Marinara-Engine refactor worktree.

Evidence

Before: provider auth failure left the setup modal without a persistent in-modal error.

Before provider auth failure

After: the setup modal shows Game setup failed with the provider error text.

After provider auth failure

Notes

The refactor work moved from Pasta-Devs/Marinara-Engine-Refactor to Pasta-Devs/Marinara-Engine branch refactor; this PR ports the already-verified two-file fix to the canonical branch.


🔄 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/1147 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/24/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-game-setup-error` --- ### 📝 Commits (1) - [`acbcc36`](https://github.com/Pasta-Devs/Marinara-Engine/commit/acbcc36fc101d4b075c456034d01b25f42e3695e) fix(game): surface setup provider errors in wizard ### 📊 Changes **2 files changed** (+34 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/GameSetupWizard.tsx` (+13 -1) 📝 `src/features/modes/game/components/GameSurface.tsx` (+21 -2) </details> ### 📄 Description ## Summary Fixes #1146. When game setup fails during Start Game because the selected provider/connection returns an auth or config error, the New Game Setup modal now shows a persistent in-app error instead of relying on console/toast feedback only. ## Changes - Store game setup failures in the Game mode surface during create/setup mutations. - Pass the setup failure into the New Game Setup wizard. - Render a clear `Game setup failed` alert with the provider error text inside the modal. ## Validation - [ ] Reproduced the provider-auth failure before the fix during the refactor smoke test. - [ ] Verified the setup modal now shows an in-app error after the fix. - [ ] Verified GitHub-renderable evidence URLs return HTTP 200. - [ ] `pnpm check:architecture` passed on `Pasta-Devs/Marinara-Engine` `refactor` worktree. - [ ] `pnpm typecheck` passed on `Pasta-Devs/Marinara-Engine` `refactor` worktree. - [ ] `pnpm check` passed on `Pasta-Devs/Marinara-Engine` `refactor` worktree. ## Evidence Before: provider auth failure left the setup modal without a persistent in-modal error. ![Before provider auth failure](https://gist.githubusercontent.com/cha1latte/6929d153b5d78a3f409f82e16f187caf/raw/marinara-issue-1146-before.svg) After: the setup modal shows `Game setup failed` with the provider error text. ![After provider auth failure](https://gist.githubusercontent.com/cha1latte/6929d153b5d78a3f409f82e16f187caf/raw/marinara-issue-1146-after.svg) ## Notes The refactor work moved from `Pasta-Devs/Marinara-Engine-Refactor` to `Pasta-Devs/Marinara-Engine` branch `refactor`; this PR ports the already-verified two-file fix to the canonical branch. --- <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:55 +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#4945
No description provided.