[GH-ISSUE #5479] [Feature]: Allow zero active Character Cards in Merged (Narrator) Roleplay #3043

Closed
opened 2026-10-21 05:59:06 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @xKoMaRx on GitHub (Aug 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5479

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Marinara currently prevents a chat from having zero active characters.

When every character is disabled using the eye toggle, the inactive-character safety fallback treats all characters as active again. This makes sense for modes where a Character Card must be the responder, but it is unnecessarily restrictive in Roleplay → Merged (Narrator) mode.

In Merged mode, the Narrator produces the response and Character Cards act as the cast available to that Narrator.

There are valid Roleplay scenes where none of the characters currently attached to the chat are present.

For example, a Roleplay may have three recurring characters:

  • Anna
  • Marek
  • Julia

The player can leave all three behind and continue alone for several turns.

Ideally I should be able to temporarily disable all three Character Cards while keeping them attached to the Roleplay, allowing the Narrator to continue the scene without injecting any of those character cards into the prompt.

Currently disabling the final active character causes the safety fallback to effectively make the characters active again.

This makes the inactive-character feature less useful for managing which characters are actually present in a scene.

Proposed solution

Allow zero active Character Cards specifically in Roleplay Merged (Narrator) mode.

When all characters are disabled:

  • the characters should remain attached to the chat;
  • their inactive state should remain saved;
  • none of their Character Cards should be included in the generation prompt;
  • the Narrator should still be allowed to generate a response;
  • the response can therefore consist entirely of narration or use information from other available context such as the Persona, Lorebooks, summaries, trackers and chat history.

For example:

Roleplay roster:

Anna — inactive
Marek — inactive
Julia — inactive

should produce a valid Merged state equivalent to:

Active Character Cards: none
Responder: Narrator

The user could later enable Anna again when she re-enters the scene without needing to remove or re-add her Character Card.

This should only change behavior where a responder can meaningfully exist without an active Character Card.

For Individual Roleplay mode, the current minimum-one-active-character behavior should remain, since each generated response belongs to an individual character.

The existing behavior could also remain unchanged in Conversation mode unless there is a separate reason to support characterless Conversation chats.

Alternatives considered

Keep one Character Card active as a placeholder

This technically allows generation to continue, but the model still receives a Character Card for someone who is not currently part of the scene.

That can encourage the Narrator to mention, involve or speak as that character even when they should be absent.

Remove characters from the chat

Characters can be removed and added again later, but this defeats the purpose of the existing inactive-character toggle.

The eye toggle is already a good mechanism for temporarily removing a character from generation while keeping them in the Roleplay roster.

Create a Narrator Character Card

A dedicated Narrator Character Card could serve as the one required active character, but this seems redundant in Merged mode because Merged already conceptually has a Narrator responder.

It would also mix two different concepts:

  • characters participating in the scene;
  • the Narrator responsible for composing the scene.

A Narrator Character Card makes more sense as an optional design choice than as a workaround required to have no characters present.

Additional context

The current behavior appears to come from the generic active-character safety fallback.

resolveActiveCharacterIds() already supports an allowEmpty option, so the concept of resolving an empty active-character list already exists in the codebase.

The Roleplay client also currently applies its own fallback where an empty active-character list becomes the complete chat character list again.

This suggests the restriction could potentially become mode-aware rather than requiring a completely new character-state system.

The intended distinction would be:

Roleplay / Merged:
0 active characters → allowed → Narrator-only generation

Roleplay / Individual:
0 active characters → not allowed / existing fallback

Conversation:
keep existing behavior

This could also make the inactive-character system fit scene management more naturally: Character Cards remain the persistent Roleplay cast, while the active/inactive state determines which members of that cast are currently available to the Narrator.

This is related to the proposed speaker-aware avatar rendering for Merged Roleplay, but it is independent from it.
Both changes aim to make Merged mode treat Character Cards more like the current scene cast, while the Narrator remains the actual responder.
This feature only concerns allowing the active cast to become empty when no Character Cards are currently present in the scene.

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 @xKoMaRx on GitHub (Aug 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5479 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Marinara currently prevents a chat from having zero active characters. When every character is disabled using the eye toggle, the inactive-character safety fallback treats all characters as active again. This makes sense for modes where a Character Card must be the responder, but it is unnecessarily restrictive in Roleplay → Merged (Narrator) mode. In Merged mode, the Narrator produces the response and Character Cards act as the cast available to that Narrator. There are valid Roleplay scenes where none of the characters currently attached to the chat are present. For example, a Roleplay may have three recurring characters: - Anna - Marek - Julia The player can leave all three behind and continue alone for several turns. Ideally I should be able to temporarily disable all three Character Cards while keeping them attached to the Roleplay, allowing the Narrator to continue the scene without injecting any of those character cards into the prompt. Currently disabling the final active character causes the safety fallback to effectively make the characters active again. This makes the inactive-character feature less useful for managing which characters are actually present in a scene. ## Proposed solution Allow zero active Character Cards specifically in Roleplay Merged (Narrator) mode. When all characters are disabled: - the characters should remain attached to the chat; - their inactive state should remain saved; - none of their Character Cards should be included in the generation prompt; - the Narrator should still be allowed to generate a response; - the response can therefore consist entirely of narration or use information from other available context such as the Persona, Lorebooks, summaries, trackers and chat history. For example: Roleplay roster: Anna — inactive Marek — inactive Julia — inactive should produce a valid Merged state equivalent to: Active Character Cards: none Responder: Narrator The user could later enable Anna again when she re-enters the scene without needing to remove or re-add her Character Card. This should only change behavior where a responder can meaningfully exist without an active Character Card. For Individual Roleplay mode, the current minimum-one-active-character behavior should remain, since each generated response belongs to an individual character. The existing behavior could also remain unchanged in Conversation mode unless there is a separate reason to support characterless Conversation chats. ## Alternatives considered **_Keep one Character Card active as a placeholder_** This technically allows generation to continue, but the model still receives a Character Card for someone who is not currently part of the scene. That can encourage the Narrator to mention, involve or speak as that character even when they should be absent. **_Remove characters from the chat_** Characters can be removed and added again later, but this defeats the purpose of the existing inactive-character toggle. The eye toggle is already a good mechanism for temporarily removing a character from generation while keeping them in the Roleplay roster. **_Create a Narrator Character Card_** A dedicated Narrator Character Card could serve as the one required active character, but this seems redundant in Merged mode because Merged already conceptually has a Narrator responder. It would also mix two different concepts: - characters participating in the scene; - the Narrator responsible for composing the scene. A Narrator Character Card makes more sense as an optional design choice than as a workaround required to have no characters present. ## Additional context The current behavior appears to come from the generic active-character safety fallback. resolveActiveCharacterIds() already supports an allowEmpty option, so the concept of resolving an empty active-character list already exists in the codebase. The Roleplay client also currently applies its own fallback where an empty active-character list becomes the complete chat character list again. This suggests the restriction could potentially become mode-aware rather than requiring a completely new character-state system. The intended distinction would be: Roleplay / Merged: 0 active characters → allowed → Narrator-only generation Roleplay / Individual: 0 active characters → not allowed / existing fallback Conversation: keep existing behavior This could also make the inactive-character system fit scene management more naturally: Character Cards remain the persistent Roleplay cast, while the active/inactive state determines which members of that cast are currently available to the Narrator. This is related to the proposed speaker-aware avatar rendering for Merged Roleplay, but it is independent from it. Both changes aim to make Merged mode treat Character Cards more like the current scene cast, while the Narrator remains the actual responder. This feature only concerns allowing the active cast to become empty when no Character Cards are currently present in the scene. ## 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.
bsakaguchi 2026-10-21 05:59:06 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 24, 2026):

Just add a Narrator card for that purpose.

<!-- gh-comment-id:5398200446 --> @SpicyMarinara commented on GitHub (Aug 24, 2026): Just add a Narrator card for that purpose.
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#3043
No description provided.