mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #916] [MERGED] Fix game mode empty response recovery #4835
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#4835
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/916
Author: @cha1latte
Created: 5/16/2026
Status: ✅ Merged
Merged: 5/16/2026
Merged by: @cha1latte
Base:
staging← Head:fix/game-empty-response📝 Commits (1)
096c8b6Fix game mode thinking-only response recovery📊 Changes
1 file changed (+8 additions, -9 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+8 -9)📄 Description
Linked issue
No linked GitHub issue. Bug report was provided directly in Codex; open an issue before final submission if the team wants every PR linked.
Why this change
The AI returned an empty responsewhen an OpenAI-compatible provider returns usable GM narration in a reasoning/thinking field but no visiblecontent.What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --dir packages/server exec tsx scratch/game-empty-response-repro.tsbefore the fix: the generated SSE includedThe AI returned an empty responseand no assistant message was saved.content_replace, no empty-response error was emitted, and the assistant message was saved with the recovered narration.pnpm checkpassed locally.Docs and release impact
No docs or release metadata changes needed for this narrow server-side recovery fix.
UI evidence (if applicable)
N/A. The visible toast is caused by the server SSE error path; Codex verified the server
/api/generateSSE and message persistence path directly with a focused scratch repro.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.