mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #230] [MERGED] Feature: Add scene fork roleplay actions #4517
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#4517
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/230
Author: @OnlyJimmy
Created: 4/25/2026
Status: ✅ Merged
Merged: 4/27/2026
Merged by: @LukaTheHero
Base:
main← Head:scene-fork-roleplay📝 Commits (8)
9e58c66Add scene fork roleplay actions05f36aeAddress scene fork review feedback3a49fa6Clarify scene fork swipe metadata copyb683d03Hide scene fork context and tighten fork validation2eb93bcAvoid message metadata fallback for copied swipe3f52540Document scene fork behaviord7bdaafAddress scene fork review feedback4e5d5cePreserve scene fork message swipes📊 Changes
9 files changed (+491 additions, -17 deletions)
View changed files
📝
packages/client/src/components/chat/ChatArea.tsx(+13 -1)📝
packages/client/src/components/chat/ChatMessage.tsx(+22 -0)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+23 -1)📝
packages/client/src/components/chat/SceneBanner.tsx(+34 -2)📝
packages/client/src/hooks/use-scene.ts(+60 -2)📝
packages/server/src/routes/scene.routes.ts(+254 -0)📝
packages/server/src/services/storage/chats.storage.ts(+52 -11)📝
packages/shared/src/types/chat.ts(+2 -0)📝
packages/shared/src/types/scene.ts(+31 -0)📄 Description
Why this change
Active scenes could be concluded or abandoned, but there was no way to preserve a scene as an independent roleplay thread. This adds a focused fork flow so users can keep narrative continuity without carrying over scene lifecycle behavior.
What changed
What changed
POST /api/scene/forkwithcloneandconvertmodes.Clone from hereto active scene message actions, copying scene continuity and messages up to the selected message into a standalone roleplay chat.Convertbeside the scene discard controls, with confirmation, to detach the active scene into a standalone roleplay.Validation
pnpm checkManual verification notes
Docs and release impact
UI evidence
Clone Button

Clone Result

Convert Button

Confirmation Prompt

Summary by CodeRabbit
New Features
UX Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.