mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8172] [MERGED] fix(game): retell a textless tool round for Claude, lift a written-out plan off the scene, roll harm into the sheet in one-request turns, name the right who #8139
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#8139
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/8172
Author: @kolacheee
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-nibhp6📝 Commits (9)
236ea56fix(game): retell a textless tool round for Claude, lift a written-out plan off the scene, put rolled harm on the sheet in one-request turns1382ba9fix(game): lift a written-out plan only when it is one, after leading blank lines, and never from the player's own line9a4b798fix(game): judge each leading paragraph on its own label before lifting it as a plan9dbcaf3docs(game): say what the planning label admits, not what it lifts08d520bfix(game): lift a plan's whole leading run, whichever paragraph names it a plan, and stop at an answer0a35558fix(game): keep a question or answer behind a plan with the sceneb879234fix(game): tell the Game Master a sheet command's who is the one the harm happens to2de0b0eMerge remote-tracking branch 'origin/staging' into claude/project-thread-nibhp60cb3103fix(game): name the payer of a spent resource as its who, and the player only when the player paid📊 Changes
5 files changed (+363 additions, -6 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+10 -0)➕
packages/server/src/services/game/gm-planning.ts(+39 -0)📝
packages/server/src/services/game/gm-prompts.ts(+10 -4)📝
packages/server/src/services/llm/providers/openai.provider.ts(+96 -2)📝
scripts/regressions/game-gm-turn-roller-party.regression.ts(+208 -0)📄 Description
Linked issue
Closes #8171
Why this change
A re-test of #8165 with a real Game Master still lost turns with
400: Invalid Anthropic Messages API request. The GM was Claude through an OpenAI-compatible endpoint that hands requests to Anthropic, with thinking on. The round whose replayedroll_diceturn had text went through, and both rounds whose turn had none were refused.The re-test found three more problems:
What changed
opus-5-5.Opening scene:,Plan:), may includeLocation:,Setting:orBeats:paragraphs, and is moved only when narration follows.Notes:,Checks:,Approach:,Goals:,Outline:andNext steps:.amount="[[roll: 1d6]]"). The placeholder pass already fills it in before the sheet pass reads the command, and the prompt's "never inside another tag" rule now makes that one exception.who: the sheet rules now say a command'swhois the one the narration names. That is whoever takes the harm or the healing, or whoever pays the resource, and it is the player only when the player is the one. The GM is told to check it against the narration, not against whoever acted or spoke last.Validation
game-gm-turn-roller-party:claude-opus-5-5,opus-5-5andanthropic/sonnet-5.wholine, and a placeholder filled inside a sheet command.pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
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)
None: this changes server-side request shape, prompt text and saved content.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.