mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8165] [MERGED] fix(game): stop the 400 after a roll_dice call, name who rolls, play a persona-less party as the player, keep narrated harm on the sheet #8136
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#8136
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/8165
Author: @kolacheee
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-nibhp6📝 Commits (7)
070c20cfix(game): name rollers, play a persona-less party as the player, keep narrated harm on the sheet08e551bfix(client): localize the roller label on dice and check cards7d86372Merge remote-tracking branch 'origin/staging' into claude/project-thread-nibhp60762cd4fix(game): stop the 400 on the tool round after a roll_dice call6010368fix(game): keep the roller on continued turns, pool spends and the post-roll summary33d424dfix(llm): log a refused request's provider body only in debug modec83545cfix(llm): sanitize the debug copy of a refused request's body and log its length at warn📊 Changes
15 files changed (+363 additions, -31 deletions)
View changed files
📝
packages/client/src/components/dice/AnimatedDiceRoll.tsx(+3 -0)📝
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(+2 -0)📝
packages/client/src/components/game/game-narration-format.ts(+11 -4)📝
packages/client/src/hooks/use-generate.ts(+3 -0)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/server/src/routes/generate.routes.ts(+22 -5)📝
packages/server/src/services/game/dice.service.ts(+38 -9)📝
packages/server/src/services/game/gm-prompts.ts(+44 -8)📝
packages/server/src/services/generation/game-gm-prompt-runtime.ts(+3 -0)📝
packages/server/src/services/llm/providers/openai.provider.ts(+46 -0)📝
packages/shared/src/types/game.ts(+3 -0)➕
scripts/regressions/game-gm-turn-roller-party.regression.ts(+172 -0)📝
scripts/regressions/game-text-dice.regression.ts(+5 -3)📝
scripts/regressions/one-request-dice-pool.regression.ts(+8 -0)📝
scripts/regressions/one-request-dice-prompt.regression.ts(+2 -2)📄 Description
Linked issue
Closes #8164
Why this change
A full playtest with a real Game Master (ruleset game, four party characters, no persona, Claude through an OpenAI-compatible endpoint with thinking on) found that every turn where the GM called
roll_dicefailed with a 400, that rolls never said who rolled, the GM played "you" as one party member, it narrated a sneak and a search as successes with no check, and a fall and a burn never reached HP.What changed
roll_dicecall replayed the assistant tool-call turn with Claude's thinking as plainreasoning_contentand no signature. The endpoint turned that into an unsigned thinking block and refused the request. For Claude models, only signed reasoning is replayed now (this also covers saved replies on later turns). A 400 from a Chat Completions endpoint now logs the provider's body and the request's shape (roles and the fields each message carried, no text), since the body alone was just "invalid request".[dice:]requests acceptwho="Name", kept on the saved record; aroll_dicetool roll's reason becomes the card's label, and the GM is asked to start that reason with the roller's name.who=(a check without one was rolled off a blank sheet).Validation
launcher-browser-readyfails only because this container has no IPv6 (EAFNOSUPPORTon::1)scripts/regressions/game-gm-turn-roller-party.regression.ts(rollers, persona-less party, sheet and check lines, unsigned Claude reasoning not replayed);one-request-dice-promptupdated for the reworded[dice:]androll_dicelinespnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
roll_dicecall and the next tool round (ending on the assistant tool-call turn and its tool result) was refused in about a second.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
The dice card header reads
Hessa · 1d8+4, a check cardBrannoc · Stealth check, and an inline badge🎲 Hessa: 1d8+4 → 9.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.