[PR #1049] [MERGED] fix(gacha-forge): 1.8.6 — the portrait notice stays inside the package's own box #1265

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

📋 Pull Request Information

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

Base: staging ← Head: feature/gacha-forge-1.8.6


📝 Commits (3)

  • 421088e fix(gacha-forge): 1.8.6 — the portrait notice stays inside the package's own box
  • bec9d58 Merge branch 'staging' into feature/gacha-forge-1.8.6
  • 3c6da2b Merge branch 'staging' into feature/gacha-forge-1.8.6

📊 Changes

11 files changed (+89 additions, -64 deletions)

View changed files

➕ artifacts/gacha-forge-1.8.6.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/gacha-forge/CHANGELOG.md (+3 -0)
📝 packages/gacha-forge/README.md (+2 -0)
📝 packages/gacha-forge/client.js (+45 -43)
📝 packages/gacha-forge/manifest.json (+3 -3)

📄 Description

Linked issue

Closes #1048

Why this change

staging carries Gacha Forge 1.8.5. A player sent one photo from a phone: the game's own
"Landscape only" notice drawn on top of the Engine's Characters panel. Their words: "On Firefox
Mobile, I still see Gacha Forge block my access to other modes (character view, etc.) with the
Landscape warning."
It is not Firefox — the same thing was measured in Chrome.

Measured at 412×915 with a coarse pointer, the shell's own CSS against the Engine's own panel
numbers (fixed, z-50, top = calc(env(safe-area-inset-top) + 3rem), read from AppShell.tsx).
Two assumptions this package had written down as facts were both wrong:

  • The notice was anchored to the VIEWPORT. It hangs off .gf-arena, and the arena was
    position: static. container-type: size does not make an element the containing block of an
    absolutely positioned descendant.
  • Its z-index: 70 beat the panel's z-50. A shadow root does not isolate stacking by itself,
    so a z-index written inside the package competes in the host document's stacking context.

document.elementFromPoint in the middle of the screen returned
marinara-capability-gacha-forge, not the panel — so nothing in that panel could be reached. The
game's own fullscreen button painted over the panel as well, which is what shows the notice was
never a special case.

Second time. When it first covered the Engine's navigation, the notice was moved
env(safe-area-inset-top) + 3rem down the SCREEN — the Engine's own constants, copied in because a
package cannot import them. That treated the symptom, and only looked right because the Engine's bar
is exactly 3rem tall.

What changed

  • .gf-arena declares the package's box twice: position: relative (it contains every absolute
    descendant) and isolation: isolate (no z-index the package writes can leave it). Measured, only
    the first one is not enough: the notice lands inside the box and still paints over the panel.
  • The notice fills that box (inset: 0 instead of the four screen-relative offsets), so the two
    constants copied from the Engine's layout are gone. With the fix, the middle of the screen returns
    the Engine's panel at every point tested.
  • The bench proves both declarations, and reads the body of each rule. position: relative
    appears in six other rules of shell.js; a check looking for the bare words would stay green
    forever. The package's existing rule — no sheet may declare position: fixed — stays: it was
    necessary and, as this shows, not sufficient. The comment that claimed a shadow could not cover
    the Engine's chrome now states what was measured instead.

Generated outputs

packages/gacha-forge/client.js, manifest.json, the artifact zip, the catalog family and the
release-notes sidecars were re-derived by node scripts/build-gacha-forge-package.mjs from the
committed payload bytes. Nothing was hand-edited; re-running the builder after the commit leaves the
tree clean.

Package and security impact

  • capabilityApi, the engine range, permissions, contribution slots, assets, builtAgainst and
    restartRequired are unchanged.
    The only manifest field that moved is version, verified by
    diffing against the staging manifest with the hash lines filtered out.
  • Routes: 121 → 121. None added, none removed. No server change at all: server.mjs is
    byte-identical to 1.8.5.
  • No new external services, no new stored data, no new input of any kind. The change is three
    CSS declarations.
  • Payload: client.js 1,433,495 → 1,433,941 bytes, artifact 7,825,768 → 7,826,214. All art is
    byte-identical (246 of 247 payload files unchanged).

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

⚠️ Why the fourth box is unticked. 1.8.6 is not published, so it cannot be installed through
the Engine's download path. The same bytes were installed by sideload into a staging Engine: the
Engine pings 1.8.6 and the game opens with no console errors.

Manual verification notes

  • Branch hygiene. Branched from the current origin/staging; git ls-files --eol | grep -c w/crlf → 0; git diff --check "origin/staging...HEAD" clean; the build is reproducible.
  • Repo checks run locally, in the workflow's own order — the script is generated from
    pull-request-checks.yml at origin/staging, so its steps cannot go stale: 23 of 24 green.
    ⚠️ npm run test:security fails on Windows for a reason unrelated to this change
    (catalog-path-safety.regression.mjs expects a POSIX path and gets
    D:\tmp\package\assets\icon.png); its log never names gacha-forge, and it failed identically on a
    clean staging checkout for the 1.8.2 and 1.8.5 PRs.
  • Package's own suite: eleven probes plus a 132-script bench compared run to run, plus the phone
    probe — all green (672 s). The three new checks were each verified failing against the previous
    code.
  • Measured in a real browser (the built client's own stylesheet, mounted in a shadow root under
    a replica of the Engine's mobile panel, at 412×915 with touch emulation): before, the notice sat
    at y=48 with the viewport's full height and owned every point tested; after, it is exactly the
    arena's rectangle and the panel owns those same points.

Documentation impact

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

packages/gacha-forge/README.md gains the 1.8.6 paragraph; packages/gacha-forge/CHANGELOG.md
gains 1.8.6. The repository README is unchanged.

UI evidence (if applicable)

Summary by CodeRabbit

  • Bug Fixes
    • On phones held upright, the “Landscape only” notice no longer covers the rest of Marinara. Characters, lorebooks, and other open overlays remain accessible.
  • Release
    • Gacha Forge is updated to version 1.8.6.

🔄 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/1049 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 9/23/2026 **Status:** ✅ Merged **Merged:** 9/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/gacha-forge-1.8.6` --- ### 📝 Commits (3) - [`421088e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/421088e7237e2b05aa4960c8e8e007aa33bb3983) fix(gacha-forge): 1.8.6 — the portrait notice stays inside the package's own box - [`bec9d58`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bec9d58062a2fe91e0435b721c9bc0e27382cdbb) Merge branch 'staging' into feature/gacha-forge-1.8.6 - [`3c6da2b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3c6da2b7f6cae962e7475bc8d4bf4c1c27330722) Merge branch 'staging' into feature/gacha-forge-1.8.6 ### 📊 Changes **11 files changed** (+89 additions, -64 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.8.6.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/gacha-forge/CHANGELOG.md` (+3 -0) 📝 `packages/gacha-forge/README.md` (+2 -0) 📝 `packages/gacha-forge/client.js` (+45 -43) 📝 `packages/gacha-forge/manifest.json` (+3 -3) </details> ### 📄 Description ## Linked issue Closes #1048 ## Why this change `staging` carries Gacha Forge **1.8.5**. A player sent one photo from a phone: the game's own "Landscape only" notice drawn on top of the Engine's **Characters** panel. Their words: *"On Firefox Mobile, I still see Gacha Forge block my access to other modes (character view, etc.) with the Landscape warning."* It is not Firefox — the same thing was measured in Chrome. **Measured at 412×915 with a coarse pointer**, the shell's own CSS against the Engine's own panel numbers (`fixed`, `z-50`, `top = calc(env(safe-area-inset-top) + 3rem)`, read from `AppShell.tsx`). Two assumptions this package had written down as facts were both wrong: - **The notice was anchored to the VIEWPORT.** It hangs off `.gf-arena`, and the arena was `position: static`. `container-type: size` does **not** make an element the containing block of an absolutely positioned descendant. - **Its `z-index: 70` beat the panel's `z-50`.** A shadow root does not isolate stacking by itself, so a z-index written inside the package competes in the host document's stacking context. `document.elementFromPoint` in the middle of the screen returned `marinara-capability-gacha-forge`, not the panel — so nothing in that panel could be reached. The game's own fullscreen button painted over the panel as well, which is what shows the notice was never a special case. **Second time.** When it first covered the Engine's navigation, the notice was moved `env(safe-area-inset-top) + 3rem` down the SCREEN — the Engine's own constants, copied in because a package cannot import them. That treated the symptom, and only looked right because the Engine's bar is exactly 3rem tall. ## What changed - **`.gf-arena` declares the package's box twice**: `position: relative` (it contains every absolute descendant) and `isolation: isolate` (no z-index the package writes can leave it). Measured, only the first one is not enough: the notice lands inside the box and still paints over the panel. - **The notice fills that box** (`inset: 0` instead of the four screen-relative offsets), so the two constants copied from the Engine's layout are gone. With the fix, the middle of the screen returns the Engine's panel at every point tested. - **The bench proves both declarations, and reads the body of each rule.** `position: relative` appears in six other rules of `shell.js`; a check looking for the bare words would stay green forever. The package's existing rule — no sheet may declare `position: fixed` — stays: it was necessary and, as this shows, not sufficient. The comment that claimed a shadow could not cover the Engine's chrome now states what was measured instead. ### Generated outputs `packages/gacha-forge/client.js`, `manifest.json`, the artifact zip, the catalog family and the release-notes sidecars were **re-derived** by `node scripts/build-gacha-forge-package.mjs` from the committed payload bytes. Nothing was hand-edited; re-running the builder after the commit leaves the tree clean. ## Package and security impact - **`capabilityApi`, the `engine` range, permissions, contribution slots, assets, `builtAgainst` and `restartRequired` are unchanged.** The only manifest field that moved is `version`, verified by diffing against the `staging` manifest with the hash lines filtered out. - **Routes: 121 → 121.** None added, none removed. No server change at all: `server.mjs` is **byte-identical** to 1.8.5. - **No new external services**, no new stored data, no new input of any kind. The change is three CSS declarations. - **Payload:** `client.js` 1,433,495 → 1,433,941 bytes, artifact 7,825,768 → 7,826,214. All art is byte-identical (246 of 247 payload files unchanged). ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` > ⚠️ **Why the fourth box is unticked.** 1.8.6 is not published, so it cannot be installed *through* > the Engine's download path. The same bytes were installed by sideload into a `staging` Engine: the > Engine pings 1.8.6 and the game opens with no console errors. ### Manual verification notes - **Branch hygiene.** Branched from the current `origin/staging`; `git ls-files --eol | grep -c w/crlf` → **0**; `git diff --check "origin/staging...HEAD"` clean; the build is reproducible. - **Repo checks run locally, in the workflow's own order** — the script is generated from `pull-request-checks.yml` at `origin/staging`, so its steps cannot go stale: **23 of 24 green**. ⚠️ `npm run test:security` fails on Windows for a reason unrelated to this change (`catalog-path-safety.regression.mjs` expects a POSIX path and gets `D:\tmp\package\assets\icon.png`); its log never names gacha-forge, and it failed identically on a clean `staging` checkout for the 1.8.2 and 1.8.5 PRs. - **Package's own suite:** eleven probes plus a 132-script bench compared run to run, plus the phone probe — all green (672 s). The three new checks were each verified failing against the previous code. - **Measured in a real browser** (the built client's own stylesheet, mounted in a shadow root under a replica of the Engine's mobile panel, at 412×915 with touch emulation): before, the notice sat at y=48 with the viewport's full height and owned every point tested; after, it is exactly the arena's rectangle and the panel owns those same points. ## Documentation impact - [x] Updated this README catalog and package guidance - [ ] No documentation changes needed - [ ] Updated linked Marinara Engine documentation `packages/gacha-forge/README.md` gains the 1.8.6 paragraph; `packages/gacha-forge/CHANGELOG.md` gains 1.8.6. The repository README is unchanged. ## UI evidence (if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * On phones held upright, the “Landscape only” notice no longer covers the rest of Marinara. Characters, lorebooks, and other open overlays remain accessible. * **Release** * Gacha Forge is updated to version 1.8.6. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:07:21 +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#1265
No description provided.