mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2141] [Issue]: Game mode — a failed turn shows no inline Retry button (generation-error event never dispatched) #1052
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1052
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2141
Originally assigned to: @cha1latte on GitHub.
Summary
Severity: major. The in-game Retry affordance for a failed turn is dead code:
GameSurfacelistens formarinara:generation-errorto setgenerationFailedand show an inline Retry button, but nothing in the refactor ever dispatches that event. A failed game turn surfaces only a toast, leaving no in-surface way to regenerate.Expected behavior
As in main: when a generation fails, the runner dispatches
marinara:generation-error,GameSurfacesetsgenerationFailed=true, and the inline Retry button appears; clicking it regenerates the GM turn from history.Actual behavior
The listener exists (
GameSurface.tsx:4584) but there is nodispatchEvent(new CustomEvent("marinara:generation-error"))anywhere in the refactorsrc. The failure path only callsshowGenerationFailureToast, sogenerationFailednever becomes true and the inline Retry button (gated on it) never renders.Steps to reproduce
Impact area
Environment
refactor@14894608main@c49f1d95(legacy web app)Regression notes
Worked in the legacy web app.
packages/client/src/hooks/use-generate.ts:1600and:1645; listenerGameSurface.tsx:4490.src/features/modes/game/components/GameSurface.tsx:4584; no dispatcher exists (failure path:src/features/runtime/generation/hooks/use-generate.ts:1665-1670, toast only).