[PR #1711] [MERGED] fix(gacha-forge): keep unit artwork stable during navigation #1704

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

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-unit-art-flicker


📝 Commits (6)

  • f0d9f12 chore(gacha-forge): track unit artwork flicker repair
  • f643149 fix(gacha-forge): preserve decoded unit artwork during navigation
  • 61f0430 merge: resolve unit artwork against current staging
  • 94d9f13 merge: integrate published artwork into unit-art worktree
  • 7defcc2 merge: integrate published banner diagnostics and publish unit art stability 1.21.2
  • f7605e9 merge: update unit art repair with published Story Writer staging

📊 Changes

19 files changed (+694 additions, -44 deletions)

View changed files

📝 .github/workflows/gacha-forge-browser.yml (+3 -1)
📝 .github/workflows/pull-request-checks.yml (+1 -0)
➕ artifacts/gacha-forge-1.21.2.zip (+0 -0)
📝 catalog/catalog.json (+11 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+11 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+11 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+5 -0)
📝 packages/gacha-forge/README.md (+4 -0)
📝 packages/gacha-forge/bundle-patches.json (+27 -0)
📝 packages/gacha-forge/client.js (+46 -4)
📝 packages/gacha-forge/manifest.json (+8 -3)
➕ packages/gacha-forge/src/unit-art-client.mjs (+40 -0)
📝 tests/gacha-forge-bundle-rebuild.regression.mjs (+1 -0)
➕ tests/gacha-forge-unit-art.regression.mjs (+192 -0)
➕ tests/package-gacha-forge-unit-art.e2e.ts (+314 -0)
📝 tests/playwright.gacha-forge.config.ts (+2 -0)

📄 Description

Linked issue

Refs #1707 (kept open for physical iPhone retest). Implementation owner: @SpicyMarinara via Codex.

Why this change

Switching unit tabs remounted an unchanged portrait, and returning to Units rebuilt cached cards when an identical refresh arrived. Retain decoded artwork during those transitions while preserving initial loading and real artwork updates.

What changed

  • Keep the successfully decoded portrait node for the same unit and normalized image URL. Different units, changed artwork/outfits and failed or loading images use their normal replacement path.
  • Preserve the cached roster revision for an identical refresh. Loading status, card counts and changed card data still update.
  • Publish Gacha Forge 1.21.2 through the reversible source ledger and official builder, with focused regressions and installed-package browser coverage.

Package and security impact

Built on actual staging adaa55713acce32835f565aeba532b49055bd4e5, preserving the published Story Writer, artwork and banner-diagnostics changes. The strict-base merge inherits Story Writer without changing this package or its archive bytes. Capability API 1.385, permissions, entrypoints, storage and restart behavior are unchanged. Saved worlds remain after uninstall.

Only the existing client payload changes; the only added payload is src/unit-art-client.mjs. The server and every other existing payload match staging exactly. Reversing only the unit-art patch reconstructs staging's client byte for byte. Published archives remain unchanged; the superseded, unpublished 1.20.2 candidate is removed.

Artifact SHA-256: 4f3922f49dbeb65300692178c0e66fa8aab0ad993ff81311f82b4e9d7a75e97f (8,689,884 bytes; 266 declared payloads).

Validation

  • npm run check: passed, with 0 errors and 812 existing warnings. All 60 Gacha Node suites and 4 Story Writer suites passed after the strict-base merge, along with full catalog/lane/locale/release-note and diff checks.
  • Official no-op rebuild left package, archive and catalog bytes identical. Temporary historical catalog links were Git/hash verified, removed and their sparse flags restored.
  • The exact unchanged 1.21.2 artifact, API 1.385 installed UI: 20/20 cases passed across dark/light desktop and mobile Chromium/WebKit. All 16 active-view frame traces retained the same decoded image at opacity 1, across 750 sampled frames. Existing unit controls and real unit/artwork/outfit replacements passed.
  • Public manager lifecycle: install 1.21.1 → update 1.21.2 → fresh offline activation → uninstall → fresh offline activation passed. All 13 saved records and revisions survived; checksum and corrupt-archive controls passed.
  • All 5,371 files in the immutable Engine compiled-output inventory stayed unchanged. The proof used its production static/server outputs with disposable data; fixture servers were stopped and the UI package was uninstalled.
  • Full local CodeRabbit review against staging adaa55713 completed with 0 findings across 18 text files. The binary archive was excluded and verified separately. Independent strict integration review found no additional issue.
  • Final-head hosted CI (f7605e9e6): catalog 100/100 commands, including all four Story Writer suites; CodeQL passed; core 49 passed / 1 skipped, audio 48 passed (98 tests total). Both browser jobs used actual Engine staging f258e40d3a41e7b049620d8e0637ecc892a31256.
  • Final-head Dottore discharge (run 40256139584) carried forward the genuine full review of 7defcc2a9 because the strict-base integration introduced no new PR diff: Viable, With Notes, 0 defects, 2 optional cleanup notes, 0 unresolved threads. Source tracing confirms the portrait contains only its image, with mutable controls as siblings and independent cloned outgoing layers. The roster starts as null; its initial empty response advances the revision, while loading/ready state is keyed separately. No behavioral repair was warranted by these questions.
  • Merged to staging as 885a32d546e511d013b2955b74df25bd2797b46c; post-merge CodeQL run 40256825914 passed both JavaScript/TypeScript and Actions analysis.

Human verification remains unchecked:

  • Manually verify repeated unit-tab switches and returning to Units on a physical iPhone.
  • Manually verify artwork/outfit changes and opening another unit.

UI evidence and limits

The baseline reproduced redundant roster revision/card replacement and unchanged portrait remounts. Chromium/WebKit captures did not reproduce the reported physical-device tab blanking. This change removes the observed resource churn; physical iPhone confirmation remains outstanding. Active-view selectors exclude the outgoing transition clone. No real-provider request or user save was used.

The browser workflow preserves separate core/audio jobs and the audio fixture's loopback policy. Unit-art and existing Units coverage run in the core job.

Documentation impact

The package README and 1.21.2 release notes describe the repair. No Engine user documentation changes.


🔄 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/1711 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gacha-unit-art-flicker` --- ### 📝 Commits (6) - [`f0d9f12`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f0d9f12357bd45c14fff55b9865ae178021eab0d) chore(gacha-forge): track unit artwork flicker repair - [`f643149`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f643149d9e0f6baa8f8bd7cc815bd578534f71d1) fix(gacha-forge): preserve decoded unit artwork during navigation - [`61f0430`](https://github.com/Pasta-Devs/Marinara-Agents/commit/61f0430cd75d624c5bfa98b3bbeb0cb42bf972e7) merge: resolve unit artwork against current staging - [`94d9f13`](https://github.com/Pasta-Devs/Marinara-Agents/commit/94d9f130de2326ac74f395290f5c04eb29c80c93) merge: integrate published artwork into unit-art worktree - [`7defcc2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7defcc2a9deaa59fcec4fa45e822a76388f0fe68) merge: integrate published banner diagnostics and publish unit art stability 1.21.2 - [`f7605e9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f7605e9e6e68df1420b2fa223c41f5807dd14583) merge: update unit art repair with published Story Writer staging ### 📊 Changes **19 files changed** (+694 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/gacha-forge-browser.yml` (+3 -1) 📝 `.github/workflows/pull-request-checks.yml` (+1 -0) ➕ `artifacts/gacha-forge-1.21.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+11 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+11 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+11 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+5 -0) 📝 `packages/gacha-forge/README.md` (+4 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+27 -0) 📝 `packages/gacha-forge/client.js` (+46 -4) 📝 `packages/gacha-forge/manifest.json` (+8 -3) ➕ `packages/gacha-forge/src/unit-art-client.mjs` (+40 -0) 📝 `tests/gacha-forge-bundle-rebuild.regression.mjs` (+1 -0) ➕ `tests/gacha-forge-unit-art.regression.mjs` (+192 -0) ➕ `tests/package-gacha-forge-unit-art.e2e.ts` (+314 -0) 📝 `tests/playwright.gacha-forge.config.ts` (+2 -0) </details> ### 📄 Description ## Linked issue Refs #1707 (kept open for physical iPhone retest). Implementation owner: @SpicyMarinara via Codex. ## Why this change Switching unit tabs remounted an unchanged portrait, and returning to Units rebuilt cached cards when an identical refresh arrived. Retain decoded artwork during those transitions while preserving initial loading and real artwork updates. ## What changed - Keep the successfully decoded portrait node for the same unit and normalized image URL. Different units, changed artwork/outfits and failed or loading images use their normal replacement path. - Preserve the cached roster revision for an identical refresh. Loading status, card counts and changed card data still update. - Publish Gacha Forge **1.21.2** through the reversible source ledger and official builder, with focused regressions and installed-package browser coverage. ## Package and security impact Built on actual staging `adaa55713acce32835f565aeba532b49055bd4e5`, preserving the published Story Writer, artwork and banner-diagnostics changes. The strict-base merge inherits Story Writer without changing this package or its archive bytes. Capability API **1.385**, permissions, entrypoints, storage and restart behavior are unchanged. Saved worlds remain after uninstall. Only the existing client payload changes; the only added payload is `src/unit-art-client.mjs`. The server and every other existing payload match staging exactly. Reversing only the unit-art patch reconstructs staging's client byte for byte. Published archives remain unchanged; the superseded, unpublished 1.20.2 candidate is removed. Artifact SHA-256: `4f3922f49dbeb65300692178c0e66fa8aab0ad993ff81311f82b4e9d7a75e97f` (8,689,884 bytes; 266 declared payloads). ## Validation - `npm run check`: passed, with 0 errors and 812 existing warnings. All **60** Gacha Node suites and **4** Story Writer suites passed after the strict-base merge, along with full catalog/lane/locale/release-note and diff checks. - Official no-op rebuild left package, archive and catalog bytes identical. Temporary historical catalog links were Git/hash verified, removed and their sparse flags restored. - The exact unchanged 1.21.2 artifact, API 1.385 installed UI: **20/20** cases passed across dark/light desktop and mobile Chromium/WebKit. All 16 active-view frame traces retained the same decoded image at opacity 1, across 750 sampled frames. Existing unit controls and real unit/artwork/outfit replacements passed. - Public manager lifecycle: install 1.21.1 → update 1.21.2 → fresh offline activation → uninstall → fresh offline activation passed. All **13** saved records and revisions survived; checksum and corrupt-archive controls passed. - All **5,371** files in the immutable Engine compiled-output inventory stayed unchanged. The proof used its production static/server outputs with disposable data; fixture servers were stopped and the UI package was uninstalled. - Full local CodeRabbit review against staging `adaa55713` completed with **0 findings** across 18 text files. The binary archive was excluded and verified separately. Independent strict integration review found no additional issue. - Final-head hosted CI (`f7605e9e6`): catalog **100/100** commands, including all four Story Writer suites; CodeQL passed; core **49 passed / 1 skipped**, audio **48 passed** (**98** tests total). Both browser jobs used actual Engine staging `f258e40d3a41e7b049620d8e0637ecc892a31256`. - Final-head Dottore discharge (run 40256139584) carried forward the genuine full review of `7defcc2a9` because the strict-base integration introduced no new PR diff: **Viable, With Notes**, 0 defects, 2 optional cleanup notes, 0 unresolved threads. Source tracing confirms the portrait contains only its image, with mutable controls as siblings and independent cloned outgoing layers. The roster starts as `null`; its initial empty response advances the revision, while loading/ready state is keyed separately. No behavioral repair was warranted by these questions. - Merged to staging as `885a32d546e511d013b2955b74df25bd2797b46c`; post-merge CodeQL run 40256825914 passed both JavaScript/TypeScript and Actions analysis. Human verification remains unchecked: - [ ] Manually verify repeated unit-tab switches and returning to Units on a physical iPhone. - [ ] Manually verify artwork/outfit changes and opening another unit. ## UI evidence and limits The baseline reproduced redundant roster revision/card replacement and unchanged portrait remounts. Chromium/WebKit captures did not reproduce the reported physical-device tab blanking. This change removes the observed resource churn; physical iPhone confirmation remains outstanding. Active-view selectors exclude the outgoing transition clone. No real-provider request or user save was used. The browser workflow preserves separate core/audio jobs and the audio fixture's loopback policy. Unit-art and existing Units coverage run in the core job. ## Documentation impact The package README and 1.21.2 release notes describe the repair. No Engine user documentation changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:05:59 +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#1704
No description provided.