mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6059] [MERGED] fix(game): stop satellite connections inheriting chat-wide generation parameters #7044
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#7044
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/6059
Author: @Romuromylus
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/11/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/scene-analysis-parameter-scoping📝 Commits (3)
b7b87a7fix(game): stop satellite connections inheriting chat-wide generation parameters7730b5ffix(game): never inherit chat parameters on a fallback connection45acba3fix(game): report the connection the illustrator prompt resolver actually used📊 Changes
3 files changed (+147 additions, -13 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/game.routes.ts(+73 -13)➕
scripts/regressions/game-satellite-connection-parameters.regression.ts(+73 -0)📄 Description
Linked issue
Closes #6049
Why this change
gameSceneConnectionId, but the generation parameters for that call were still built by mergingmeta.chatParameters, the chat-wide bag the user edits against the main roleplay connection. ItscustomParameters(for example an OpenRouterproviderrouting object, or Vertex-only fields) therefore travelled to a different provider, which rejected the request with the OpenRouter 404 / Gemini 400 described in the issue.What changed
resolveStoredGameGenerationParameterstakes anincludeChatParametersoption (defaulttrue, so every untouched call site is unchanged).inheritsChatGenerationParametersguard: chat parameters are inherited only when the resolved connection is the chat's own connection (a chat on the random pool inherits whenever no dedicated connection was requested). A dedicated satellite connection, or a fallback such as the default agent connection, uses its own defaults plus the game setup parameters./scene-wrap(Scene Analysis), the illustration narration summarizer, the dynamic illustrator prompt rewriter, and the storyboard planner (both its game and roleplay branches).scripts/regressions/game-satellite-connection-parameters.regression.tspins the merge behaviour and the guard.Behaviour note: a satellite running on its own connection no longer picks up sampler tweaks (temperature, reasoning effort, etc.) set for the main chat either. That is the intended scoping, matching how Roleplay's summarizer and captioning already behave.
Out of scope: the game endpoints that accept a one-off
connectionIdin the request body (conclusion, progression, recruit cards, party turn, the lorebook keeper queued after a conclusion) still inherit the chat parameters. Those run the main roleplay flow through another connection for one call rather than acting as a separate agent, so today's behaviour is kept there.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkgreen locally;pnpm --filter @marinara-engine/server lintgreen;node scripts/run-regressions.mjs --filter game-satellite-connection-parametersand--filter prompt.regressionpass.providerparameter + Scene Analysis on a different provider; play a turn and confirm/scene-wrapsucceeds.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)
N/A (server-side only).
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.