[GH-ISSUE #6109] [Feature]: Reversible Roleplay interrupt command #3389

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Roleplay characters cannot interrupt the latest message before its remaining dialogue or action happens. A plausible intervention currently leaves the original outcome intact in chat history.

Proposed solution

Add an opt-in [interrupt: part="verbatim part of the last message; minimum three words"] command. Match literal text only in the immediately preceding message, retain text through that phrase, replace its trailing sentence punctuation with an interruption dash, close dialogue quotes when needed, and remove the remainder.

Keep the original message available through a Restore button in the command activity. Restore the full message before a reroll so the next generation can choose whether to interrupt. Preserve per-swipe behavior and protect later manual edits from stale restoration.

Use a short command prompt allowing an interruption only when it is plausible and the responding character can actually perform it. Reuse existing Roleplay command, message, swipe, and UI patterns.

Alternatives considered

Manual message editing can change the scene but does not provide reversible, generation-driven interruption or correct reroll context.

Additional context

Requested by @SpicyMarinara; implementation owned by @SpicyMarinara with Codex. Target: staging.

Example: matching I really hate myself! in Mari cries. "And I really hate myself! I want to just finish myself already!" produces Mari cries. "And I really hate myself—".

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6109 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Roleplay characters cannot interrupt the latest message before its remaining dialogue or action happens. A plausible intervention currently leaves the original outcome intact in chat history. ## Proposed solution Add an opt-in `[interrupt: part="verbatim part of the last message; minimum three words"]` command. Match literal text only in the immediately preceding message, retain text through that phrase, replace its trailing sentence punctuation with an interruption dash, close dialogue quotes when needed, and remove the remainder. Keep the original message available through a Restore button in the command activity. Restore the full message before a reroll so the next generation can choose whether to interrupt. Preserve per-swipe behavior and protect later manual edits from stale restoration. Use a short command prompt allowing an interruption only when it is plausible and the responding character can actually perform it. Reuse existing Roleplay command, message, swipe, and UI patterns. ## Alternatives considered Manual message editing can change the scene but does not provide reversible, generation-driven interruption or correct reroll context. ## Additional context Requested by @SpicyMarinara; implementation owned by @SpicyMarinara with Codex. Target: staging. Example: matching `I really hate myself!` in `Mari cries. "And I really hate myself! I want to just finish myself already!"` produces `Mari cries. "And I really hate myself—"`. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Implemented in #6110 and merged into staging at 0dd9cf4dcf. Interruptions are opt-in, keep the original recoverable, and restore full input for rerolls. Required checks and final CodeRabbit review passed; focused desktop Chromium, mobile Chromium, and mobile WebKit tests passed.

<!-- gh-comment-id:5649385933 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Implemented in #6110 and merged into staging at 0dd9cf4dcfd306926a0312f01b5f80f7d1cb57bb. Interruptions are opt-in, keep the original recoverable, and restore full input for rerolls. Required checks and final CodeRabbit review passed; focused desktop Chromium, mobile Chromium, and mobile WebKit tests passed.
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#3389
No description provided.