mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7119] [MERGED] feat(scene): let package threads be scene origins (capability API 1.66) #7484
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#7484
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/7119
Author: @Gunterlie
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/package-scene-origins📝 Commits (9)
0756977feat(scene): let package threads be scene origins (capability API 1.66)0f18083fix(scene): review fixes; let a package hand over its own scene plan727b747docs(changelog): link scene origins issue #71181f1a928feat(scene): claim and release are optional for packages that only start scenes5b96407feat(scene): per-scene packageData handed to claim and releasedd48bbefix(scene): time limit on package scene-origin calls; disconnect before convert removes580ab5fMerge remote-tracking branch 'origin/staging' into feat/package-scene-originsc062919Merge remote-tracking branch 'origin/staging' into feat/package-scene-origins66a4aecfix(scene): release a package claim that answers after the deadline; qualify the changelog📊 Changes
22 files changed (+1108 additions, -149 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/optional-agent-packages.md(+73 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+3 -1)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+1 -0)📝
packages/client/src/components/chat/ConversationView.tsx(+3 -0)📝
packages/client/src/components/chat/HomeBrowserHub.tsx(+41 -0)📝
packages/client/src/components/chat/SceneBanner.tsx(+44 -11)📝
packages/client/src/hooks/use-scene.ts(+17 -14)📝
packages/client/src/lib/scene-generation.ts(+72 -31)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/client/src/stores/ui.store.ts(+6 -0)📝
packages/server/src/routes/chats.routes.ts(+20 -1)📝
packages/server/src/routes/scene.routes.ts(+267 -76)📝
packages/server/src/services/capability-packages/capability-module-runtime.service.ts(+12 -0)➕
packages/server/src/services/capability-packages/capability-scene-origin.service.ts(+92 -0)📝
packages/server/src/services/import/st-chat.importer.ts(+2 -0)📝
packages/shared/src/schemas/capability-package.schema.ts(+18 -1)📝
packages/shared/src/types/chat-preset.ts(+2 -0)📝
packages/shared/src/types/scene.ts(+97 -10)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+4 -4)...and 2 more files
📄 Description
Linked issue
Closes #7118
Why this change
What changed
scenespermission andapi.registerSceneOrigin(provider).SceneOriginProviderinshared/src/types/scene.ts:getContext,claimandrelease.scenesbelow 1.66.getContextis required. A package that only starts scenes leaves outclaim(no lock, many scenes at once) andrelease(no outcome); either one can be used alone.packageDataon create (dataonstartScene) is stored with the scene and handed toclaimandrelease, so a package decides per scene whether to lock and what to do with the recap./scene/planand/scene/createacceptpackageOriginin place ofchatId/originChatId.release. Conclude includes the recap, and a concluded scene also keepssceneSummaryfor packages that missed the release./scene/createchecks the plan fields it builds the chat from, because a package can send its own plan.if (origin.chat).startSceneWithPromptPreferencesacceptspackageOriginand an optional preparedplan. A prepared plan skips the dialog and the planner.returnToSceneOriginand a transientsceneOriginFocusopen the package's Home browser tab at the thread.startScene,openChat,focusSceneOriginIdandonFocusSceneOriginHandled.scenePackageOrigin.Capability API 1.66section indocs/development/optional-agent-packages.md, and a CHANGELOG entry.scripts/regressions/scene-package-origin.regression.tscovers:sceneSummary);capability-package-lifecyclefollows the version bump.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
scene-package-origin(new),scene-participants,capability-package-lifecycle,chat-branch-lineage,agent-scene-check,capability-tool-runtimeandopen-issues.tscpass,eslinton the changed client files passes, andlocalization:checkpasses.pnpm checkis running locally. Its result follows in a comment./sceneflow can be clicked through, and that flow is unchanged.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Summary by CodeRabbit
scenespermission.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.