mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7118] [Feature]: Let package threads start roleplay scenes (capability API 1.66) #3975
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#3975
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?
Originally created by @Gunterlie on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7118
Originally assigned to: @Gunterlie on GitHub.
What problem does this solve?
A roleplay scene (
/scene) can only branch from an Engine Conversation. Downloadable packages have their own conversations that are not Engine chats, for example Slurp's direct-message threads with Creators. Such a package cannot start a real scene from its thread today:/scene/planreads the origin Conversation's messages, so the package thread's context never reaches the planner./scene/createlocks the origin Conversation, so the package thread cannot be locked while the scene runs./scene/concludewrites the recap into the origin Conversation, so the result never goes back to the package.The only options are workarounds: put the thread into the plan prompt, or create a hidden Conversation as a fake origin. Neither gives a lock or a way back.
Proposed solution
Capability API 1.66 adds a
scenespermission andapi.registerSceneOrigin(provider). With it, a package thread can be a scene origin in the same way a Conversation is:getContext(originId)gives the cast, the persona, the recent transcript and notes that the origin owns.claim(originId, scene)locks the thread. It returns false when the thread already has a scene.release(originId, end)unlocks the thread and receives the outcome:concludedwith the recap, orabandoned,deletedorconverted.The scene routes accept
packageOriginin place of a Conversation, and the scene stays an ordinary scene chat. The browser view getsstartScene, which uses the planner and dialog or a plan the package wrote itself. It also getsopenChatand a "show this thread" signal for the way back. The API is package-neutral. Slurp is the first user.Alternatives considered
/scene/planprompt and create a scene from a hidden Conversation. There is no lock and no way back, and it adds a stray Conversation.Additional context
The Slurp side is in Pasta-Devs/Marinara-Agents. It adds a locked DM thread, a "busy" Creator, a recap card and the continuity ledger, and it needs this Engine release first.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: