mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7351] [MERGED] fix(memory): decide your own message when you post it #7695
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#7695
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/7351
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7349-user-message-visibility📝 Commits (4)
bdf5ceefix(memory): decide your own message when you post it (#7349)4812da2Merge origin/staging into fix/7349-user-message-visibilityd016335Move the CHANGELOG entry away from other open PRsb3c6648fix(memory): show the decision on an impersonated message right away (#7349)📊 Changes
5 files changed (+128 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/agents/memory.md(+1 -1)📝
packages/server/src/routes/chats.routes.ts(+11 -2)📝
packages/server/src/routes/generate.routes.ts(+16 -1)📝
scripts/regressions/advanced-memory-visibility.regression.ts(+99 -0)📄 Description
Linked issue
Closes #7349
Why this change
/send) goes throughPOST /api/chats/:id/messages, which never ran the visibility step. The message stayed undecided until a later reply was requested.message_saved) before the decision, and only learned the result in the end-of-turn refresh. The crossed-eye marker showed up only after every character had replied.What changed
POST /api/chats/:id/messages: a user message in a Roleplay chat with Advanced Memory and Decide who sees new messages on is decided right away, and the response carries the decided row. A failed decision is logged and hides nothing, and the message is still returned. Character, narrator and system messages posted this way are unchanged.message_saved, so the marker shows on your message before any character replies.message_saved, so the marker does not wait for the request's other background work (such as an illustration) to finish.visibilitySettled, so each message is decided once, a manual Hide from AI choice still wins, and a following reply waits for a decision in progress.scripts/regressions/advanced-memory-visibility.regression.tsnow covers a send (marker reaches the client before the first reply, decided once), a post without a reply (decided in the response, not asked again, no call for a hand-written character line or with the toggle off), and Impersonate. It fails on current staging.docs/agents/memory.md: one sentence saying your own message is decided as soon as you post it. Translations: #7350.CHANGELOG.md: one entry under Unreleased.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks:
node ./scripts/run-regressions.mjs --filter scripts/regressions/advanced-memory-visibility.regression.tspasses, and fails on staging without the fix (each of the three code changes reverted on its own also fails it).pnpm check(through the shared slot limiter) andpnpm regression:promptpass. The neighbouringadvanced-memory-generation,advanced-memory-post-generation,advanced-memory-coreandadvanced-memory-decisionsregressions pass. Local CodeRabbit (--committed) gave one minor finding, not applied: it suggests scoping the settle after a post to the new message only, so a second message posted while the first is still queued is not in the same model call. The batching it describes is the existing design ofsettleMessageVisibility(a generation's settle and the post-reply check already decide every undecided recent message in one call with the window as context), the overlap needs the first post's pass to be queued behind another visibility pass, and the extra context can only lean toward keeping a message visible.Manual verification notes
/sendin the same chat mark the message when it appears./send, and the partial message kept when you stop an Impersonate) now appears only after the decision returns. That is usually a second or two with a fast Helper, up to the 20-second visibility timeout, plus any visibility pass already running for the chat, such as a due post-reply scene check, which has no timeout of its own. Stopping an Impersonate keeps the composer busy for that time. Showing the message right away would need an optimistic row on the client; left as a maintainer decision.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)
No UI code changed. The existing per-character Hide from AI marker now appears on your message earlier.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.