[GH-ISSUE #1452] [Issue]: Game provider failures emit uncaught page errors #721

Closed
opened 2026-10-20 17:32:22 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @cha1latte on GitHub (May 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1452

Originally assigned to: @cha1latte on GitHub.

Summary

Game mode provider/runtime failure paths recover in the UI, but the failed generation promise also surfaces as uncaught pageerror events during scripted QA.

Expected behavior

Provider failures such as HTTP 500, HTTP 429, timeout, malformed provider output, and remote-runtime interruption should show the existing recoverable Game UI/toast/error message without emitting uncaught browser page errors.

Actual behavior

The Game UI showed recoverable error states, but the Playwright console audit collected uncaught page errors for rejected Game generation promises:

  • Provider returned HTTP 500 Internal Server Error: fake game provider 500
  • Provider returned HTTP 429 Too Many Requests: fake game provider rate limited
  • Failed to fetch

The stack traces pointed through runGenerationWithUi(...) into Game turn generation after provider/runtime failure rows.

Steps to reproduce

  1. Start the web shell with remote runtime on refactor.
  2. Configure a local OpenAI-compatible provider that returns HTTP 500 or HTTP 429 for Game turn completion.
  3. Open an active Game session and send a player action.
  4. Inspect browser pageerror events while the UI displays the recoverable provider error.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor at 0cf4c9d7
  • Run mode: web shell only + remote runtime
  • OS + version: Windows local QA
  • Node + pnpm versions: Node v24.13.0, pnpm 10.33.2
  • Rust version, if relevant: rustc 1.95.0
  • Remote Runtime URL configured? yes, http://127.0.0.1:8787
  • Provider, model, or integration, if relevant: local fake OpenAI-compatible provider

Logs, screenshots, or video

Local evidence path: scratch/game-qa-post-1449-full-clean

Relevant files:

  • scratch/game-qa-post-1449-full-clean/console.json
  • scratch/game-qa-post-1449-full-clean/failure-provider-500.png
  • scratch/game-qa-post-1449-full-clean/failure-provider-429.png
  • scratch/game-qa-post-1449-full-clean/failure-runtime-offline-mid-turn.png

Screenshots are local only and are not attached to this issue.

Regression notes

Not specified.

Additional context

Found during the post-#1449 scripted Game QA sweep. The UI recovery itself worked; the issue is the uncaught browser error generated by the rejected fire-and-forget Game generation call.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @cha1latte on GitHub (May 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1452 Originally assigned to: @cha1latte on GitHub. ## Summary Game mode provider/runtime failure paths recover in the UI, but the failed generation promise also surfaces as uncaught `pageerror` events during scripted QA. ## Expected behavior Provider failures such as HTTP 500, HTTP 429, timeout, malformed provider output, and remote-runtime interruption should show the existing recoverable Game UI/toast/error message without emitting uncaught browser page errors. ## Actual behavior The Game UI showed recoverable error states, but the Playwright console audit collected uncaught page errors for rejected Game generation promises: - `Provider returned HTTP 500 Internal Server Error: fake game provider 500` - `Provider returned HTTP 429 Too Many Requests: fake game provider rate limited` - `Failed to fetch` The stack traces pointed through `runGenerationWithUi(...)` into Game turn generation after provider/runtime failure rows. ## Steps to reproduce 1. Start the web shell with remote runtime on `refactor`. 2. Configure a local OpenAI-compatible provider that returns HTTP 500 or HTTP 429 for Game turn completion. 3. Open an active Game session and send a player action. 4. Inspect browser `pageerror` events while the UI displays the recoverable provider error. ## Impact area <!-- Check the areas you think are relevant. Leave uncertain items unchecked. --> - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` at `0cf4c9d7` - Run mode: web shell only + remote runtime - OS + version: Windows local QA - Node + pnpm versions: Node `v24.13.0`, pnpm `10.33.2` - Rust version, if relevant: `rustc 1.95.0` - Remote Runtime URL configured? yes, `http://127.0.0.1:8787` - Provider, model, or integration, if relevant: local fake OpenAI-compatible provider ## Logs, screenshots, or video Local evidence path: `scratch/game-qa-post-1449-full-clean` Relevant files: - `scratch/game-qa-post-1449-full-clean/console.json` - `scratch/game-qa-post-1449-full-clean/failure-provider-500.png` - `scratch/game-qa-post-1449-full-clean/failure-provider-429.png` - `scratch/game-qa-post-1449-full-clean/failure-runtime-offline-mid-turn.png` Screenshots are local only and are not attached to this issue. ## Regression notes Not specified. ## Additional context Found during the post-#1449 scripted Game QA sweep. The UI recovery itself worked; the issue is the uncaught browser error generated by the rejected fire-and-forget Game generation call. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:32:22 +07:00
  • closed this issue
  • added the
    bug
    label
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#721
No description provided.