mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1776] [MERGED] fix(gacha-forge): play written scenes during pre-forge, and no blank on upgrade (1.25.1) #1961
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#1961
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/1776
Author: @SpicyMarinara
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/gacha-forge-play-while-forging📝 Commits (4)
7fcd1aefix(gacha-forge): play written scenes while pre-forge writes, and hold upgrade views until loaded (1.25.1)9c84837Merge remote-tracking branch 'origin/staging' into fix/gacha-forge-play-while-forging10c4bd6test(gacha-forge): pin the chapter map redraw after the pre-forge resume read53e6a0ddocs(gacha-forge): say a scene opened before its art waits for that paint📊 Changes
16 files changed (+335 additions, -59 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+1 -0)➕
artifacts/gacha-forge-1.25.1.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -6)📝
packages/gacha-forge/CHANGELOG.md(+5 -0)📝
packages/gacha-forge/README.md(+7 -1)📝
packages/gacha-forge/bundle-patches.json(+58 -0)📝
packages/gacha-forge/client.js(+7 -7)📝
packages/gacha-forge/manifest.json(+5 -5)📝
packages/gacha-forge/server.mjs(+2 -2)📝
packages/gacha-forge/src/preforge-art-server.mjs(+2 -2)➕
tests/gacha-forge-play-while-forging.regression.mjs(+206 -0)📄 Description
Pull request
Linked issue
Fixes #1772
Fixes #1773
Why this change
The maintainer reported two problems:
Pre-forge. The server already serves written scenes at once:
/story/startreturnsresumedwith no Vigor charge, and/beatreturns the cached segments. The block was in the client. While/preforgereportedlocked, which stays true while any scene in the chapter is unwritten, the chapter map renderer (Zd) replaced every node's Play, Start and Read again with a status label until the whole chapter was written.Upgrade flicker. A weapon's Upgrade on a character's Gear tab opens the weapon's page, and a relic Upgrade reloads the relics. Both are same-screen changes, held by
_holdSwap, which released on a fixed 250 ms timer even while the new view was loading. When/unitor/relicswas slower than that, for example while a chapter forged in the background, the character portrait or relic art cut to an empty loader. The relic being upgraded was also drawn at 34% opacity.What changed
Package
gacha-forge1.25.1, client only (ledger edits toclient.js;server.mjschanges only by a source comment).storyIndex < preforge.next)./preforgeonce and resumes the poll when the chain is still writing, so the next scene turns into Play. Only a poll stopped by leaving the map resumes, so a failed read cannot loop._holdSwapkeeps the old view while a unit or a relic Upgrade is still loading, as_holdScreenalready does for screen changes.tests/gacha-forge-play-while-forging.regression.mjs.Weapons still have no artwork of their own (by design: weapon banners have
art:false, and/portraitis for characters), so a weapon's page shows the weapon-type silhouette.Package and security impact
gacha-forgeValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-side checks:
All 70
tests/gacha-forge-*.regression.mjsfiles pass locally (543 tests). Prettier, eslint,node --checkon both bundles andgit diff --checkare clean.validate-catalogcould not run locally (sparse worktree withoutartifacts/).The new
gacha-forge-play-while-forgingregression slices the shipped client and checks four things:All of its cases fail on the 1.25.0 client.
A Playwright harness running the real client against the real server routes, at 600 ms latency, showed:
Before the fix was written, an investigation workflow traced the pre-forge block end to end against the real server bundle. It confirmed written scenes are served at once while the chain writes, and that a fight or scene the chain is producing joins that work instead of duplicating it.
An adversarial review of this change confirmed two findings, both fixed here: the stale Settings and Help copy, and the relic Upgrade during a screen's entrance. One more was refuted: a small choice restarting a stopped chain leaves the existing "Pre-forging stopped [Continue]" state. That predates this change, and Continue recovers it.
To verify by hand:
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.