[PR #1674] [MERGED] fix(gacha): repair mobile controls, upgrades, and story playback #1671

Closed
opened 2026-10-26 04:02:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-issue-sweep-20261025


📝 Commits (6)

  • 571c641 fix(gacha): give generated music distinct thematic development
  • 84d5291 fix(gacha): repair mobile controls, progression, and story playback
  • 88e3e00 Merge remote-tracking branch 'origin/staging' into fix/gacha-issue-sweep-20261025
  • f34d91c test(gacha): verify story controls in the light host theme
  • 9ec9649 test(gacha): prove portrait buffers and capture clear mobile layouts
  • 6b449f4 fix(gacha): preserve choice bounds and scope equip failures

📊 Changes

48 files changed (+3277 additions, -145 deletions)

View changed files

➕ artifacts/gacha-forge-1.16.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 (+10 -0)
📝 packages/gacha-forge/bundle-patches.json (+226 -8)
📝 packages/gacha-forge/client.js (+486 -11)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+243 -11)
📝 packages/gacha-forge/src/audio-client.mjs (+29 -1)
📝 packages/gacha-forge/src/audio-prompts.mjs (+10 -2)
📝 packages/gacha-forge/src/browser-presentation.mjs (+65 -1)
➕ packages/gacha-forge/src/material-navigation.mjs (+104 -0)
➕ packages/gacha-forge/src/player-choice-text.mjs (+7 -0)
📝 packages/gacha-forge/src/player-choices-client.mjs (+2 -2)
📝 packages/gacha-forge/src/player-choices-server.mjs (+6 -2)
➕ packages/gacha-forge/src/story-entry.mjs (+16 -0)

...and 28 more files

📄 Description

Linked issue

Closes #1677

Closes Pasta-Devs/Marinara-Engine#8285
Closes Pasta-Devs/Marinara-Engine#8286
Closes Pasta-Devs/Marinara-Engine#8287
Closes Pasta-Devs/Marinara-Engine#8288
Closes Pasta-Devs/Marinara-Engine#8289
Closes Pasta-Devs/Marinara-Engine#8290
Closes Pasta-Devs/Marinara-Engine#8291
Closes Pasta-Devs/Marinara-Engine#8292
Closes Pasta-Devs/Marinara-Engine#8293
Closes Pasta-Devs/Marinara-Engine#8294
Closes Pasta-Devs/Marinara-Engine#8295
Closes Pasta-Devs/Marinara-Engine#8296
Closes Pasta-Devs/Marinara-Engine#8299
Closes Pasta-Devs/Marinara-Engine#8306
Closes Pasta-Devs/Marinara-Engine#8307
Refs Pasta-Devs/Marinara-Engine#8284

Why this change

Players reported unreachable mobile help and rewards, stale notifications, repetitive upgrade inputs, incorrect story transitions and regenerated dialogue audio. This package repair addresses those reports while preserving saved worlds, deliberate story text, resource confirmation and equipment ownership.

What changed

Gacha Forge 1.16.0 repairs mobile controls and story playback, and adds resource previews and free-gear assistance so players can upgrade without manually filling every input. Package-owned source, reversible bundle patches, manifests, reproducible ZIP and all catalog lanes ship together. Ownership: @SpicyMarinara / Codex.

  • Keep the correct speaker artwork in both portrait buffers, retain a placeholder on image failure, and preserve the opening image flight after slow unit responses.
  • Make Writing help tappable, prevent daily rewards from overlapping Claim, and clear stale Units dots while checking whether level/ascension recommendations are affordable.
  • Auto-select affordable Insight, relic fodder and skill training resources before the existing explicit confirmation. Auto-equip improves displayed CP using unassigned gear; authoritative ownership checks reject stale plans. Upgrade materials open their real farming rotation; Mandates open the Login Event.
  • Use the current browser timezone for reset calendars and new banner periods, including DST. Catch up automatic chapter compression/combination when a world opens, show counts, and retain manual controls and original records.
  • Punctuate choice labels, isolate fullscreen/mute clicks, reveal fresh opening lines, preserve resumed positions, and reuse matching dialogue audio through the Engine cache. Voice/text/source/synthesis changes invalidate that cache identity.
  • Give generated music briefs distinctive world motifs, arrangements and musical development. Verify five-star rates and pity without rebalancing them.

The package remains on Capability API 1.384 with its existing permissions and Engine compatibility range.

#8284 is partial: choice-label punctuation is fixed. The intermittent missing final glyph was not reproduced. Intentional interrupted dialogue is preserved exactly; no sentence completion or prose normalization was added. A proposed scrolling change was removed after its negative control failed to establish clipping.

Package and security impact

  • Affected package IDs: gacha-forge, released as 1.16.0.
  • Engine compatibility impact: existing API 1.384 and Engine range retained.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: existing restart-required update behavior retained; saved documents and original story records remain intact. Reset calculations use the browser's current timezone. Strict free-only equipment requests cannot transfer another unit's gear.

Validation

  • npm run format:check and npm run lint -- --concurrency 1: passed, serialized to limit local memory pressure; 0 errors and 812 existing repository warnings. A final error-presence guard and its retired-view assertion also passed focused formatting/lint checks on both changed files.

  • All 139 tests/gacha-forge-*.regression.mjs runner cases passed, including real shipped equipment/training CAS and ownership races, automatic memory backlog/combination, first-line/resume behavior, cache invalidation and ordinary summon thresholds/distributions.

  • Catalog lanes, package locales, full catalog, release-notes regressions and git diff --check: passed. Rebuilding preserved all 299 tracked package/catalog files byte-for-byte; the ZIP contains 247 declared payloads.

  • At 9ec9649c8, 15 targeted browser cases passed with one worker across desktop Chromium, mobile Chromium and mobile WebKit. Three additional light-host-theme cases passed; Aurora/Bloom retain their intended package palettes. Screenshots and geometry cover help, daily rewards, resource previews, material navigation, controls and intentional final em-dash display.

  • Negative controls: the previous daily-grid CSS reproduced footer overlap; the actual 1.15.2 client failed the delayed unit-image flight assertion. Initial fixture failures were preserved and replayed unchanged before their expectations were corrected.

  • The final repaired archive passed the real HTTP installer/runtime lifecycle in five separate disposable processes on compiled combined Engine candidate b50834b5b7d5a943f33b899f210ec82b7c2ac8f1 (tree b19cffbde9b3bea45ab533e7d6b89701a75a3687): install actual 1.15.2, seed seven world/chapter/gear documents, reject mismatched review hashes and tampered archives, update to actual repaired 1.16.0 with restart/previous-client guards, activate offline, uninstall, and restart offline without resurrecting the package. All seven saved documents remained unchanged.

  • Initial local CodeRabbit review completed with two findings, both addressed: a guarded portrait-error placeholder and preservation of the existing signature-weapon recommendation. The fresh full review on 9ec9649c8 completed with zero findings. Dottore then identified three low defects; retained negative controls reproduce all three, and commit 6b449f4dfe7305d797790329301c81be86c72742 repairs raw-label bounds, CJK closers and unit/world-scoped auto-equip errors. A related reproduced busy-button repaint is also repaired without adopting another unit's response. Fresh local CodeRabbit review of that committed delta completed with zero findings, covering all changed text bundles, source, tests and catalogs. The ZIP was excluded as a binary and independently rebuilt and hash-verified. Current-head hosted Dottore concluded Viable, With Notes with zero defects and zero notes; all three review threads are resolved and required CI passed.

  • Final repaired archive: 8,139,118 bytes, SHA-256 ae0588a7f48e41e136c08e680a3e8c672b7b70440edefbf6ea6800afbb6c3f4f; manifest SHA-256 174a5bf1ce5f0d9cb11dd99e2cc0e5591f50d1e28b6b5c51d75d3dfeb69451e8.

  • Mari confirmed the audio repro is replaying in the same open app. Final combined Engine TTSService plus the repaired Forge controller reused one synthetic generation across replay/reopen; voice/text/speed changes each invalidated it. This loads the actual combined client source through tsx with compiled shared code and synthetic Audio/provider, rather than claiming physical-device or real-provider playback.

Contributor checklist

  • 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

  • Manually verify touch and keyboard behavior on physical iPhone and Android devices.
  • Manually listen to newly generated music and verify real-provider dialogue replay.
  • Manually investigate #8284 if the intermittent final-glyph loss recurs.

Browser emulation and synthetic providers are the current proof. Engine policy still uses an in-memory TTS cache on iOS WebKit; full iOS browser reload persistence was not changed.

Documentation impact

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

Package release notes are rebuilt with the package. No install instructions or host documentation changed.

UI evidence

Five UI screenshots captured at 9ec9649c8 show intentional em-dash display, mobile help, resource previews and daily rewards in the tested host themes. Those captures predate the subsequent label-bound, CJK and asynchronous-error repairs.

One-worker browser proof includes retained screenshots in the local sweep artifacts: initial failures and unchanged replays, corrected desktop/mobile captures, light-host captures, daily-grid baseline overlap, and the 1.15.2 versus 1.16.0 unit-opening negative control. Automated assertions and fixtures are included in the changed browser tests; no real user save or paid provider was used.


🔄 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/1674 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gacha-issue-sweep-20261025` --- ### 📝 Commits (6) - [`571c641`](https://github.com/Pasta-Devs/Marinara-Agents/commit/571c641b902843087365a252d2f6dac8bb374f64) fix(gacha): give generated music distinct thematic development - [`84d5291`](https://github.com/Pasta-Devs/Marinara-Agents/commit/84d5291abba2b6c05ccdcb46e229317729c9c9f1) fix(gacha): repair mobile controls, progression, and story playback - [`88e3e00`](https://github.com/Pasta-Devs/Marinara-Agents/commit/88e3e006e1a66f3429ed6fbb6bfa523afc7fc0c0) Merge remote-tracking branch 'origin/staging' into fix/gacha-issue-sweep-20261025 - [`f34d91c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f34d91c0c26af6b46af171f0b7114404b9006106) test(gacha): verify story controls in the light host theme - [`9ec9649`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9ec9649c8be177a659f942f08b1ba38bde747f2d) test(gacha): prove portrait buffers and capture clear mobile layouts - [`6b449f4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6b449f4dfe7305d797790329301c81be86c72742) fix(gacha): preserve choice bounds and scope equip failures ### 📊 Changes **48 files changed** (+3277 additions, -145 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.16.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` (+10 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+226 -8) 📝 `packages/gacha-forge/client.js` (+486 -11) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+243 -11) 📝 `packages/gacha-forge/src/audio-client.mjs` (+29 -1) 📝 `packages/gacha-forge/src/audio-prompts.mjs` (+10 -2) 📝 `packages/gacha-forge/src/browser-presentation.mjs` (+65 -1) ➕ `packages/gacha-forge/src/material-navigation.mjs` (+104 -0) ➕ `packages/gacha-forge/src/player-choice-text.mjs` (+7 -0) 📝 `packages/gacha-forge/src/player-choices-client.mjs` (+2 -2) 📝 `packages/gacha-forge/src/player-choices-server.mjs` (+6 -2) ➕ `packages/gacha-forge/src/story-entry.mjs` (+16 -0) _...and 28 more files_ </details> ### 📄 Description ## Linked issue Closes #1677 Closes Pasta-Devs/Marinara-Engine#8285 Closes Pasta-Devs/Marinara-Engine#8286 Closes Pasta-Devs/Marinara-Engine#8287 Closes Pasta-Devs/Marinara-Engine#8288 Closes Pasta-Devs/Marinara-Engine#8289 Closes Pasta-Devs/Marinara-Engine#8290 Closes Pasta-Devs/Marinara-Engine#8291 Closes Pasta-Devs/Marinara-Engine#8292 Closes Pasta-Devs/Marinara-Engine#8293 Closes Pasta-Devs/Marinara-Engine#8294 Closes Pasta-Devs/Marinara-Engine#8295 Closes Pasta-Devs/Marinara-Engine#8296 Closes Pasta-Devs/Marinara-Engine#8299 Closes Pasta-Devs/Marinara-Engine#8306 Closes Pasta-Devs/Marinara-Engine#8307 Refs Pasta-Devs/Marinara-Engine#8284 ## Why this change Players reported unreachable mobile help and rewards, stale notifications, repetitive upgrade inputs, incorrect story transitions and regenerated dialogue audio. This package repair addresses those reports while preserving saved worlds, deliberate story text, resource confirmation and equipment ownership. ## What changed Gacha Forge 1.16.0 repairs mobile controls and story playback, and adds resource previews and free-gear assistance so players can upgrade without manually filling every input. Package-owned source, reversible bundle patches, manifests, reproducible ZIP and all catalog lanes ship together. Ownership: @SpicyMarinara / Codex. - Keep the correct speaker artwork in both portrait buffers, retain a placeholder on image failure, and preserve the opening image flight after slow unit responses. - Make Writing help tappable, prevent daily rewards from overlapping Claim, and clear stale Units dots while checking whether level/ascension recommendations are affordable. - Auto-select affordable Insight, relic fodder and skill training resources before the existing explicit confirmation. Auto-equip improves displayed CP using unassigned gear; authoritative ownership checks reject stale plans. Upgrade materials open their real farming rotation; Mandates open the Login Event. - Use the current browser timezone for reset calendars and new banner periods, including DST. Catch up automatic chapter compression/combination when a world opens, show counts, and retain manual controls and original records. - Punctuate choice labels, isolate fullscreen/mute clicks, reveal fresh opening lines, preserve resumed positions, and reuse matching dialogue audio through the Engine cache. Voice/text/source/synthesis changes invalidate that cache identity. - Give generated music briefs distinctive world motifs, arrangements and musical development. Verify five-star rates and pity without rebalancing them. The package remains on Capability API 1.384 with its existing permissions and Engine compatibility range. #8284 is partial: choice-label punctuation is fixed. The intermittent missing final glyph was not reproduced. Intentional interrupted dialogue is preserved exactly; no sentence completion or prose normalization was added. A proposed scrolling change was removed after its negative control failed to establish clipping. ## Package and security impact - Affected package IDs: `gacha-forge`, released as 1.16.0. - Engine compatibility impact: existing API 1.384 and Engine range retained. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: existing restart-required update behavior retained; saved documents and original story records remain intact. Reset calculations use the browser's current timezone. Strict free-only equipment requests cannot transfer another unit's gear. ## Validation - `npm run format:check` and `npm run lint -- --concurrency 1`: passed, serialized to limit local memory pressure; 0 errors and 812 existing repository warnings. A final error-presence guard and its retired-view assertion also passed focused formatting/lint checks on both changed files. - All 139 `tests/gacha-forge-*.regression.mjs` runner cases passed, including real shipped equipment/training CAS and ownership races, automatic memory backlog/combination, first-line/resume behavior, cache invalidation and ordinary summon thresholds/distributions. - Catalog lanes, package locales, full catalog, release-notes regressions and `git diff --check`: passed. Rebuilding preserved all 299 tracked package/catalog files byte-for-byte; the ZIP contains 247 declared payloads. - At `9ec9649c8`, 15 targeted browser cases passed with one worker across desktop Chromium, mobile Chromium and mobile WebKit. Three additional light-host-theme cases passed; Aurora/Bloom retain their intended package palettes. Screenshots and geometry cover help, daily rewards, resource previews, material navigation, controls and intentional final em-dash display. - Negative controls: the previous daily-grid CSS reproduced footer overlap; the actual 1.15.2 client failed the delayed unit-image flight assertion. Initial fixture failures were preserved and replayed unchanged before their expectations were corrected. - The final repaired archive passed the real HTTP installer/runtime lifecycle in five separate disposable processes on compiled combined Engine candidate `b50834b5b7d5a943f33b899f210ec82b7c2ac8f1` (tree `b19cffbde9b3bea45ab533e7d6b89701a75a3687`): install actual 1.15.2, seed seven world/chapter/gear documents, reject mismatched review hashes and tampered archives, update to actual repaired 1.16.0 with restart/previous-client guards, activate offline, uninstall, and restart offline without resurrecting the package. All seven saved documents remained unchanged. - Initial local CodeRabbit review completed with two findings, both addressed: a guarded portrait-error placeholder and preservation of the existing signature-weapon recommendation. The fresh full review on `9ec9649c8` completed with zero findings. Dottore then identified three low defects; retained negative controls reproduce all three, and commit `6b449f4dfe7305d797790329301c81be86c72742` repairs raw-label bounds, CJK closers and unit/world-scoped auto-equip errors. A related reproduced busy-button repaint is also repaired without adopting another unit's response. Fresh local CodeRabbit review of that committed delta completed with zero findings, covering all changed text bundles, source, tests and catalogs. The ZIP was excluded as a binary and independently rebuilt and hash-verified. Current-head hosted Dottore concluded **Viable, With Notes** with zero defects and zero notes; all three review threads are resolved and required CI passed. - Final repaired archive: 8,139,118 bytes, SHA-256 `ae0588a7f48e41e136c08e680a3e8c672b7b70440edefbf6ea6800afbb6c3f4f`; manifest SHA-256 `174a5bf1ce5f0d9cb11dd99e2cc0e5591f50d1e28b6b5c51d75d3dfeb69451e8`. - Mari confirmed the audio repro is replaying in the same open app. Final combined Engine TTSService plus the repaired Forge controller reused one synthetic generation across replay/reopen; voice/text/speed changes each invalidated it. This loads the actual combined client source through `tsx` with compiled shared code and synthetic Audio/provider, rather than claiming physical-device or real-provider playback. ### Contributor checklist - [ ] `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 - [ ] Manually verify touch and keyboard behavior on physical iPhone and Android devices. - [ ] Manually listen to newly generated music and verify real-provider dialogue replay. - [ ] Manually investigate #8284 if the intermittent final-glyph loss recurs. Browser emulation and synthetic providers are the current proof. Engine policy still uses an in-memory TTS cache on iOS WebKit; full iOS browser reload persistence was not changed. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Package release notes are rebuilt with the package. No install instructions or host documentation changed. ## UI evidence [Five UI screenshots captured at `9ec9649c8`](https://github.com/Pasta-Devs/Marinara-Agents/pull/1674#issuecomment-6396617285) show intentional em-dash display, mobile help, resource previews and daily rewards in the tested host themes. Those captures predate the subsequent label-bound, CJK and asynchronous-error repairs. One-worker browser proof includes retained screenshots in the local sweep artifacts: initial failures and unchanged replays, corrected desktop/mobile captures, light-host captures, daily-grid baseline overlap, and the 1.15.2 versus 1.16.0 unit-opening negative control. Automated assertions and fixtures are included in the changed browser tests; no real user save or paid provider was used. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 04:02:37 +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#1671
No description provided.