mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5938] Experience launch nests the whole setup config inside itself and caps the copy at 32k, failing on a field players never see #3284
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3284
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?
Originally created by @kolacheee on GitHub (Sep 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5938
Originally assigned to: @SpicyMarinara on GitHub.
Found during Pixelforge 0.16.2 design work; filing the Engine-side half. Pixelforge will fix what it can package-side, but the mechanism below affects every installed Experience.
The double-nesting. When an Experience launches a game,
NewGameExperienceChooser.tsx(~line 100) sends the package's returned config twice in onesetupConfig:The nested copy exists so Zod doesn't strip unknown experience fields (the comment says so), but because
experienceConfig: cfgcomes after the spread, it also overwrites anyexperienceConfigkey the package itself put in its config — which is why package readers in the wild probe two nesting depths (Pixelforge's_configWorldNamechecks bothexperienceConfig.worldNameandexperienceConfig.experienceConfig.worldName).Where it bites.
MAX_EXPERIENCE_CONFIG_CHARS = 32_000(game.routes.ts:1715) measures the nested copy — which is the entire package config, including classic setup fields likesettingthat have no length cap of their own. Today's packages write ~1 KB there so it never fires. But the moment an Experience legitimately carries player prose (a long Setting), the launch 400s with a validation error namingexperienceConfig— a field no player has ever seen or typed into. The cap's own comment ("Generous next to what a setup wizard actually collects") stops being true once Experiences consume the classic wizard's collected fields, which is the direction Pixelforge is headed.Maintainer's note when this surfaced: the cap "doesn't need to be that small."
Two candidate Engine fixes (either resolves it; both are behavior changes for every installed Experience, so this issue exists to decide rather than to prescribe):
Pixelforge-side mitigation (shipping in its 0.16.2 regardless): keep its own nested payload to its own keys so it contributes as little as possible to the measured copy.
@SpicyMarinara commented on GitHub (Sep 8, 2026):
@SpicyMarinara (Codex) is handling this issue in the maintainer-requested Issue Sweep PR #5962. Existing implementation PRs, draft PRs and issue-linked branches were checked before starting. The fix will reuse existing code and include focused regression proof; this comment records ownership, not completion.