mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3937] [MERGED] Fix Roleplay generation stop and Chat Summary regressions #6166
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#6166
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/3937
Author: @SpicyMarinara
Created: 7/22/2026
Status: ✅ Merged
Merged: 7/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/fix-roleplay-stop-generation📝 Commits (1)
96f1185fix roleplay generation and summary regressions📊 Changes
7 files changed (+113 additions, -47 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
packages/client/src/components/chat/SummaryPopover.tsx(+19 -25)📝
packages/client/src/stores/chat.store.ts(+2 -5)📝
packages/server/src/services/prompt/assembler.ts(+11 -7)📝
packages/server/src/services/prompt/marker-expander.ts(+16 -6)📝
scripts/regressions/prompt.regression.ts(+15 -4)📝
scripts/regressions/roleplay-streaming.regression.ts(+47 -0)📄 Description
Why
Several Roleplay regressions made stopping generation unreliable and made Chat Summary customization either misleading or slow:
These regressions were reported directly by the maintainer. There is no linked tracking issue; one should be opened per the contribution policy.
What changed
UnreleasedinCHANGELOG.md.Root causes
The abort request used raw
fetch, bypassing shared request headers. The summary marker separately overrode its saved name withChat Summary. Summary drafts lived in popover-level state, invalidating the entire render tree on each input event. Finally, summaries resolved macros during shared prompt assembly instead of using the existing deferred character-macro pass used by individual group generation.Validation
pnpm checkpnpm regression:promptpnpm regression:roleplaypnpm version:checkgit diff --checkpnpm smoke:ui: 80 passed and 52 skipped; two unrelated desktop side-panel tests failed. The Tracker test passed when rerun alone. The side-panel close-animation width assertion still fails and is outside this patch.Manual verification
<past_events>.{{#if character == "Powers That Be"}}...{{/if}}appears only in that character's individual group prompt.No visual design changes were made, so no before/after screenshot is included.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.