mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1141] [MERGED] fix(gacha-forge): 1.8.8 — a chapter already cleared stays open while a Character Story holds the main story #1311
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1311
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1141
Author: @SonaGat3
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SonaGat3
Base:
staging← Head:feature/gacha-forge-1.8.8📝 Commits (2)
0521626fix(gacha-forge): 1.8.8 — a chapter already cleared stays open while a Character Story holds the main story57209a4docs(gacha-forge): 1.8.8 — only the next chapter waits; there is no chapter in progress to hold📊 Changes
12 files changed (+134 additions, -111 deletions)
View changed files
➕
artifacts/gacha-forge-1.8.8.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -0)📝
packages/gacha-forge/CHANGELOG.md(+3 -0)📝
packages/gacha-forge/README.md(+2 -0)📝
packages/gacha-forge/client.js(+30 -30)📝
packages/gacha-forge/manifest.json(+5 -5)📝
packages/gacha-forge/server.mjs(+52 -52)📄 Description
Linked issue
Closes #1140
Why this change
stagingcarries Gacha Forge 1.8.7. With a Character Story (bond chapter) open, old chapterscould not be opened to finish their other difficulties: a click on a chapter already cleared dropped
the player into the Character Story instead.
The lock is intended, and it stays. A Character Story holds the main story until it ends. It
became a route guard after a real hole: drawn only as a grey card on "forge the next chapter", it
left a chapter half played next to an unfinished Character Story, and a second tab (or the Home's
Continue) walked past the card and kept going — charging 5 Vigor for it.
What was wrong is how much it shut. The three routes that advance the main story
(
/chapter-plan,/story/start,/battle/start) calledmainStoryHeld(runId)without sayingwhich chapter they were serving, and refused all of them — cleared chapters included, since the
check ran before the plan cache was read. Meanwhile:
Story" lock);
bond-chapter-openas "go to the Character Story" (so a world switch never endson a wall), which is why the click bounced there;
mainStoryHeld's own comment claimed "a chapter already cleared stays readable" — true inthe list, never in the routes.
What changed
mainStoryHeld(runId, session, chapter)takes the chapter. One cleared on Normal(
progress[chapter].normal >= NORMAL_NODE_COUNT, the same test the chapter list uses) is pastfor. There is no chapter in progress to hold: a Character Story is only offered once the chapter
before it is cleared.
Generated outputs
packages/gacha-forge/client.js,server.mjs,manifest.json, the artifact zip, the catalogfamily and the release-notes sidecars were re-derived by
node scripts/build-gacha-forge-package.mjsfrom the committed payload bytes. Nothing washand-edited; re-running the builder after the commit leaves the tree clean.
Package and security impact
capabilityApi, theenginerange, permissions, contribution slots, assets,builtAgainstandrestartRequiredare unchanged. The only manifest field that moved isversion, verified bydiffing against the
stagingmanifest with the hash lines filtered out.client.js1,434,560 → 1,434,802 bytes (the player changelog line),server.mjs492,474 → 492,537, artifact 7,827,191 → 7,827,496. All art is byte-identical (245 of 247 payload
files unchanged).
Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
origin/staging;git ls-files --eol | grep -c w/crlf→ 0;git diff --check "origin/staging...HEAD"clean; the build is reproducible.byte-identical to the sideloaded install; only
manifest.jsondiffers, which every installerrewrites.
pull-request-checks.ymlatorigin/staging, so its 25 steps cannot go stale: 24 of 25green. ⚠️
npm run test:securityfails on Windows for a reason unrelated to this change(
catalog-path-safety.regression.mjsexpects a POSIX path and getsD:\tmp\package\assets\icon.png); its log never names gacha-forge, and it failed identically on aclean
stagingcheckout for every earlier Gacha Forge PR.probe — all green (717 s).
"already started" while chapter 1 was cleared (
normal: 10), so two of its checks required therefusal this PR removes. The started chapter is now chapter 2 (
normal: 3) and stays held; thenew check opens cleared chapter 1's plan, a scene and a Hard fight with the Character Story open.
Against the previous code it fails with
{"plan":"bond-chapter-open","story":"bond-chapter-open","hard":"bond-chapter-open"}.Documentation impact
packages/gacha-forge/README.mdgains the 1.8.8 paragraph;packages/gacha-forge/CHANGELOG.mdgains 1.8.8. The repository README is unchanged.
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.