mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5479] [Feature]: Allow zero active Character Cards in Merged (Narrator) Roleplay #3043
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#3043
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 @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:
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:
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:
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:
@SpicyMarinara commented on GitHub (Aug 24, 2026):
Just add a Narrator card for that purpose.