[PR #1725] [MERGED] feat(gacha-forge): pre-forge backgrounds alongside the text, and Keep playing while a chapter forges (1.23.0) #1712

Closed
opened 2026-10-27 06:06:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1725
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/gacha-forge-preforge-art-keep-playing


📝 Commits (5)

  • 7cd2d5e feat(gacha-forge): pre-forged places beside the text and Keep playing (1.23.0)
  • 2a77937 fix(gacha-forge): address the 1.23.0 review findings
  • 2c0fbc2 merge: 1.22.1 (Formation Skills tab, more room for chapters) under 1.23.0
  • 21115e6 merge: staging (1.22.1)
  • 4084495 Merge branch 'staging' into feat/gacha-forge-preforge-art-keep-playing

📊 Changes

25 files changed (+1935 additions, -77 deletions)

View changed files

📝 .github/workflows/gacha-forge-browser.yml (+2 -1)
📝 .github/workflows/pull-request-checks.yml (+4 -0)
➕ artifacts/gacha-forge-1.23.0.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 (+7 -0)
📝 packages/gacha-forge/README.md (+6 -0)
📝 packages/gacha-forge/bundle-patches.json (+78 -0)
📝 packages/gacha-forge/client.js (+146 -4)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+93 -4)
📝 packages/gacha-forge/src/chapter-regeneration-client.mjs (+1 -0)
➕ packages/gacha-forge/src/preforge-art-server.mjs (+87 -0)
📝 packages/gacha-forge/src/seasonal-events-client.mjs (+4 -1)
📝 packages/gacha-forge/src/story-cancel-client.mjs (+133 -0)
📝 packages/gacha-forge/src/story-cancel-en.mjs (+5 -0)

...and 5 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1724

Why this change

  • Backgrounds wait for the scene: with pre-forging on, the backgrounds a scene needs were still painted when the scene opened, so players waited on "It reaches a place this world has never drawn".
  • Forging locks the screen: forging a new chapter kept the player on its loading screen until it was ready.
  • Maintainer decisions:
    • the renamed images mode paints places;
    • art paints alongside the text;
    • the v1 limits are accepted;
    • Keep playing applies to main chapters only.

What changed

  • The pre-forge setting "Story and key images" is now "Story and images". With Backgrounds on and an image connection, it also paints the places each pre-forged scene visits, in main chapters and Character Stories. Seasonal events stay off.
    • Worlds already on this setting with Backgrounds on start painting places ahead after updating.
  • Art paints alongside the text. Key images and places paint on a separate chain on the low-priority image lane, so the chapter menu opens as soon as the text is written, sooner than before.
    • A scene opened early shows the usual painting loader and joins the paint in progress; nothing is painted twice.
    • Art may keep painting after the menu opens. To stop it, switch to Story only or Off, or use the story Cancel.
  • The art chain stops before its next paid image on pre-forge Cancel (while the menu is shut), switching to Story only or Off, losing the image connection, the story Cancel, a chapter reset, or deleting the world. The check happens inside the image connection's queue, right before the paid call.
    • Turning Backgrounds off stops painting places ahead; key images keep painting as before.
    • One bad place is skipped. A connection-level failure, or two failures in a row, stops painting ahead.
  • Keep playing: a main chapter's forge screen offers Keep playing above Cancel, with a hint. The chapter keeps forging and the busy pill shows its progress.
    • When it settles, a notice says "Chapter Three is ready.", "could not be forged" or, after a real stop, "was interrupted".
    • Once it is ready, its fights are prepared and pre-forge starts. Reopening the chapter early uses the plan exactly once.
    • Accepted v1 limits: the story Cancel stays world-wide, other story generation waits behind the chapter, a reload brings the loader back (it rejoins without double spend), and switching worlds waits until it is ready.
  • Fixes along the way:
    • Pre-forge no longer reports "stopped", or lets Retry start a second chain, on chapters that take over 20 minutes.
    • A Cancel elsewhere no longer leaves a place or key image unpaintable for 20 minutes.
    • Deleting a world now stops its story and art work.
  • Release and CI:
    • gacha-forge 1.23.0, with rebuilt bundles, manifest, artifact and catalog lanes, CHANGELOG and README entries, and an in-game What's new entry. The previous entry is pinned to 1.22.1.
    • CI now runs the new pre-forge art regression, the story-cancel suites and the new Keep playing browser test.

Package and security impact

  • Affected package IDs: gacha-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact:
    • Worlds on "Story and images" with Backgrounds on paint more images ahead, which uses image provider credits.
    • Nothing is migrated: the stored setting value stays art.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agents:

  • Regressions: every tests/gacha-forge-*.regression.mjs passes (401). This includes 24 pre-forge art cases and the Keep playing client suite, and each review fix has its own regression, which fails when the fix is removed.

  • Catalog, locales and lint: validate-catalog, test-catalog-lanes, the package locale validators, catalog-release-notes, npm run check and ESLint pass. Rebuilding from the 1.22.1 bundles is byte-identical.

  • Browser suites on desktop and mobile Chromium:

    • choices, choice-plan-reload, backgrounds, proactive-messages, home, keep-playing, formation and seasonal-events passed 74/74 before the final staging merge;
    • keep-playing, formation and backgrounds passed 28/28 after it;
    • package-gacha-forge-chapter-regeneration.e2e.ts keeps its 6 known failures. They also fail on unmodified staging: the fixture's model context is too small for the 8,192-token minimum.
  • Review: a four-lens review with adversarial verification confirmed 9 findings, and all are fixed. The main ones:

    • a soft stop could pay for one queued image;
    • deleting a world didn't stop its art;
    • Keep playing could adopt a chapter twice;
    • the "interrupted" notice was wrong on seasonal entry;
    • the copy overstated what stops painting.

    One finding was rejected: Regenerate is reachable while art paints, and it only waits.

Still to do by hand, with a real image connection:

  • On "Story and images" with Backgrounds on, forge a chapter. The menu opens when the text is done. Opening a pre-forged scene later shows no "painting a new place" wait.
  • Press pre-forge Cancel while it runs, then switch to Story only: no further images are generated.
  • Start forging a new chapter, press Keep playing, and fight a battle meanwhile. The "Chapter N is ready." notice appears, and the chapter opens without forging again.
  • On a phone in landscape, the forge screen's Keep playing, hint and Cancel fit without overlap.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

The Keep playing browser test screenshots the forge loader, with Keep playing and its hint above Cancel, and Home afterwards showing the "Forging the chapter" pill.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1725 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/gacha-forge-preforge-art-keep-playing` --- ### 📝 Commits (5) - [`7cd2d5e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7cd2d5eb16ff6e1b16add24c9a3ac0f91cbd7e57) feat(gacha-forge): pre-forged places beside the text and Keep playing (1.23.0) - [`2a77937`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2a77937bea40f6c0a490f40b4478b9bd42bac6f9) fix(gacha-forge): address the 1.23.0 review findings - [`2c0fbc2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2c0fbc25cedb5e54aa319fa0722d4b1ed6d1ec5d) merge: 1.22.1 (Formation Skills tab, more room for chapters) under 1.23.0 - [`21115e6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/21115e627526f2142f1bb0ce8ae27045d0312fc7) merge: staging (1.22.1) - [`4084495`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4084495280576b98a30c3ab92709438474eba2d3) Merge branch 'staging' into feat/gacha-forge-preforge-art-keep-playing ### 📊 Changes **25 files changed** (+1935 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/gacha-forge-browser.yml` (+2 -1) 📝 `.github/workflows/pull-request-checks.yml` (+4 -0) ➕ `artifacts/gacha-forge-1.23.0.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` (+7 -0) 📝 `packages/gacha-forge/README.md` (+6 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+78 -0) 📝 `packages/gacha-forge/client.js` (+146 -4) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+93 -4) 📝 `packages/gacha-forge/src/chapter-regeneration-client.mjs` (+1 -0) ➕ `packages/gacha-forge/src/preforge-art-server.mjs` (+87 -0) 📝 `packages/gacha-forge/src/seasonal-events-client.mjs` (+4 -1) 📝 `packages/gacha-forge/src/story-cancel-client.mjs` (+133 -0) 📝 `packages/gacha-forge/src/story-cancel-en.mjs` (+5 -0) _...and 5 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1724 ## Why this change - **Backgrounds wait for the scene:** with pre-forging on, the backgrounds a scene needs were still painted when the scene opened, so players waited on "It reaches a place this world has never drawn". - **Forging locks the screen:** forging a new chapter kept the player on its loading screen until it was ready. - **Maintainer decisions:** - the renamed images mode paints places; - art paints alongside the text; - the v1 limits are accepted; - Keep playing applies to main chapters only. ## What changed - **The pre-forge setting "Story and key images" is now "Story and images".** With Backgrounds on and an image connection, it also paints the places each pre-forged scene visits, in main chapters and Character Stories. Seasonal events stay off. - Worlds already on this setting with Backgrounds on start painting places ahead after updating. - **Art paints alongside the text.** Key images and places paint on a separate chain on the low-priority image lane, so the chapter menu opens as soon as the text is written, sooner than before. - A scene opened early shows the usual painting loader and joins the paint in progress; nothing is painted twice. - Art may keep painting after the menu opens. To stop it, switch to Story only or Off, or use the story Cancel. - **The art chain stops before its next paid image** on pre-forge Cancel (while the menu is shut), switching to Story only or Off, losing the image connection, the story Cancel, a chapter reset, or deleting the world. The check happens inside the image connection's queue, right before the paid call. - Turning Backgrounds off stops painting places ahead; key images keep painting as before. - One bad place is skipped. A connection-level failure, or two failures in a row, stops painting ahead. - **Keep playing:** a main chapter's forge screen offers Keep playing above Cancel, with a hint. The chapter keeps forging and the busy pill shows its progress. - When it settles, a notice says "Chapter Three is ready.", "could not be forged" or, after a real stop, "was interrupted". - Once it is ready, its fights are prepared and pre-forge starts. Reopening the chapter early uses the plan exactly once. - Accepted v1 limits: the story Cancel stays world-wide, other story generation waits behind the chapter, a reload brings the loader back (it rejoins without double spend), and switching worlds waits until it is ready. - **Fixes along the way:** - Pre-forge no longer reports "stopped", or lets Retry start a second chain, on chapters that take over 20 minutes. - A Cancel elsewhere no longer leaves a place or key image unpaintable for 20 minutes. - Deleting a world now stops its story and art work. - **Release and CI:** - `gacha-forge` 1.23.0, with rebuilt bundles, manifest, artifact and catalog lanes, CHANGELOG and README entries, and an in-game What's new entry. The previous entry is pinned to 1.22.1. - CI now runs the new pre-forge art regression, the story-cancel suites and the new Keep playing browser test. ## Package and security impact - Affected package IDs: `gacha-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: - Worlds on "Story and images" with Backgrounds on paint more images ahead, which uses image provider credits. - Nothing is migrated: the stored setting value stays `art`. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agents: - **Regressions:** every `tests/gacha-forge-*.regression.mjs` passes (401). This includes 24 pre-forge art cases and the Keep playing client suite, and each review fix has its own regression, which fails when the fix is removed. - **Catalog, locales and lint:** `validate-catalog`, `test-catalog-lanes`, the package locale validators, `catalog-release-notes`, `npm run check` and ESLint pass. Rebuilding from the 1.22.1 bundles is byte-identical. - **Browser suites** on desktop and mobile Chromium: - choices, choice-plan-reload, backgrounds, proactive-messages, home, keep-playing, formation and seasonal-events passed 74/74 before the final staging merge; - keep-playing, formation and backgrounds passed 28/28 after it; - `package-gacha-forge-chapter-regeneration.e2e.ts` keeps its 6 known failures. They also fail on unmodified staging: the fixture's model context is too small for the 8,192-token minimum. - **Review:** a four-lens review with adversarial verification confirmed 9 findings, and all are fixed. The main ones: - a soft stop could pay for one queued image; - deleting a world didn't stop its art; - Keep playing could adopt a chapter twice; - the "interrupted" notice was wrong on seasonal entry; - the copy overstated what stops painting. One finding was rejected: Regenerate is reachable while art paints, and it only waits. Still to do by hand, with a real image connection: - [ ] On "Story and images" with Backgrounds on, forge a chapter. The menu opens when the text is done. Opening a pre-forged scene later shows no "painting a new place" wait. - [ ] Press pre-forge Cancel while it runs, then switch to Story only: no further images are generated. - [ ] Start forging a new chapter, press Keep playing, and fight a battle meanwhile. The "Chapter N is ready." notice appears, and the chapter opens without forging again. - [ ] On a phone in landscape, the forge screen's Keep playing, hint and Cancel fit without overlap. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) The Keep playing browser test screenshots the forge loader, with Keep playing and its hint above Cancel, and Home afterwards showing the "Forging the chapter" pill. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:06:06 +07:00
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#1712
No description provided.