[PR #1719] [MERGED] fix(gacha-forge): banners, elements, Formation five-stars, Vigor, Letters and choices (1.22.0) #1708

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

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-forge-feedback-20261026


📝 Commits (4)

  • 2e7a20d fix(gacha-forge): banners, elements, Formation five-stars, Vigor, Letters and choices (1.22.0)
  • b7abfda fix(gacha-forge): address the 1.22.0 review findings
  • 436afa1 merge: update with staging (Story Writer 0.1.1)
  • 5ae6818 fix(gacha-forge): read the new-message card's channel name defensively

📊 Changes

36 files changed (+1595 additions, -356 deletions)

View changed files

📝 .github/workflows/gacha-forge-browser.yml (+2 -1)
📝 .github/workflows/pull-request-checks.yml (+2 -0)
➕ artifacts/gacha-forge-1.22.0.zip (+0 -0)
📝 catalog/catalog.json (+20 -20)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+20 -20)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+20 -20)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+11 -0)
📝 packages/gacha-forge/bundle-patches.json (+78 -0)
📝 packages/gacha-forge/client.js (+278 -77)
📝 packages/gacha-forge/manifest.json (+17 -17)
📝 packages/gacha-forge/server.mjs (+90 -37)
📝 packages/gacha-forge/src/animation-client.mjs (+58 -21)
📝 packages/gacha-forge/src/animation-en.mjs (+14 -3)
📝 packages/gacha-forge/src/animation-server.mjs (+45 -8)
📝 packages/gacha-forge/src/browser-presentation.mjs (+12 -1)
📝 packages/gacha-forge/src/formation-combat-shared.mjs (+11 -9)
📝 packages/gacha-forge/src/formation-migration-server.mjs (+32 -18)

...and 16 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 #1718

Why this change

  • The maintainer played Gacha Forge on staging on an iPhone and reported a batch of problems:
    • animated banners never generated;
    • the element matchups ran backwards;
    • five-star units would not convert to Formation;
    • the Vigor timer flickered;
    • Letters was cramped and opened with an empty unit list;
    • story choices only appeared after reopening a story.
  • Earlier banner fixes (#1665, #1710) improved the notice wording but never surfaced the real failure. This change classifies every Engine video error. It also fixes an iPhone-only playback blocker that would have stopped even a successful clip from playing.

What changed

  • Element matchups changed. Fire no longer beats Water. The cycle is now Water beats Fire, Fire beats Earth, Earth beats Wind, Wind beats Water. This applies in Classic and Formation combat, on the Home chart and in the in-game help.
  • A clip that the Engine refuses to serve no longer offers a paid replacement. A clip the browser downloaded but cannot decode still offers the explicit, priced Retry.
  • Banner animations:
    • A failure now names its reason: provider (with HTTP status), Seedance setup, timeout, interrupted, storage, connection, or unknown (pointing to the [gacha-forge] Banner animation failed server log line). Raw provider text is still never shown.
    • Saved clips play through an authenticated fetch and a blob URL. This means they play on a phone that reaches the Engine over LAN or Tailscale; a <video> cannot send X-Admin-Secret.
    • A dropped connection, or a temporary 408, 429 or 5xx response, asks again for free. A rotated banner's earlier clip is released from memory.
  • Formation conversion:
    • The kit prompt spells out the trait shape. A malformed or extra trait is dropped instead of rejecting the whole five-star kit, which is the main cause of the reported failures.
    • Characters convert one at a time, so "Generating" means generating rather than queued.
    • A character that needs a retry shows why, and the reason is logged.
    • Ready kits are reused after a cancel.
    • Kits keep requesting 24,192 output tokens (8,192 answer floor plus the 16,000 reasoning reserve), which already covers the "at least 16k" ask. A larger first request could break connections that work today.
  • Vigor: the countdown always shows below full, never at full, and no longer blanks or rewinds. A point that lands while the bar is hidden still refreshes the state once.
  • Story choices appear on the first play again. A background chapter-plan refresh landing mid-beat had hidden them since 1.17.0. A story start that overlapped that refresh no longer silently fails to open.
  • Letters:
    • The view fills the screen below the stats bar, with a one-line reply box.
    • Read message from a new-message card loads your bonded units. If the list cannot load, it says so and retries.
    • Help marks sit centred beside their titles.
  • New messages arrive as a themed card on Home with the channel name, sender and opening lines. It shows above an open Letters panel and no longer covers the stats bar, a fight, a story or another screen.
  • The story mute button matches the fullscreen button beside it.
  • Package:
    • gacha-forge 1.22.0, with rebuilt bundles, manifest, artifact and catalog lanes.
    • A changelog entry, and an in-game What's new entry. The previous in-game entry is pinned to 1.15.0.
    • CI now runs the animations and Vigor regressions and the new story-choice browser test.

Package and security impact

  • Affected package IDs: gacha-forge
  • Engine compatibility impact: none; same capability API and minimum Engine version
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: existing saves keep their units, kits and Vigor. A saved banner marker left "pending" by a restart now reads as interrupted; one left by a failed status write reads as storage.

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 agent (not a substitute for the boxes above):

  • Regressions: every tests/gacha-forge-*.regression.mjs passes against the rebuilt bundle, including:
    • location-ids and bundle-rebuild;
    • the new vigor-clock;
    • extended animations, animation-diagnostics, formation-* and proactive-messages-client.
  • Catalog: validate-catalog passes, and rebuilding after the staging merge produces no diff.
  • Browser suites (desktop and mobile Chromium) against Engine staging:
    • audio, choice-plan-reload (identical and revised reloads), proactive-messages, formation and home: 80/80;
    • an earlier full core pass covered choices, units, unit art, seasonal events, editors and backgrounds;
    • package-gacha-forge-chapter-regeneration.e2e.ts fails 6 tests, identically on unmodified staging (a21a5b198). CI does not run it.
  • Lint: Prettier and ESLint are clean.
  • Review:
    • A five-lens review with adversarial verification raised 17 findings; 15 were confirmed. The fixes are in the second commit, and the Vigor render-key note was optional.
    • Local CodeRabbit on the final branch: 0 findings.

Still to do by hand, on a real phone and provider:

  • With an Animations connection, retry a banner: either it animates, or the notice names a reason. If it shows "unknown", share the [gacha-forge] Banner animation failed server log line.
  • On an iPhone reaching the Engine over LAN or Tailscale, a generated clip plays.
  • Switch a world with five-star units to Formation; every unit converts.
  • Watch Vigor below full for a few minutes; the countdown stays visible and stops at full.
  • Play a chapter with choices from the chapter list; the choices appear the first time.
  • Receive a unit message on Home, press Read message: Letters lists your units, full screen.

Documentation impact

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

UI evidence (if applicable)

The browser-test screenshots show the Letters view full screen with the themed new-message card on top, the centred help mark and the one-line reply box.

🤖 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/1719 **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:** `fix/gacha-forge-feedback-20261026` --- ### 📝 Commits (4) - [`2e7a20d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2e7a20dafe9f65934e4657bf7b403248f6def447) fix(gacha-forge): banners, elements, Formation five-stars, Vigor, Letters and choices (1.22.0) - [`b7abfda`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b7abfda0688276a5d0641c02f8234e3282d9b401) fix(gacha-forge): address the 1.22.0 review findings - [`436afa1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/436afa1581fc3e50f5496eb2e40817c588ff9224) merge: update with staging (Story Writer 0.1.1) - [`5ae6818`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5ae68181223e796d27be26b22001a0c1d45afef9) fix(gacha-forge): read the new-message card's channel name defensively ### 📊 Changes **36 files changed** (+1595 additions, -356 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/gacha-forge-browser.yml` (+2 -1) 📝 `.github/workflows/pull-request-checks.yml` (+2 -0) ➕ `artifacts/gacha-forge-1.22.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+20 -20) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+20 -20) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+20 -20) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+11 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+78 -0) 📝 `packages/gacha-forge/client.js` (+278 -77) 📝 `packages/gacha-forge/manifest.json` (+17 -17) 📝 `packages/gacha-forge/server.mjs` (+90 -37) 📝 `packages/gacha-forge/src/animation-client.mjs` (+58 -21) 📝 `packages/gacha-forge/src/animation-en.mjs` (+14 -3) 📝 `packages/gacha-forge/src/animation-server.mjs` (+45 -8) 📝 `packages/gacha-forge/src/browser-presentation.mjs` (+12 -1) 📝 `packages/gacha-forge/src/formation-combat-shared.mjs` (+11 -9) 📝 `packages/gacha-forge/src/formation-migration-server.mjs` (+32 -18) _...and 16 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 #1718 ## Why this change - The maintainer played Gacha Forge on staging on an iPhone and reported a batch of problems: - animated banners never generated; - the element matchups ran backwards; - five-star units would not convert to Formation; - the Vigor timer flickered; - Letters was cramped and opened with an empty unit list; - story choices only appeared after reopening a story. - Earlier banner fixes (#1665, #1710) improved the notice wording but never surfaced the real failure. This change classifies every Engine video error. It also fixes an iPhone-only playback blocker that would have stopped even a successful clip from playing. ## What changed - **Element matchups changed. Fire no longer beats Water.** The cycle is now Water beats Fire, Fire beats Earth, Earth beats Wind, Wind beats Water. This applies in Classic and Formation combat, on the Home chart and in the in-game help. - **A clip that the Engine refuses to serve no longer offers a paid replacement.** A clip the browser downloaded but cannot decode still offers the explicit, priced Retry. - **Banner animations:** - A failure now names its reason: provider (with HTTP status), Seedance setup, timeout, interrupted, storage, connection, or unknown (pointing to the `[gacha-forge] Banner animation failed` server log line). Raw provider text is still never shown. - Saved clips play through an authenticated fetch and a blob URL. This means they play on a phone that reaches the Engine over LAN or Tailscale; a `<video>` cannot send `X-Admin-Secret`. - A dropped connection, or a temporary 408, 429 or 5xx response, asks again for free. A rotated banner's earlier clip is released from memory. - **Formation conversion:** - The kit prompt spells out the trait shape. A malformed or extra trait is dropped instead of rejecting the whole five-star kit, which is the main cause of the reported failures. - Characters convert one at a time, so "Generating" means generating rather than queued. - A character that needs a retry shows why, and the reason is logged. - Ready kits are reused after a cancel. - Kits keep requesting 24,192 output tokens (8,192 answer floor plus the 16,000 reasoning reserve), which already covers the "at least 16k" ask. A larger first request could break connections that work today. - **Vigor:** the countdown always shows below full, never at full, and no longer blanks or rewinds. A point that lands while the bar is hidden still refreshes the state once. - **Story choices** appear on the first play again. A background chapter-plan refresh landing mid-beat had hidden them since 1.17.0. A story start that overlapped that refresh no longer silently fails to open. - **Letters:** - The view fills the screen below the stats bar, with a one-line reply box. - Read message from a new-message card loads your bonded units. If the list cannot load, it says so and retries. - Help marks sit centred beside their titles. - **New messages** arrive as a themed card on Home with the channel name, sender and opening lines. It shows above an open Letters panel and no longer covers the stats bar, a fight, a story or another screen. - **The story mute button** matches the fullscreen button beside it. - **Package:** - `gacha-forge` 1.22.0, with rebuilt bundles, manifest, artifact and catalog lanes. - A changelog entry, and an in-game What's new entry. The previous in-game entry is pinned to 1.15.0. - CI now runs the animations and Vigor regressions and the new story-choice browser test. ## Package and security impact - Affected package IDs: `gacha-forge` - Engine compatibility impact: none; same capability API and minimum Engine version - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: existing saves keep their units, kits and Vigor. A saved banner marker left "pending" by a restart now reads as interrupted; one left by a failed status write reads as storage. ## 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 agent (not a substitute for the boxes above): - **Regressions:** every `tests/gacha-forge-*.regression.mjs` passes against the rebuilt bundle, including: - `location-ids` and `bundle-rebuild`; - the new `vigor-clock`; - extended `animations`, `animation-diagnostics`, `formation-*` and `proactive-messages-client`. - **Catalog:** `validate-catalog` passes, and rebuilding after the staging merge produces no diff. - **Browser suites** (desktop and mobile Chromium) against Engine staging: - audio, choice-plan-reload (identical and revised reloads), proactive-messages, formation and home: 80/80; - an earlier full core pass covered choices, units, unit art, seasonal events, editors and backgrounds; - `package-gacha-forge-chapter-regeneration.e2e.ts` fails 6 tests, identically on unmodified staging (`a21a5b198`). CI does not run it. - **Lint:** Prettier and ESLint are clean. - **Review:** - A five-lens review with adversarial verification raised 17 findings; 15 were confirmed. The fixes are in the second commit, and the Vigor render-key note was optional. - Local CodeRabbit on the final branch: 0 findings. Still to do by hand, on a real phone and provider: - [ ] With an Animations connection, retry a banner: either it animates, or the notice names a reason. If it shows "unknown", share the `[gacha-forge] Banner animation failed` server log line. - [ ] On an iPhone reaching the Engine over LAN or Tailscale, a generated clip plays. - [ ] Switch a world with five-star units to Formation; every unit converts. - [ ] Watch Vigor below full for a few minutes; the countdown stays visible and stops at full. - [ ] Play a chapter with choices from the chapter list; the choices appear the first time. - [ ] Receive a unit message on Home, press Read message: Letters lists your units, full screen. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) The browser-test screenshots show the Letters view full screen with the themed new-message card on top, the centred help mark and the one-line reply box. 🤖 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:03 +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#1708
No description provided.