mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1470] [MERGED] fix(gacha-forge): 1.8.13 — Unicode location IDs and iPhone landscape layout #1475
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1475
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1470
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/gacha-forge-unicode-landscape📝 Commits (5)
a222c86fix(gacha-forge): 1.8.13 — Unicode location IDs and iPhone landscape layout3db7d84Merge branch 'staging' into fix/gacha-forge-unicode-landscapec452328test(gacha-forge): compare the whole stored places document after gsPlacesa053f35Merge branch 'staging' into fix/gacha-forge-unicode-landscapebccf908Merge branch 'staging' into fix/gacha-forge-unicode-landscape📊 Changes
14 files changed (+249 additions, -34 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+3 -0)➕
artifacts/gacha-forge-1.8.13.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -0)📝
packages/gacha-forge/CHANGELOG.md(+5 -0)📝
packages/gacha-forge/README.md(+2 -0)📝
packages/gacha-forge/client.js(+28 -3)📝
packages/gacha-forge/manifest.json(+5 -5)📝
packages/gacha-forge/server.mjs(+2 -2)➕
tests/gacha-forge-location-ids.regression.mjs(+162 -0)📄 Description
Pull request
Linked issue
Closes #1460
Closes #1461
Why this change
a-z0-9, so달빛 숲becomes an empty ID. The server then skips the place and/backgroundrefuses it. Names that mix Hangul and digits lose the Hangul, so숲 1and동굴 1both become1and share one picture. The same happens in every non-Latin script.:host { all: initial }reset undoes the Engine's-webkit-text-size-adjust: 100%, so iPhone Safari enlarges the game's text when the phone turns to landscape. Also, the fullscreen button does nothing on iPhone, because iPhone Safari has no element fullscreen.What changed
Package:
gacha-forge1.8.12 → 1.8.13 (patch; it is above every version the catalog has published). The rebuild covers the manifest,artifacts/gacha-forge-1.8.13.zip, the v2/v3/legacy catalog entries andnotes.json. The packageCHANGELOG.mdand the package README's per-release paragraph are updated too.How the bundles are produced.
client.jsandserver.mjsare pre-built esbuild bundles. Their source tree lives outside this repository (see the header ofscripts/build-gacha-forge-package.mjs). That builder only re-derives hashes, the locale, the ZIP and the catalog from the committed bytes. The fix is therefore applied to the committed bundles, the same way every previous Gacha Forge release here was. This builder does not read an Engine checkout, so it needs noMARINARA_ENGINE_ROOTpin. Before any edit, I rebuilt the unchanged tree: it produced no diff, so the 1.8.12 build reproduces byte for byte. The same changes need to be ported to the external source tree before the next bundle drop. The new regression fails if a drop loses them.Location IDs (#1460):
gs()and the client'soc()now run the same normalization. They apply NFC, trim and lowercase the name, and turn every run of characters outside\p{L}\p{M}\p{N}into-. The result is capped at 60 code points, so a surrogate pair is never split. An ASCII name keeps exactly the ID it had before. The regression checks this against the old function on 4000 random ASCII strings.\p{M}) are kept as well as letters and digits. Without them, Hindiकालाandकिला(and Thai names that differ only by a tone mark) would still collide.gsPlaces(). It also answers to each stored place's new ID, computed from the stored name, and never overwrites a key that already exists. Writes still go to the raw document, so nothing is rewritten. A place painted under an old lossy ID (for examplech-teau-rougefor "Château Rouge") is still found, and/locationsreturns it under the ID the client now computes. Two names that used to collide stop sharing a picture./backgroundgoes throughbgSlug(). It accepts Unicode IDs and refuses a slug that contains/,\,..or a control character (\p{Cc}). The IDs thatgs()produces can never contain these anyway.ir()(built ongs()) also dropped Hangul places while a chapter plan was being written. Those places now survive.iPhone landscape (#1461), using theme tokens only and no new colours or copy:
-webkit-text-size-adjust: 100%andtext-size-adjust: 100%on.gf-arenaand its descendants). This also reaches the leaving screen's transition clone, whose own:hostrule would reset it..gf-arenasetsmax-height: 100vhand thenmax-height: 100dvh, so the 16:9 stage is never fitted against a box taller than the visible screen.env(safe-area-inset-*)instead of0. Outside fullscreen the Engine's own shell already insets for the notch, so the arena does not add a second inset.(orientation: landscape) and (max-height: 500px), the frame drops its padding, border and shadow so the stage gets every pixel. The Settings screen also tightens its body and plate padding, and its rail and pane still scroll inside the stage.requestFullscreenis missing ordocument.fullscreenEnabled === false, as on iPhone Safari), the fullscreen toggles are removed and the bar is measured again. No new fullscreen button is added.Regression:
tests/gacha-forge-location-ids.regression.mjsruns the shippedgs,ir,bgSlug,gsPlacesandoccode taken from the committed bundles, and pins the landscape rules. It is wired intopull-request-checks.yml. Run against the 1.8.12 bundles, it fails.Package and security impact
gacha-forge>=2.4.4 <4.0.0) and the Capability API are unchanged.client.jsandserver.mjschanged as described above./backgroundinput validation is now stricter forslug.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdCommands I actually ran on this branch:
npm ci: oknode scripts/build-gacha-forge-package.mjson the unchanged tree: no diff. After the change it builtgacha-forge 1.8.13(artifact of 7843821 bytes), and a second rebuild was stable.npm run check: exit 0. Prettier is clean, and ESLint reports 0 errors and none of the existing warnings come from the new test.node tests/gacha-forge-location-ids.regression.mjs: passed. The same test fails against theorigin/staging(1.8.12) bundles.node scripts/test-catalog-lanes.mjs: passednode scripts/validate-package-locales.mjs: passednode scripts/validate-catalog.mjs:Catalog lanes valid: v2=39, v3=39; legacy=v2node scripts/tests/catalog-release-notes.regression.mjs: OKnode scripts/tests/catalog-generatedat-determinism.regression.mjs: OKnpm run test:security: passednode scripts/validate-package-locale-keys.mjs: passednode --checkon both bundles: okgit diff --check: cleanManual verification notes
Nothing below has been tested on a device or in a running Engine yet:
달빛 숲,수정 동굴) that each location's background paints and shows in the story.숲 1and동굴 1that the two places get different backgrounds.Documentation impact
The package README (
packages/gacha-forge/README.md) gets its 1.8.13 release paragraph, andpackages/gacha-forge/CHANGELOG.mdgets its entry. The repository catalog README needs no change.UI evidence (if applicable)
None yet. iPhone screenshots should come from the manual verification above.
@SpicyMarinara
Summary by CodeRabbit
Bug Fixes
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.