[GH-ISSUE #4906] [Feature]: Add per-character /hide message range command to Roleplay #2720

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Roleplay already supports hiding one or more numbered messages from all AI context with /hide <indices>, and the message menu can hide an individual message from selected characters. There is no quick way to apply that existing per-character visibility state across a numbered message range.

In long group Roleplays, hiding messages one by one through the avatar menu is tedious when a specific character should not know an entire exchange.

Proposed solution

Extend the existing /hide slash command in Roleplay with an optional character target:

/hide <character> <indices>

Examples:

/hide Maukie 34-40
/hide Maukie 34
/hide "Lady Maria" 12,18-22,30

Required behavior:

  • /hide Maukie 34-40 hides displayed messages 34 through 40, inclusively, from the Roleplay character named Maukie.
  • Reuse the existing message-index syntax, including a single number, inclusive ranges, comma-separated numbers, and mixed lists/ranges.
  • Resolve character names case-insensitively against the characters in the current Roleplay.
  • Support quoted character names containing spaces.
  • Apply the same hiddenFromAICharacterIds state used by Choose who to hide this from, so the avatar/status presentation and prompt filtering behave identically.
  • Add the target character without removing any other characters already hidden from those messages.
  • Do not convert a per-character restriction into a global hiddenFromAI restriction.
  • Skip messages that are already hidden from the specified character and report the number of messages actually changed.
  • Keep the existing /hide <indices> behavior unchanged for globally hiding messages, including outside Roleplay where it is currently available.
  • Treat the slash command as local UI behavior: it must not be sent to or stored as a chat message for the model.
  • Return clear feedback for an unknown or ambiguous character, malformed range, or message number beyond the current chat length.
  • Refresh the affected messages immediately so the selected character avatar/status appears without reloading.

This targeted form should only be offered and accepted in Roleplay, because per-character AI visibility is a Roleplay participant feature.

Alternatives considered

  • Selecting the avatar menu separately on every message works today but is too slow for long ranges.
  • A new command name such as /hidefrom would avoid overloading /hide, but extending the established command keeps message-hiding syntax discoverable and preserves one command family.
  • Automatically inferring which character should not see an exchange would be unpredictable; the user should name the target explicitly.

Additional context

This request complements the avatar-based Choose who to hide this from control. The command should update exactly the same persisted message metadata as that control, only in bulk.

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 @SpicyMarinara on GitHub (Aug 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4906 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Roleplay already supports hiding one or more numbered messages from all AI context with `/hide <indices>`, and the message menu can hide an individual message from selected characters. There is no quick way to apply that existing per-character visibility state across a numbered message range. In long group Roleplays, hiding messages one by one through the avatar menu is tedious when a specific character should not know an entire exchange. ## Proposed solution Extend the existing `/hide` slash command in Roleplay with an optional character target: ```text /hide <character> <indices> ``` Examples: ```text /hide Maukie 34-40 /hide Maukie 34 /hide "Lady Maria" 12,18-22,30 ``` Required behavior: - `/hide Maukie 34-40` hides displayed messages 34 through 40, inclusively, from the Roleplay character named Maukie. - Reuse the existing message-index syntax, including a single number, inclusive ranges, comma-separated numbers, and mixed lists/ranges. - Resolve character names case-insensitively against the characters in the current Roleplay. - Support quoted character names containing spaces. - Apply the same `hiddenFromAICharacterIds` state used by **Choose who to hide this from**, so the avatar/status presentation and prompt filtering behave identically. - Add the target character without removing any other characters already hidden from those messages. - Do not convert a per-character restriction into a global `hiddenFromAI` restriction. - Skip messages that are already hidden from the specified character and report the number of messages actually changed. - Keep the existing `/hide <indices>` behavior unchanged for globally hiding messages, including outside Roleplay where it is currently available. - Treat the slash command as local UI behavior: it must not be sent to or stored as a chat message for the model. - Return clear feedback for an unknown or ambiguous character, malformed range, or message number beyond the current chat length. - Refresh the affected messages immediately so the selected character avatar/status appears without reloading. This targeted form should only be offered and accepted in Roleplay, because per-character AI visibility is a Roleplay participant feature. ## Alternatives considered - Selecting the avatar menu separately on every message works today but is too slow for long ranges. - A new command name such as `/hidefrom` would avoid overloading `/hide`, but extending the established command keeps message-hiding syntax discoverable and preserves one command family. - Automatically inferring which character should not see an exchange would be unpredictable; the user should name the target explicitly. ## Additional context This request complements the avatar-based **Choose who to hide this from** control. The command should update exactly the same persisted message metadata as that control, only in bulk. ## 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 (Aug 11, 2026):

Addressed by #4908 and merged into staging in a0c303f6b.

<!-- gh-comment-id:5255428697 --> @SpicyMarinara commented on GitHub (Aug 11, 2026): Addressed by #4908 and merged into staging in a0c303f6b.
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#2720
No description provided.