mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7764
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/7507
Author: @SpicyMarinara
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/pov-split-rewrite-every-part📝 Commits (5)
f745991feat(memory): rewrite every part of a split POV reply (#7504)da6e05bfix(memory): release an earlier responder's held split parts (#7504)f33ddb4Merge branch 'staging' into fix/pov-split-rewrite-every-partd98745ffix(memory): keep text-rewrite persistence on the sanitized text for split parts8ec24abMerge branch 'staging' into fix/pov-split-rewrite-every-part📊 Changes
7 files changed (+458 additions, -194 deletions)
View changed files
📝
docs/agents/memory.md(+2 -1)📝
packages/client/src/hooks/use-generate.ts(+27 -21)📝
packages/client/src/lib/message-rewrite-versions.ts(+25 -0)📝
packages/server/src/routes/generate.routes.ts(+184 -160)📝
packages/shared/src/utils/scene-breaks.ts(+11 -0)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+172 -9)📝
scripts/regressions/roleplay-streaming.regression.ts(+37 -3)📄 Description
Merge after #7497. This branch is built on
feat/advanced-memory-pov-split, so until #7497 lands the diff againststagingalso shows its commits. The two commits of this PR are the last two (f74599116,da6e05b62).Linked issue
Closes #7504
Follow-up to #7497 / #7481.
Why this change
***,---,___), so each part can have its own audience.What changed
generate.routes.ts): the existing text-rewrite block now runs once per part of the last reply, in order. A reply that wasn't split takes exactly the old path, as one target. Each part gets the same agents, settings and context as a normal reply.leadingSceneBreak(next tosplitAtSceneBreaks) finds that line.chats.updateMessageContenton its own row, which re-anchors that part's whisper positions within it, as for any rewrite.text_rewriteevent now carriesmessageId.heldForRewrite, shared by both). Each part is released by its owntext_rewrite: the rewrite, or its unchanged text after a failure.use-generate.ts):text_rewritewhosemessageIdis an earlier split part updates that row in the cache. The live reply, which belongs to the last part, isn't touched.applyMessageTextRewriteinlib/message-rewrite-versions.ts. The held-reply path uses it too, so both paths behave the same.docs/agents/memory.md): the split-reply bullet now says each part is rewritten on its own. Translation follow-up: #7506.Not changed: visibility decisions, swipes/regenerate (still one message), where attachments go, Continue/Impersonate (never split), and the rewrite of a reply that wasn't split.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not a substitute for the boxes above):
pnpm check: passed (exit 0) on the headda6e05b62. The only ESLint warning is the existing one inHomeProfessorMariChat.tsx, which this PR doesn't touch.node ./scripts/run-regressions.mjs --filter advanced-memory: 16/16 passed onda6e05b62.node ./scripts/run-regressions.mjs --filter roleplay: 14/14 passed.node ./scripts/run-regressions.mjs --filter regeneration-context: 2/2 passed.coderabbit review --agent --committed --base-commit <merge-base with staging>), run once on the first commitf74599116(not rate limited; it also covered #7497's commits on this branch): 2 findings.docs/agents/memory.md, minor: open a[docs-i18n]follow-up. Fixed by opening #7506.ChatArea.tsx, trivial: run speaker extraction for split parts in parallel. Not changed here: that code is #7497's autoplay path, and this PR doesn't touch it. It's a latency suggestion, not a defect, so it belongs with #7497 if wanted.da6e05b62(earlier-responder release) wasn't reviewed by the local run.New proof:
advanced-memory-post-generation.regression.ts, run through the real/api/generateroute with a fake Prose Guardian:***. Eachtext_rewritenames its part.message_savedcarry the placeholder. With hold off, they carry the written text.roleplay-streaming.regression.ts:applyMessageTextRewrite(placeholder removed, the built-in original kept and toggleable, cleared otherwise), plus the client routing of a part's rewrite to its own row. #7497's source check on the earlier part'smessage_savednow also requires the placeholder. It keeps theremainingContent: ""requirement unchanged.advanced-memory-post-generationfails atheld: one rewrite per part, without its break: only'***\n\nMARI_AND_MAUKIE run through the rain.'reached the agent. With the earlier-responder release disabled, the group assertion fails. With #7497'suse-generate.ts,roleplay-streamingfails at "an earlier part's rewrite must update its own row before anything touches the live reply".Manual verification notes
Needs a person in a browser (not done by the agent):
***line:***.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/memory.mdupdated; translation follow-up #7506. No CHANGELOG entry (compiled at release time).Risks
staging.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
mari characters update --jsonpatches #7916