mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2808] [MERGED] Fix empty Game setup JSON responses #5741
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#5741
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-Engine/pull/2808
Author: @SpicyMarinara
Created: 6/22/2026
Status: ✅ Merged
Merged: 6/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/fix-game-world-setup-empty-json📝 Commits (4)
6d7e1e4fix game setup empty json responses1a7a018document game setup reasoning carveout3113fa2Merge remote-tracking branch 'origin/staging' into codex/fix-game-world-setup-empty-jsondb8ea86centralize chat delete safety guard📊 Changes
5 files changed (+101 additions, -47 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/GENERATION_PARAMETERS.md(+1 -1)📝
packages/server/src/routes/chats.routes.ts(+7 -17)📝
packages/server/src/routes/game.routes.ts(+13 -5)📝
packages/server/src/services/storage/chats.storage.ts(+79 -24)📄 Description
Why this change
After the v2.0 update, some Game mode world generation calls returned an empty visible response twice, causing
parseGameJsonishto throwUnexpected end of JSON inputand/game/setupto return HTTP 422. The setup prompt was still assembled, but the Game generation option builder was implicitly enabling high reasoning/thinking and high verbosity for the strict setup JSON call whenever the user had not explicitly chosen those settings.That is risky for JSON-only setup responses because some providers can spend the call on hidden thinking or return no visible content, leaving the server with an empty string to parse.
What changed
Validation
pnpm --filter @marinara-engine/server lint(completed locally; passed on this branch)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.