[GH-ISSUE #5310] [Feature]: Let custom agents choose active chat characters #2933

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Conversation and Roleplay chats can manually enable or disable attached characters, but custom agents cannot use that control. Users who create a routing or director agent therefore cannot choose which characters should participate in the next reply. Every currently active character remains in the generation context, which can waste tokens and make turn selection less reliable.

Proposed solution

Add an explicit custom-agent capability that allows an agent to select the active characters for the current chat before the main response is generated.

  • Support Conversation and Roleplay modes only. Game mode behavior must remain unchanged.
  • Let the agent select only character IDs already attached to the chat.
  • Require at least one character to remain active.
  • Validate and deduplicate the selection at the server boundary.
  • Persist the resulting disabled/enabled state so it stays visible in the existing chat settings controls.
  • Apply the selection to the same generation turn so disabled character cards do not consume prompt tokens.
  • Keep the capability opt-in and clearly described in the custom-agent editor.

Alternatives considered

  • Continue using the existing manual enable/disable buttons. This does not support automated turn routing.
  • Remove and re-add character cards for each turn. This is destructive to the chat setup and cumbersome.
  • Apply an agent's selection only to the following turn. This would be surprising for a pre-generation routing agent and would not save tokens on the response it is deciding.

Additional context

The existing inactiveCharacterIds chat metadata should remain the source of truth. The new agent capability should reuse that behavior rather than introduce a second activity system.

Template check

  • I DID NOT read the issue template instructions above before submitting this feature request.
Originally created by @SpicyMarinara on GitHub (Aug 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5310 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Conversation and Roleplay chats can manually enable or disable attached characters, but custom agents cannot use that control. Users who create a routing or director agent therefore cannot choose which characters should participate in the next reply. Every currently active character remains in the generation context, which can waste tokens and make turn selection less reliable. ## Proposed solution Add an explicit custom-agent capability that allows an agent to select the active characters for the current chat before the main response is generated. - Support Conversation and Roleplay modes only. Game mode behavior must remain unchanged. - Let the agent select only character IDs already attached to the chat. - Require at least one character to remain active. - Validate and deduplicate the selection at the server boundary. - Persist the resulting disabled/enabled state so it stays visible in the existing chat settings controls. - Apply the selection to the same generation turn so disabled character cards do not consume prompt tokens. - Keep the capability opt-in and clearly described in the custom-agent editor. ## Alternatives considered - Continue using the existing manual enable/disable buttons. This does not support automated turn routing. - Remove and re-add character cards for each turn. This is destructive to the chat setup and cumbersome. - Apply an agent's selection only to the following turn. This would be surprising for a pre-generation routing agent and would not save tokens on the response it is deciding. ## Additional context The existing `inactiveCharacterIds` chat metadata should remain the source of truth. The new agent capability should reuse that behavior rather than introduce a second activity system. ## Template check - [ ] I DID NOT read the issue template instructions above before submitting this feature request.
Author
Owner

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

Fixed and merged into staging by #5311. Custom pre-generation Agents can now select the active character set for fresh Conversation and Roleplay replies.

<!-- gh-comment-id:5356150436 --> @SpicyMarinara commented on GitHub (Aug 20, 2026): Fixed and merged into staging by #5311. Custom pre-generation Agents can now select the active character set for fresh Conversation and Roleplay replies.
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#2933
No description provided.