[GH-ISSUE #8438] [Feature]: Macro that lists all chat characters, including inactive ones #8353

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

In group chats with many characters, the AI sometimes mixes up details between characters. A good way to avoid that is to toggle off characters who aren't in the current scene or aren't relevant right now, so they stop being sent to the model.

The trouble is that {{characters}} (and {{group}}) only list active characters. As soon as a character is disabled, they're removed from those macros as well.

That breaks scenario overrides and other prompt text that use {{characters}} to describe who belongs to the setting. For example, take a scenario override like:

The story takes place aboard the ship. The crew consists of {{characters}}.

When some crew members are disabled, they disappear from that sentence. The active characters no longer know the disabled ones are part of the setting at all. They only find out if the disabled character already spoke earlier in the chat, or if you turn that character back on, which brings back the mix-ups that disabling was meant to prevent.

So right now you have to choose between:

keeping everyone active, so the roster in the prompt is complete, at the cost of the AI confusing details between characters, or
disabling characters who aren't in the scene, at the cost of the remaining characters forgetting those characters exist.
The docs also describe {{characters}} as "every character in the chat", which suggests disabled characters are included when they aren't.

Proposed solution

Add macros that resolve to the full chat roster, including characters who are toggled inactive/hidden:

A counterpart to {{characters}}: every character in the chat, including inactive ones, joined by commas.
Optionally a counterpart to {{group}}: every other character in the chat, including inactive ones, excluding the current responder.
{{characters}} and {{group}} would keep their current behavior, so existing presets don't change.

Alternatives considered

Hard-coding the full cast in the scenario override. This works, but you have to edit it by hand every time a character is added, removed, or renamed. It also defeats the purpose of having a macro.

Changing {{characters}} to include inactive characters. This would change the output of existing presets and remove the way to list only the active characters, so a separate macro seems safer.

Keeping all characters active. This brings back the detail mix-ups that disabling characters is meant to prevent.

Additional context

A character's inactive/hidden state is stored per chat, and {{characters}}/{{group}} are built from the active roster only. The full roster already exists in the chat, but no macro exposes it.

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 @west61224 on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8438 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? In group chats with many characters, the AI sometimes mixes up details between characters. A good way to avoid that is to toggle off characters who aren't in the current scene or aren't relevant right now, so they stop being sent to the model. The trouble is that {{characters}} (and {{group}}) only list active characters. As soon as a character is disabled, they're removed from those macros as well. That breaks scenario overrides and other prompt text that use {{characters}} to describe who belongs to the setting. For example, take a scenario override like: > The story takes place aboard the ship. The crew consists of {{characters}}. When some crew members are disabled, they disappear from that sentence. The active characters no longer know the disabled ones are part of the setting at all. They only find out if the disabled character already spoke earlier in the chat, or if you turn that character back on, which brings back the mix-ups that disabling was meant to prevent. So right now you have to choose between: keeping everyone active, so the roster in the prompt is complete, at the cost of the AI confusing details between characters, or disabling characters who aren't in the scene, at the cost of the remaining characters forgetting those characters exist. The docs also describe {{characters}} as "every character in the chat", which suggests disabled characters are included when they aren't. ## Proposed solution Add macros that resolve to the full chat roster, including characters who are toggled inactive/hidden: A counterpart to {{characters}}: every character in the chat, including inactive ones, joined by commas. Optionally a counterpart to {{group}}: every other character in the chat, including inactive ones, excluding the current responder. {{characters}} and {{group}} would keep their current behavior, so existing presets don't change. ## Alternatives considered Hard-coding the full cast in the scenario override. This works, but you have to edit it by hand every time a character is added, removed, or renamed. It also defeats the purpose of having a macro. Changing {{characters}} to include inactive characters. This would change the output of existing presets and remove the way to list only the active characters, so a separate macro seems safer. Keeping all characters active. This brings back the detail mix-ups that disabling characters is meant to prevent. ## Additional context A character's inactive/hidden state is stored per chat, and {{characters}}/{{group}} are built from the active roster only. The full roster already exists in the chat, but no macro exposes it. ## 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.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 29, 2026):

Okay, so {{group}} should list only active characters, while {{characters}} should list everyone added to the chat, regardless of whether they're active or not. I'll fix that.

<!-- gh-comment-id:6491534520 --> @SpicyMarinara commented on GitHub (Oct 29, 2026): Okay, so `{{group}}` should list only active characters, while `{{characters}}` should list everyone added to the chat, regardless of whether they're active or not. I'll fix that.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 29, 2026):

@SpicyMarinara (Codex) is taking ownership of this issue. I will implement the maintainer-approved semantics: {{characters}} lists all chat character names, including inactive members; {{group}} remains active-only. Inactive character cards/descriptions will stay excluded from generation. Work branch: fix/full-roster-macro-8438.

<!-- gh-comment-id:6491781813 --> @SpicyMarinara commented on GitHub (Oct 29, 2026): @SpicyMarinara (Codex) is taking ownership of this issue. I will implement the maintainer-approved semantics: `{{characters}}` lists all chat character names, including inactive members; `{{group}}` remains active-only. Inactive character cards/descriptions will stay excluded from generation. Work branch: `fix/full-roster-macro-8438`.
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#8353
No description provided.