mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7679] [MERGED] refactor(generate): move the hidden command anchor save into generate/hidden-command-anchor.ts #7878
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#7878
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/7679
Author: @Gunterlie
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @Gunterlie
Base:
staging← Head:chore/7573-hidden-command-anchor📝 Commits (1)
0cdeb0drefactor(generate): move the hidden command anchor save into generate/hidden-command-anchor.ts (#7573)📊 Changes
3 files changed (+62 additions, -27 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+9 -20)➕
packages/server/src/routes/generate/hidden-command-anchor.ts(+45 -0)📝
scripts/regressions/maintenance-lifecycle.regression.ts(+8 -7)📄 Description
Linked issue
Part of #7573 (eighth slice).
Why this change
A turn that has only commands (or GM verbs, game state tool calls, a spatial move) and no visible prose still needs a message to anchor them: a blank swipe on regenerate, otherwise a blank assistant message, marked command-only and hidden. The route built that message inline in the empty-response branch. As
saveHiddenCommandAnchorit is one named step with its own inputs, and the empty-response branch reads as gate → save anchor → run the turn's work.No behaviour change.
What changed
packages/server/src/routes/generate/hidden-command-anchor.tswithsaveHiddenCommandAnchor(chats, anchor). Same storage calls in the same order, same extra fields (hiddenFromUser,hiddenFromAI,commandOnly,sceneRequest,conversationCommandContent,isGenerated,encryptedReasoning), and the same return value when no message was saved.generate.routes.tscalls it. The gate, the GM verb run, the game state persistence, the spatial step and the return stay in the route.scripts/regressions/maintenance-lifecycle.regression.ts: the anchor source pin now reads the new file and pins the route call.Proof:
scripts/regressions/command-only-regenerate.regression.tsruns the real route through a fixture provider and checks the anchor's swipes and extra. Two mutations of the helper (always hide from the user; skip the blank swipe on regenerate) each fail it.scripts/regressions/game-tool-outcomes.regression.tscovers the new-message branch through the real route: the anchor is hidden and the turn's state writes land on it.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results (not a substitute for the boxes above):
pnpm check: passed.command-only-regenerate,maintenance-lifecycle,capability-gm-verb-runtime,spatial-only-message-visibility,game-tool-outcomes.hiddenFromAI/conversationCommandContent) is a gap from before the move and is left out of this pure move.Manual verification notes
[react: …]): the reaction applies and no blank bubble shows.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.