mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6174] [MERGED] fix: stop queued Roleplay text when generation is cancelled #7076
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#7076
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6174
Author: @SpicyMarinara
Created: 9/13/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/roleplay-generation-stop📝 Commits (7)
7f99815docs: track Roleplay stop-generation regression86c7ed0fix: release Roleplay text drains when generation stops5c46b18Merge remote-tracking branch 'origin/staging' into fix/roleplay-generation-stop3ff5596fix: stop superseded Roleplay typewriter frames3fac0dffix: retain replacement generation through stopped reply cleanup7021864Merge remote-tracking branch 'origin/staging' into fix/roleplay-generation-stopdd96271test: retain notes replacement and Game cleanup regression contracts📊 Changes
6 files changed (+416 additions, -51 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/generation-recovery.e2e.ts(+237 -0)📝
e2e/illustration-arrival.e2e.ts(+128 -0)📝
packages/client/src/hooks/use-generate.ts(+48 -46)📝
scripts/regressions/roleplay-commands.regression.ts(+1 -4)📝
scripts/regressions/roleplay-streaming.regression.ts(+1 -1)📄 Description
Linked issue
Closes #6173
Why this change
Pressing Stop in Roleplay could leave the Pause button visible while queued text continued appearing, even after the server had finished the reply. The client was waiting for its typewriter animation to drain without observing cancellation. Stop now releases that wait promptly and returns the composer to Send; already-completed saved replies remain intact.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated validation
pnpm checkpasses on final commitdd962716a6834b2babde5f7c46b74feff4793420, including staging's separate notes update. Required build/static checks and the complete Node regression suite pass on the merged head. CodeRabbit completed its production-code review with no actionable findings on702186468; its final test-only review was rate-limited when the maintainer merged this PR.Browser tests use a local synthetic provider and isolated data; physical iPhone verification is still needed. The previous hosted head had an unexplained WebKit page loss in a Game-log test; its trace did not show an app error or connect it to this change. The broader hosted browser matrix is still running and includes that unchanged case. The earlier Node run had two stale-assertion failures; both were corrected and the complete final Node suite passes.
Manual verification needed
Manually verify Stop during a Roleplay reply on desktop and the iPhone Home Screen app: text stops appearing and the send control becomes available promptly.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Mobile WebKit interaction screenshots show before and after pressing Stop with this fix. The full saved reply remains visible and Send is available afterward. Synthetic fixture content only; the automated two-second assertions establish prompt cancellation.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.