[GH-ISSUE #1786] [Issue]: Gacha Forge: a held chapter's big choice can block an open story event #1753

Closed
opened 2026-11-07 16:36:27 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1786

Originally assigned to: @SpicyMarinara on GitHub.

Summary

If a main chapter's pre-forge writes that chapter's final big choice while a seasonal story event is open, the event's own scenes are refused with choice-required for the held chapter, and the player cannot resolve that choice because the event holds the chapter. The event stays blocked until it expires or Seasonal events is turned off.

Affected package

gacha-forge (1.25.x; less likely in 1.26.0, still possible)

Expected behavior

A choice in a chapter that an open event holds never blocks the event. The main chain either stops while the event holds its chapter, or the held chapter's pending choice is ignored by the event's scene guard.

Actual behavior

  • The main pre-forge chain (wt/Yt in server.mjs) keeps writing a forged next chapter after the event opens; Yt does not know the chapter is held.
  • forgeChoices.pending(runId) and forgeChoices.guard(runId) are world-wide, so a pending big choice in the held chapter stops the event chain (waitingChoice) and makes /story-event/beat return {ok:false,error:"choice-required",chapter:N}.
  • Chapter N is held by the event (story-event-open), so the player cannot open it to choose.

Steps to reproduce

  1. Forge the next chapter and open its map with pre-forge on, without playing it.
  2. Start the season's story event from Events → Story events (allowed by the 1.24.10 rule, since the chapter is not half played).
  3. Let the main chain write the chapter's final big choice, then play the event: its next scene is refused with choice-required.

Found by the critic in the #1780 investigation (probe chains.mjs, scenario 2): event status {done:5,next:5,waitingChoice:true}, event scene 5 {ok:false,error:'choice-required',chapter:2}. On 1.25.1 the event's first scene is already blocked.

Environment

  • Marinara Engine version: staging
  • Package version: gacha-forge 1.25.1 / 1.26.0
  • Install type: source
  • OS + version: macOS
  • Browser or app shell: n/a (server)

Logs, screenshots, or video

See the probe output above.

Additional context

Suggested fix: a side-effect-free "held by an open event" check (the condition guardMain uses, without its retireInactiveFight write), used by Yt to report pre-forge off for a held main chapter, and by choiceChapterActive so a held chapter's pending choice does not gate the event.

Template check

Please uncheck (untick) 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 @SpicyMarinara on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1786 Originally assigned to: @SpicyMarinara on GitHub. ## Summary If a main chapter's pre-forge writes that chapter's final big choice while a seasonal story event is open, the event's own scenes are refused with `choice-required` for the held chapter, and the player cannot resolve that choice because the event holds the chapter. The event stays blocked until it expires or Seasonal events is turned off. ## Affected package `gacha-forge` (1.25.x; less likely in 1.26.0, still possible) ## Expected behavior A choice in a chapter that an open event holds never blocks the event. The main chain either stops while the event holds its chapter, or the held chapter's pending choice is ignored by the event's scene guard. ## Actual behavior - The main pre-forge chain (`wt`/`Yt` in server.mjs) keeps writing a forged next chapter after the event opens; `Yt` does not know the chapter is held. - `forgeChoices.pending(runId)` and `forgeChoices.guard(runId)` are world-wide, so a pending big choice in the held chapter stops the event chain (`waitingChoice`) and makes `/story-event/beat` return `{ok:false,error:"choice-required",chapter:N}`. - Chapter N is held by the event (`story-event-open`), so the player cannot open it to choose. ## Steps to reproduce 1. Forge the next chapter and open its map with pre-forge on, without playing it. 2. Start the season's story event from Events → Story events (allowed by the 1.24.10 rule, since the chapter is not half played). 3. Let the main chain write the chapter's final big choice, then play the event: its next scene is refused with `choice-required`. Found by the critic in the #1780 investigation (probe `chains.mjs`, scenario 2): event status `{done:5,next:5,waitingChoice:true}`, event scene 5 `{ok:false,error:'choice-required',chapter:2}`. On 1.25.1 the event's first scene is already blocked. ## Environment - Marinara Engine version: staging - Package version: gacha-forge 1.25.1 / 1.26.0 - Install type: source - OS + version: macOS - Browser or app shell: n/a (server) ## Logs, screenshots, or video See the probe output above. ## Additional context Suggested fix: a side-effect-free "held by an open event" check (the condition `guardMain` uses, without its `retireInactiveFight` write), used by `Yt` to report pre-forge off for a held main chapter, and by `choiceChapterActive` so a held chapter's pending choice does not gate the event. ## Template check Please **uncheck (untick)** 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-11-07 16:36:27 +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-Agents#1753
No description provided.