mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8671] [MERGED] feat(scene): lasting facts, story direction and opening moment (scenario setup 3) #8737
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#8737
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/8671
Author: @Gunterlie
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @Gunterlie
Base:
scenarios-for-hoes← Head:scenarios/03-facts-direction📝 Commits (3)
7d6547bfeat(scene): keep lasting facts apart from story direction in scenario draftsb3b4b67feat(chat): story direction field in the scenario stepcb58824fix(scene): keep the user's story direction when revising📊 Changes
7 files changed (+98 additions, -17 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+34 -7)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/routes/scene.routes.ts(+21 -9)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/types/scene.ts(+3 -0)➕
packages/shared/src/utils/scenario-text.ts(+6 -0)📝
scripts/regressions/scene-scenario-draft.regression.ts(+31 -1)📄 Description
Why
PR 2 saves the drafted premise as the chat's scenario for the whole chat. When the premise described the starting event ("we are stuck in an elevator") or a wish for the story ("slow-burn romance"), the model treated both as permanent facts: characters stayed stuck in the opening situation, or acted as if the romance already existed.
This is part 3 of the scenario setup feature; it merges into the feature branch
scenarios-for-hoes. Planned work, no linked issue.What changed
SceneScenarioDraft.direction(may be empty); the parser defaults it to"".composeScenarioText(premise, direction)(new,packages/shared/src/utils/scenario-text.ts) saves the premise plus, only when a direction is set, a labelled block:[Story direction — preferences for how the story may develop, not established facts: …]Both wizards use it. No prompt assembly code changed.
revise.current.directionis optional (old clients keep working); when present it must be text ≤ 8000 characters.Validation
pnpm checkpassed (before the last prompt-only fix); after it: servertscpassed, Prettier passed, regression passed.scripts/regressions/scene-scenario-draft.regression.tsextended: missing/empty direction, revise byte-identity in both directions,composeScenarioTextwith no / whitespace / set direction. It fails without the server change.pnpm localization:checkpassed.groupScenarioTextraw, so they also see the direction block.Manual verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.