[GH-ISSUE #8461] [Feature]: Automate active characters in Merged Roleplay group chats #8362

Closed
opened 2026-11-07 16:42:29 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8461

Originally assigned to: @ylli-selmani on GitHub.

What problem does this solve?

In a Merged (Narrator) Roleplay group chat, every active character card sits in the narrator's context on every turn. Unlike lorebook entries, nothing brings a card in or takes it out, so with a large cast you either pay for every card on every reply or flip the eye toggles by hand as characters enter and leave the scene. Individual mode avoids this but splits the reply per character, which isn't what Merged players want.

Proposed solution

A per-chat setting in the Group Chat box, shown under Merged (Narrator) in Roleplay chats: Automate active characters: Off / Decision model / Character Tracker.

  • Decision model: before the reply, ask the Decision model one yes/no question per attached character: is this character in the scene of the next reply? This uses the same machinery as Smart response order, which asks whether a character has a reason to respond. It's fast and runs before generation, so a character who walks in is active on the turn they enter.
  • Character Tracker: the tracker's present-characters list from the last reply sets the active list for the next one. It costs no extra call, but it lags one turn, and the option's description says so.
  • Fallback: in Decision mode, if the Decision model can't answer (none configured, no answer, or a reasoning model that defers before generation), the tracker's latest present list is used when it exists. Otherwise the list stays as it is.
  • Pins: while the setting is on, toggling an eye by hand pins that character, so automation leaves it alone. A pin icon on the character row shows the pin, and clicking it clears the pin. Turning the setting off clears all pins.
  • The Commands narrator always stays active, and the active list is never left empty.
  • A custom agent with the "Choose active chat characters" ability still takes precedence when it makes a choice.

Alternatives considered

  • Matching names in the latest user message: a mention isn't presence. Some users keep short lorebook entries that fire on a character's name and only want the full card once the character actually enters.
  • Adding the activity ability's prompt to the Character Tracker: the tracker runs after the reply, so this has the same one-turn lag and mixes two result types in one agent output.
  • A built-in pre-generation agent: this would add a full LLM call before every reply, and the Decision model answers the same question much faster.

Additional context

The Decision model work follows Smart response order (smart-group-decision.ts). The result is written to the existing inactiveCharacterIds chat metadata, the same field the custom-agent ability and the eye toggles use.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @ylli-selmani on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8461 Originally assigned to: @ylli-selmani on GitHub. ## What problem does this solve? In a Merged (Narrator) Roleplay group chat, every active character card sits in the narrator's context on every turn. Unlike lorebook entries, nothing brings a card in or takes it out, so with a large cast you either pay for every card on every reply or flip the eye toggles by hand as characters enter and leave the scene. Individual mode avoids this but splits the reply per character, which isn't what Merged players want. ## Proposed solution A per-chat setting in the Group Chat box, shown under Merged (Narrator) in Roleplay chats: **Automate active characters: Off / Decision model / Character Tracker.** - **Decision model:** before the reply, ask the Decision model one yes/no question per attached character: is this character in the scene of the next reply? This uses the same machinery as Smart response order, which asks whether a character has a reason to respond. It's fast and runs before generation, so a character who walks in is active on the turn they enter. - **Character Tracker:** the tracker's present-characters list from the last reply sets the active list for the next one. It costs no extra call, but it lags one turn, and the option's description says so. - **Fallback:** in Decision mode, if the Decision model can't answer (none configured, no answer, or a reasoning model that defers before generation), the tracker's latest present list is used when it exists. Otherwise the list stays as it is. - **Pins:** while the setting is on, toggling an eye by hand pins that character, so automation leaves it alone. A pin icon on the character row shows the pin, and clicking it clears the pin. Turning the setting off clears all pins. - The Commands narrator always stays active, and the active list is never left empty. - A custom agent with the "Choose active chat characters" ability still takes precedence when it makes a choice. ## Alternatives considered - **Matching names in the latest user message:** a mention isn't presence. Some users keep short lorebook entries that fire on a character's name and only want the full card once the character actually enters. - **Adding the activity ability's prompt to the Character Tracker:** the tracker runs after the reply, so this has the same one-turn lag and mixes two result types in one agent output. - **A built-in pre-generation agent:** this would add a full LLM call before every reply, and the Decision model answers the same question much faster. ## Additional context The Decision model work follows Smart response order (`smart-group-decision.ts`). The result is written to the existing `inactiveCharacterIds` chat metadata, the same field the custom-agent ability and the eye toggles use. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8362
No description provided.