mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8664] [MERGED] feat(chat): scenario step in the chat setup wizard (scenario setup 2/5) #8731
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#8731
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/8664
Author: @Gunterlie
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @Gunterlie
Base:
scenarios-for-hoes← Head:scenarios/02-wizard-step📝 Commits (4)
ed05dbcfeat(chat): scenario step in the chat setup wizard15946cafix(generate): use the chat scenario override in conversation promptsfdc52d6fix(chat): scenario step review fixes086804efix(chat): lock the scenario opening after it reaches the chat📊 Changes
6 files changed (+531 additions, -34 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+428 -33)📝
packages/client/src/hooks/use-scene.ts(+11 -1)📝
packages/client/src/localization/locales/en.json(+24 -0)📝
packages/server/src/routes/generate.routes.ts(+2 -0)📝
packages/server/src/services/generation/character-prompt-context.ts(+18 -0)➕
scripts/regressions/conversation-scenario-override.regression.ts(+48 -0)📄 Description
Why
Part 1 (#8660) added a server route that drafts a premise and an opening. This part gives users the feature: an optional last step in the chat setup wizard where they describe what they are in the mood for, preview and edit the result, and start the chat with exactly that.
This is part 2 of 5 of the scenario setup feature; it merges into the feature branch
scenarios-for-hoes. Planned work, no linked issue.What changed
Wizard step "Set up a scenario" (roleplay and conversation; not game, not multiplayer)
groupScenarioTexttogether with the setup-complete flag. No model call on start; no stock greeting.role="status"region.useScenarioDraft(); newchat.wizard.scenario.*keys inen.jsononly.Server fix: conversation chats ignored the scenario override
injectIdentityFallbackMessages, which always used each card's ownscenario. So both the new premise and the existing chat-settings scenario override had no effect in conversation chats.marker-expander.ts): whengroupScenarioTextis set, it drops each card's scenario and adds the override once. Gated to conversation mode; roleplay/game prompts are unchanged.scripts/regressions/conversation-scenario-override.regression.ts(fails without the fix).Validation
pnpm checkpassed; client and servertscpassed; the 3 related regressions pass.POST /api/generatedebug-prompt proof on a throwaway server (dummy connection, no model reply): conversation with override → premise 1 / card scenario 0; without → 0 / 1; roleplay unchanged (1 / 0 and 0 / 1).Manual verification
Known gaps (later work)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.