[PR #1649] [MERGED] fix(gacha-forge): preserve character references and mobile editors #1642

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

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-avatar-refs-mobile-editors-1648


📝 Commits (6)

  • 05982e6 docs(gacha-forge): track reference and mobile editor fixes
  • 0f57f25 fix(gacha-forge): preserve avatar references and mobile controls
  • ed1bce4 Merge remote-tracking branch 'origin/staging' into fix/gacha-avatar-refs-mobile-editors-1648
  • e86d760 fix(gacha-forge): retain expanded settings drafts across refreshes
  • 2d5b6e1 Merge remote-tracking branch 'origin/staging' into fix/gacha-avatar-refs-mobile-editors-1648
  • a8ce90f Merge remote-tracking branch 'origin/staging' into fix/gacha-avatar-refs-mobile-editors-1648

📊 Changes

31 files changed (+2582 additions, -55 deletions)

View changed files

➕ artifacts/gacha-forge-1.13.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 (+8 -0)
📝 packages/gacha-forge/README.md (+10 -0)
📝 packages/gacha-forge/bundle-patches.json (+102 -0)
📝 packages/gacha-forge/client.js (+275 -4)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+101 -2)
📝 packages/gacha-forge/src/browser-presentation.mjs (+139 -0)
📝 packages/gacha-forge/src/enemy-encounters-client.mjs (+34 -0)
➕ packages/gacha-forge/src/image-avatar-references.mjs (+97 -0)
➕ packages/gacha-forge/src/unit-notifications.mjs (+83 -0)
➕ tests/gacha-forge-browser-presentation.regression.mjs (+260 -0)
📝 tests/gacha-forge-bundle-rebuild.regression.mjs (+2 -0)
📝 tests/gacha-forge-combat-dialogue.regression.mjs (+102 -1)

...and 11 more files

📄 Description

Pull request

Linked issue

Closes #1655. Refs #1648. Implementation owner: @SpicyMarinara / Codex.

This delivers the reproduced artwork, scene layout, mobile editing and Units recommendation defects. The punctuation report remains open: the maintainer confirmed 1.12.2 and punctuation present in Backlog, but exact archived-client and lifecycle controls do not reproduce the missing dialogue-box character. No generated or saved dialogue is rewritten.

Why this change

Character scene and banner requests omitted available avatar references. Mobile keyboards hid Advanced fields, and WebKit could move an expanded editor's Close button between pointer-down and pointer-up. Home's Units dot had no explanation at its destination. The substantive #1646 review also found missing keyboard focus for blocking combat dialogue.

What changed

  • Release Gacha Forge 1.13.1, rebuilding maintained source, payloads, manifest, archive, catalogs and release notes together.
  • Send actual selected card/persona avatar bytes for character scenes, banners, portraits, outfits and uniquely matched named-enemy art. Use the same unit's saved art as fallback; reject ambiguous identities and unrelated local paths. Existing Engine/provider reference support and limits still apply.
  • Start both scene crossfade layers below the measured chapter header, preserve their top edge, and keep the dialogue scrim.
  • Reveal fields within the package's scroll containers, compact ordinary and expanded editors to the remaining viewport, and keep the 44px Close control inside the available stage through keyboard blur and host-chrome restoration. Retain native expanded settings drafts, selection, scroll and focus across same-world/category refreshes, rebinding saves to the latest form.
  • Explain the existing Level up / Equip signature / Ascend recommendation in Units. Refresh server-owned progression after successful actions, with matching-world and unmount guards. Names are inserted literally as text.
  • Focus Continue when a combat-dialogue queue begins and restore a visible control afterward; preserve enemy inspection, Auto and rerender behavior.

Package and security impact

  • Affected package ID: gacha-forge.
  • Engine compatibility: existing Capability API 1.381 and Engine 2.5.1 minimum; host APIs and permissions are unchanged.
  • Update the installed Gacha Forge package and restart the Engine when its package manager requests it. Existing generated artwork is retained; references apply to newly generated art.
  • Existing worlds, choice canon, claimed rewards and gameplay results are preserved.

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

Agent-run evidence:

  • Locked install, npm run check, catalog lanes/locales/archive validation, release-note validation and deterministic source replay passed.
  • Focused controls passed: image references 15, viewport 9, Units 7, combat dialogue 15, plus existing choices, audio, music, achievements, location and boss-route regressions.
  • The full installed-package browser suite passed 109/109 in 6.2 minutes, with zero failures, retries/flaky cases, skips or global errors, on the final archive 9a0ee555.
  • The exact final archive passed all six maintained editor/scene cases across desktop Chrome, mobile Chrome and WebKit. They cover ordinary/expanded typing and pointer Close at 150px/110px landscape and 300px portrait geometry, native editor/draft/caret/focus retention across a real save plus host refresh, newer sibling settings, and scene layers/header/scrims. Nine screenshots were visually inspected. All 247 installed payloads matched their manifest hashes.
  • Actual package-manager installation and loopback HTTP verified 1.12.2 → 1.13.1, saved-state preservation, genuine fresh-process offline restart and uninstall cleanup. No paid provider request was used.
  • Local CodeRabbit found a real literal-name interpolation defect, which was reproduced and fixed. The final full review and subsequent retention-diff review reported zero findings. A later test-only suggestion to add 50 polling waits was declined after tracing the entirely immediate mocked promise chain; an explicit completion signal is the upgrade path if deferred I/O is introduced. Independent source/integration review found no remaining substantive defect.

Earlier failures and corrections are retained separately: a contradictory first-world fixture now uses the real New World flag and explicitly tests refresh; geometry waits for the existing finite entry animation before applying the same strict bounds; the compiled-bundle VM receives the same browser-style mock already used by its helper tests. The installed WebKit pointer failure and the newly reproduced popup removal were repaired in production code and have retained browser coverage. The four fresh-world fixtures now own their setup-draft state consistently with their mocked world state; the focused 13-case replay passed. No timeout, force-click or skip was added.

Manual verification notes

  • Manually verify new scenes and banners with the configured reference-capable image provider and actual character avatars.
  • Manually verify ordinary and expanded fields with a physical phone keyboard in both orientations.
  • Manually verify the reported missing punctuation on the original iOS device; #1648 remains open for that unreproduced report.

Documentation impact

  • Updated package README and patch release notes

The README explains reference fallback/provider limits, mobile controls and the Units recommendation. Release metadata remains aligned with 1.13.1.

UI evidence

Chrome and WebKit screenshots/traces cover the final installed package's keyboard layouts, stable Close target, Units hint and scene framing. Reproduce with tests/playwright.gacha-forge.config.ts; emulation is distinct from physical-device and live image-provider validation.


🔄 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/1649 **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-avatar-refs-mobile-editors-1648` --- ### 📝 Commits (6) - [`05982e6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/05982e6e3f5e785d60cb1addf7d6e248f3f77145) docs(gacha-forge): track reference and mobile editor fixes - [`0f57f25`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0f57f25522337befb832144c8855e27b7b65e240) fix(gacha-forge): preserve avatar references and mobile controls - [`ed1bce4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ed1bce47da51b1e817d9df8266f89c9a189c9360) Merge remote-tracking branch 'origin/staging' into fix/gacha-avatar-refs-mobile-editors-1648 - [`e86d760`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e86d76060d67acbd4c6b0f5cd1692715e18ef223) fix(gacha-forge): retain expanded settings drafts across refreshes - [`2d5b6e1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2d5b6e1e9f040e1b0ee776493dcdb5002ec6078f) Merge remote-tracking branch 'origin/staging' into fix/gacha-avatar-refs-mobile-editors-1648 - [`a8ce90f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a8ce90f45461b6a94c1caad642486bed15deecd7) Merge remote-tracking branch 'origin/staging' into fix/gacha-avatar-refs-mobile-editors-1648 ### 📊 Changes **31 files changed** (+2582 additions, -55 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.13.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` (+8 -0) 📝 `packages/gacha-forge/README.md` (+10 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+102 -0) 📝 `packages/gacha-forge/client.js` (+275 -4) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+101 -2) 📝 `packages/gacha-forge/src/browser-presentation.mjs` (+139 -0) 📝 `packages/gacha-forge/src/enemy-encounters-client.mjs` (+34 -0) ➕ `packages/gacha-forge/src/image-avatar-references.mjs` (+97 -0) ➕ `packages/gacha-forge/src/unit-notifications.mjs` (+83 -0) ➕ `tests/gacha-forge-browser-presentation.regression.mjs` (+260 -0) 📝 `tests/gacha-forge-bundle-rebuild.regression.mjs` (+2 -0) 📝 `tests/gacha-forge-combat-dialogue.regression.mjs` (+102 -1) _...and 11 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1655. Refs #1648. Implementation owner: @SpicyMarinara / Codex. This delivers the reproduced artwork, scene layout, mobile editing and Units recommendation defects. The punctuation report remains open: the maintainer confirmed 1.12.2 and punctuation present in Backlog, but exact archived-client and lifecycle controls do not reproduce the missing dialogue-box character. No generated or saved dialogue is rewritten. ## Why this change Character scene and banner requests omitted available avatar references. Mobile keyboards hid Advanced fields, and WebKit could move an expanded editor's Close button between pointer-down and pointer-up. Home's Units dot had no explanation at its destination. The substantive #1646 review also found missing keyboard focus for blocking combat dialogue. ## What changed - Release Gacha Forge **1.13.1**, rebuilding maintained source, payloads, manifest, archive, catalogs and release notes together. - Send actual selected card/persona avatar bytes for character scenes, banners, portraits, outfits and uniquely matched named-enemy art. Use the same unit's saved art as fallback; reject ambiguous identities and unrelated local paths. Existing Engine/provider reference support and limits still apply. - Start both scene crossfade layers below the measured chapter header, preserve their top edge, and keep the dialogue scrim. - Reveal fields within the package's scroll containers, compact ordinary and expanded editors to the remaining viewport, and keep the 44px Close control inside the available stage through keyboard blur and host-chrome restoration. Retain native expanded settings drafts, selection, scroll and focus across same-world/category refreshes, rebinding saves to the latest form. - Explain the existing Level up / Equip signature / Ascend recommendation in Units. Refresh server-owned progression after successful actions, with matching-world and unmount guards. Names are inserted literally as text. - Focus Continue when a combat-dialogue queue begins and restore a visible control afterward; preserve enemy inspection, Auto and rerender behavior. ## Package and security impact - Affected package ID: `gacha-forge`. - Engine compatibility: existing Capability API 1.381 and Engine 2.5.1 minimum; host APIs and permissions are unchanged. - Update the installed Gacha Forge package and restart the Engine when its package manager requests it. Existing generated artwork is retained; references apply to newly generated art. - Existing worlds, choice canon, claimed rewards and gameplay results are preserved. ## 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` Agent-run evidence: - Locked install, `npm run check`, catalog lanes/locales/archive validation, release-note validation and deterministic source replay passed. - Focused controls passed: image references 15, viewport 9, Units 7, combat dialogue 15, plus existing choices, audio, music, achievements, location and boss-route regressions. - The full installed-package browser suite passed **109/109** in 6.2 minutes, with zero failures, retries/flaky cases, skips or global errors, on the final archive `9a0ee555`. - The exact final archive passed all six maintained editor/scene cases across desktop Chrome, mobile Chrome and WebKit. They cover ordinary/expanded typing and pointer Close at 150px/110px landscape and 300px portrait geometry, native editor/draft/caret/focus retention across a real save plus host refresh, newer sibling settings, and scene layers/header/scrims. Nine screenshots were visually inspected. All 247 installed payloads matched their manifest hashes. - Actual package-manager installation and loopback HTTP verified 1.12.2 → 1.13.1, saved-state preservation, genuine fresh-process offline restart and uninstall cleanup. No paid provider request was used. - Local CodeRabbit found a real literal-name interpolation defect, which was reproduced and fixed. The final full review and subsequent retention-diff review reported zero findings. A later test-only suggestion to add 50 polling waits was declined after tracing the entirely immediate mocked promise chain; an explicit completion signal is the upgrade path if deferred I/O is introduced. Independent source/integration review found no remaining substantive defect. Earlier failures and corrections are retained separately: a contradictory first-world fixture now uses the real New World flag and explicitly tests refresh; geometry waits for the existing finite entry animation before applying the same strict bounds; the compiled-bundle VM receives the same browser-style mock already used by its helper tests. The installed WebKit pointer failure and the newly reproduced popup removal were repaired in production code and have retained browser coverage. The four fresh-world fixtures now own their setup-draft state consistently with their mocked world state; the focused 13-case replay passed. No timeout, force-click or skip was added. ### Manual verification notes - Manually verify new scenes and banners with the configured reference-capable image provider and actual character avatars. - Manually verify ordinary and expanded fields with a physical phone keyboard in both orientations. - Manually verify the reported missing punctuation on the original iOS device; #1648 remains open for that unreproduced report. ## Documentation impact - [ ] Updated package README and patch release notes The README explains reference fallback/provider limits, mobile controls and the Units recommendation. Release metadata remains aligned with 1.13.1. ## UI evidence Chrome and WebKit screenshots/traces cover the final installed package's keyboard layouts, stable Close target, Units hint and scene framing. Reproduce with `tests/playwright.gacha-forge.config.ts`; emulation is distinct from physical-device and live image-provider validation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:02:23 +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#1642
No description provided.