[PR #1663] [MERGED] fix(gacha-forge): cancel stuck chapter and story generation #1942

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

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-story-cancel


📝 Commits (2)

  • fff6411 fix(gacha-forge): cancel stuck chapter and story generation
  • 6345a24 fix(gacha-forge): fence queued artwork after story cancellation

📊 Changes

19 files changed (+1304 additions, -59 deletions)

View changed files

➕ artifacts/gacha-forge-1.15.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 (+4 -0)
📝 packages/gacha-forge/bundle-patches.json (+121 -0)
📝 packages/gacha-forge/client.js (+92 -3)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+96 -9)
➕ packages/gacha-forge/src/story-cancel-client.mjs (+81 -0)
➕ packages/gacha-forge/src/story-cancel-en.mjs (+5 -0)
➕ packages/gacha-forge/src/story-cancel-server.mjs (+85 -0)
➕ tests/gacha-forge-story-cancel-package.regression.mjs (+168 -0)
➕ tests/gacha-forge-story-cancel-server.regression.mjs (+172 -0)
➕ tests/gacha-forge-story-cancel.regression.mjs (+266 -0)
📝 tests/package-gacha-forge-audio.e2e.ts (+167 -0)

📄 Description

Linked issue

Closes #1662

Why this change

Chapter and story loading can remain stuck after generation stops, with no way back to Gacha Home. Users need an escape that preserves their world and progress.

What changed

  • Gacha Forge 1.15.1 adds Cancel to chapter and story loading. It returns Home immediately, including when the network is stuck.
  • Cancel aborts active story model requests, stops chapter preforging, and prevents late results or queued artwork from restarting the cancelled screen. Completed chapters, characters, currency and progress remain saved.
  • Rebuilt the maintained bundle patches, package, ZIP and catalog lanes. No Engine change or new permission is required.

Package and security impact

  • Affected package: gacha-forge 1.15.1; existing Engine 2.5.1 / Capability API 1.384 requirement retained.
  • Existing package server gains /story/cancel; no permission changes or storage migration.
  • Update the package and restart Engine when prompted.

Validation

Local checks passed: npm run check (0 errors; existing warnings), catalog lanes, package locales and locale keys, catalog release notes, generated catalog validation, location-ID and story-memory regressions, and git diff --check.

The client cancellation, server cancellation and actual shipped-route regressions cover immediate Home, provider abort, saved progress, stale responses, fresh retries and late persistence. Browser tests passed 6/6 across desktop Chromium, mobile Chromium and mobile WebKit emulation for delayed/stale chapter and story loading. No paid provider call or physical-device test was performed.

Both local CodeRabbit reviews completed with no findings, including the final queued-artwork guard. An independent follow-up found the queued-artwork dispatch gap, which was fixed and covered by the passing shipped-client regression. The final committed build also passed all six browser cases again.

  • Manually verify Cancel with the configured live provider and a stuck chapter.
  • Manually verify package update/restart and return to Home with saved progress.

Documentation impact

Package changelog and generated update notes include the new Cancel action. No Engine documentation changes are needed.

UI evidence

Browser tests capture chapter-loading-cancel.png and beat-loading-cancel.png for each tested project. The button uses the existing loading-screen control style.


🔄 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/1663 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gacha-story-cancel` --- ### 📝 Commits (2) - [`fff6411`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fff64117057cac77dca03854af29cdf2087aeb4f) fix(gacha-forge): cancel stuck chapter and story generation - [`6345a24`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6345a24da172ded1d54ba76132a1525d6529fa51) fix(gacha-forge): fence queued artwork after story cancellation ### 📊 Changes **19 files changed** (+1304 additions, -59 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.15.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` (+4 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+121 -0) 📝 `packages/gacha-forge/client.js` (+92 -3) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+96 -9) ➕ `packages/gacha-forge/src/story-cancel-client.mjs` (+81 -0) ➕ `packages/gacha-forge/src/story-cancel-en.mjs` (+5 -0) ➕ `packages/gacha-forge/src/story-cancel-server.mjs` (+85 -0) ➕ `tests/gacha-forge-story-cancel-package.regression.mjs` (+168 -0) ➕ `tests/gacha-forge-story-cancel-server.regression.mjs` (+172 -0) ➕ `tests/gacha-forge-story-cancel.regression.mjs` (+266 -0) 📝 `tests/package-gacha-forge-audio.e2e.ts` (+167 -0) </details> ### 📄 Description ## Linked issue Closes #1662 ## Why this change Chapter and story loading can remain stuck after generation stops, with no way back to Gacha Home. Users need an escape that preserves their world and progress. ## What changed - Gacha Forge 1.15.1 adds Cancel to chapter and story loading. It returns Home immediately, including when the network is stuck. - Cancel aborts active story model requests, stops chapter preforging, and prevents late results or queued artwork from restarting the cancelled screen. Completed chapters, characters, currency and progress remain saved. - Rebuilt the maintained bundle patches, package, ZIP and catalog lanes. No Engine change or new permission is required. ## Package and security impact - Affected package: `gacha-forge` 1.15.1; existing Engine 2.5.1 / Capability API 1.384 requirement retained. - Existing package server gains `/story/cancel`; no permission changes or storage migration. - Update the package and restart Engine when prompted. ## Validation Local checks passed: `npm run check` (0 errors; existing warnings), catalog lanes, package locales and locale keys, catalog release notes, generated catalog validation, location-ID and story-memory regressions, and `git diff --check`. The client cancellation, server cancellation and actual shipped-route regressions cover immediate Home, provider abort, saved progress, stale responses, fresh retries and late persistence. Browser tests passed 6/6 across desktop Chromium, mobile Chromium and mobile WebKit emulation for delayed/stale chapter and story loading. No paid provider call or physical-device test was performed. Both local CodeRabbit reviews completed with no findings, including the final queued-artwork guard. An independent follow-up found the queued-artwork dispatch gap, which was fixed and covered by the passing shipped-client regression. The final committed build also passed all six browser cases again. - [ ] Manually verify Cancel with the configured live provider and a stuck chapter. - [ ] Manually verify package update/restart and return to Home with saved progress. ## Documentation impact Package changelog and generated update notes include the new Cancel action. No Engine documentation changes are needed. ## UI evidence Browser tests capture `chapter-loading-cancel.png` and `beat-loading-cancel.png` for each tested project. The button uses the existing loading-screen control style. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:10 +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#1942
No description provided.