mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1076] [MERGED] fix(gacha-forge): 1.8.7 — the character card library is read page by page, all of it #1280
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#1280
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/1076
Author: @SonaGat3
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @SonaGat3
Base:
staging← Head:feature/gacha-forge-1.8.7📝 Commits (1)
51432aafix(gacha-forge): 1.8.7 — the character card library is read page by page, all of it📊 Changes
12 files changed (+254 additions, -230 deletions)
View changed files
➕
artifacts/gacha-forge-1.8.7.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(+4 -0)📝
packages/gacha-forge/README.md(+2 -0)📝
packages/gacha-forge/client.js(+115 -115)📝
packages/gacha-forge/manifest.json(+5 -5)📝
packages/gacha-forge/server.mjs(+86 -86)📄 Description
Linked issue
Closes #1075
Why this change
stagingcarries Gacha Forge 1.8.6. A player with just over 200 character cards could only useabout half of them: "it only loads up until about M… If I go and delete a character from ME
entirely and go back to the cast list, the next card does show up." Cards past that point showed in
their cast as "No longer in your library", and they were about to start deleting cards from
their Engine library to work around it.
The package asked for a page and treated it as the library. It read
/api/characters/catalog?limit=500, and the Engine caps any limit atLIBRARY_PAGE_LIMIT(100) inpackages/server/src/utils/list-pagination.ts. Measured against a running Engine: asked for 500,answered
limit: 100, hasMore: true. Sortedname-asc, a 200-card library therefore ends aroundthe letter M — exactly where the player saw it end.
The renaming puzzle is the same bug, not a second one. The cast stores card IDs and resolves
each name against that list, so a card outside the first hundred cannot be found and is drawn as a
ghost. Renaming Victoria to Avictoria moves her into the page and she reappears; renaming her
back moves her out. Leo, an L, was inside the page all along, which is why he always tracked
correctly.
And the same single page fed the preset pruning, which decides what the Engine still holds when
a preset is loaded. Its guard — a page that came back FULL is not the whole library — compared the
page against the 500 that was asked for, not the 100 that arrived, so it never fired. For this
player, loading a preset would have silently dropped every card past the hundredth as "no longer in
the Engine".
What changed
readCardCatalog()walks every page and now lives inapi.js, the module that owns the pipeto the Engine:
limit=100&offset=…&sort=name-ascuntilhasMoreclears.handing it over is worse than handing over none: the wizard keeps the list already on screen and
its "could not read your character cards" notice, and the preset pruning drops nothing — the same
rule 1.8.5 already applied to a list that could not be read at all.
hasMorethat never clears stops on its own after 60 pages (6,000 cards) — and stops byrejecting, under the rule above.
library, and there is no next page to ask for.
Generated outputs
packages/gacha-forge/client.js,server.mjs,manifest.json, the artifact zip, the catalogfamily and the release-notes sidecars were re-derived by
node scripts/build-gacha-forge-package.mjsfrom the committed payload bytes. Nothing washand-edited; re-running the builder after the commit leaves the tree clean.
Package and security impact
capabilityApi, theenginerange, permissions, contribution slots, assets,builtAgainstandrestartRequiredare unchanged. The only manifest field that moved isversion, verified bydiffing against the
stagingmanifest with the hash lines filtered out.Engine's own catalog route that the package already made — now asked for in pages instead of one
oversized page. A library of 200 cards costs two extra calls, each with the same 2 s ceiling.
client.js1,433,941 → 1,434,560 bytes,server.mjs492,116 → 492,474, artifact7,826,214 → 7,827,191. All art is byte-identical (245 of 247 payload files unchanged).
Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
origin/staging;git ls-files --eol | grep -c w/crlf→ 0;git diff --check "origin/staging...HEAD"clean; the build is reproducible.byte-identical to the sideloaded install; only
manifest.jsondiffers, which every installerrewrites.
pull-request-checks.ymlatorigin/staging, so its 24 steps cannot go stale: 23 of 24green. ⚠️
npm run test:securityfails on Windows for a reason unrelated to this change(
catalog-path-safety.regression.mjsexpects a POSIX path and getsD:\tmp\package\assets\icon.png); its log never names gacha-forge, and it failed identically on aclean
stagingcheckout for the 1.8.2, 1.8.5 and 1.8.6 PRs.probe — all green (734 s).
serving three pages (100 + 100 + 2) is read as 202 cards in 3 calls; a second page that 500s
rejects the whole read; an endless
hasMorestops and rejects; a plain array is read once. Server:a preset whose card sits on the SECOND page keeps that card — against the old code the probe
reports
{"cards":[],"dropped":2,"paginas":[0]}, that is, one page read and both cards pruned,including the one that exists.
Documentation impact
packages/gacha-forge/README.mdgains the 1.8.7 paragraph;packages/gacha-forge/CHANGELOG.mdgains 1.8.7. The repository README is unchanged.
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.