mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6109] [Feature]: Reversible Roleplay interrupt command #3389
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#3389
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 @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!inMari cries. "And I really hate myself! I want to just finish myself already!"producesMari cries. "And I really hate myself—".Template check
@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.