mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8462] [MERGED] feat(roleplay): automate active characters in Merged Roleplay groups #8617
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#8617
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/8462
Author: @ylli-selmani
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/auto-active-characters📝 Commits (10+)
605bb86feat(roleplay): add the rules for automated active charactersa6a1ad4feat(roleplay): keep Merged Roleplay cast in sync with the scenefe83092feat(roleplay): add the Automate active characters controlea9a0e3fix(roleplay): address the local review of automated active characters3f9a3f2fix(roleplay): put the pin left of the eye toggle44315a3fix(roleplay): address Dottore's review of automated active charactersfff9385fix(roleplay): keep the pin on every row while automation runs5c1a20afix(roleplay): keep the cast when the tracker names no attached characterde937d0fix(roleplay): find tracked characters by name and alias, not id alone1929833refactor(roleplay): read cast ids with the tracker's own parser📊 Changes
8 files changed (+945 additions, -1 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+111 -1)📝
packages/client/src/localization/locales/en.json(+12 -0)📝
packages/server/src/routes/generate.routes.ts(+99 -0)➕
packages/server/src/services/generation/scene-presence-decision.ts(+176 -0)➕
packages/server/src/services/generation/scene-presence.service.ts(+109 -0)📝
packages/shared/src/types/chat-preset.ts(+2 -0)📝
packages/shared/src/types/chat.ts(+6 -0)➕
scripts/regressions/scene-presence-decision.regression.ts(+430 -0)📄 Description
Linked issue
Closes #8461
Why this change
What changed
605bb8632): adds theautoActiveCharactersandautoActiveCharacterPinschat metadata, plus pure rules inscene-presence-decision.ts. Pinned characters keep their state and the Commands narrator stays active. If there's no answer, nothing changed, or the choice would leave nobody active, the chat is left as it is. The setting travels with settings profiles; the pins are the chat's own state.a6a1ad4fa,ea9a0e338,5c1a20add,de937d035): before a Merged Roleplay reply, Decision mode asks the Decision model one presence question per character, like Smart response order. Tracker mode reads the Character Tracker's last present list, matching each entry to a card by its id, a cast id's card, its name, or the card's name aliases (the tracker model writes the ids and often makes one up for a card that walks in while inactive). A list that names no attached card is treated as no data, and Decision mode falls back to that list when the model can't answer or defers. The result goes toinactiveCharacterIdswith a livemetadata_patch. Both modes run before generation, so swipes and regenerates see the right scene. A chat with a custom "Choose active chat characters" agent skips this entirely. Continue and impersonate turns are skipped too, and any failure keeps the current list.fe83092a8,ea9a0e338,fff938533): an Off / Decision model / Character Tracker control in the Group Chat box under Merged (Narrator), Roleplay only. It copies the Mode selector's segmented buttons inChatSettingsDrawer.tsx. The hint below it says what's missing: a Decision model, the Character Tracker, or a tracker that only runs manually. While automation is on, every row has a pin left of the eye: muted like the closed eye, the accent colour once pinned. Clicking it pins the character's current state, on or off, and a hand eye-toggle pins too. Turning automation off clears every pin.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
node scripts/run-regressions.mjs --filter scene-presence-decisionnode scripts/run-regressions.mjs --filter character-activity-agentand--filter chat-profile-followersstill pass.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)
Phone-size screenshot of the character list with a pinned character: to be attached.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.