[PR #7211] [MERGED] fix(memory): let automatic visibility hide narration from an absent whisper recipient #7625

Closed
opened 2026-10-24 04:05:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7211
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/auto-visibility-whisper-recipients


📝 Commits (1)

  • 13b6fb2 fix(memory): let automatic visibility hide narration from an absent whisper recipient (#7192)

📊 Changes

4 files changed (+17 additions, -13 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/agents/memory.md (+1 -1)
📝 packages/server/src/services/advanced-memory.ts (+3 -9)
📝 scripts/regressions/advanced-memory-visibility.regression.ts (+12 -3)

📄 Description

Linked issue

Refs #7192 and #7191 (both closed by #7199 and #7196). Finishes the behaviour the maintainer asked for across both.

Why this change

The maintainer's scenario: the persona is alone, and the narrator whispers to Maukie, who isn't there. Maukie should not see the narration but should still get the whisper.

#7199 (automatic visibility) shipped with a placeholder ponytail: rule that never auto-hid a message from its whisper recipient. That was needed because, before #7196, hiding a message also dropped its whispers. With #7196 on staging, a message hidden from a character still delivers whispers addressed to them, so the placeholder now works against the request: an absent Maukie would see the whole narration just because it carries his whisper.

What changed

  • advanced-memory.ts: whisper recipients are ordinary candidates for automatic visibility again. The narrators and the author are still never hidden. The unused getRoleplayWhispers import is removed.
  • advanced-memory-visibility.regression.ts: the whisper case now expects the absent recipient (Pantalone) to be a candidate and hidden. It also checks with #7196's roleplayHiddenWhisperMessageIds that the hidden message still delivers its whisper to him.
  • docs/agents/memory.md: the visibility rules say an absent whisper recipient loses the rest of the message but still gets the whisper.
  • CHANGELOG entry.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Agent-run checks: pnpm check; the advanced-memory-visibility, roleplay-whisper-hidden-recipient and roleplay-whisper-generation regressions pass.

Manual verification notes

  • Manually verify in an individual Roleplay group chat with Decide who sees new messages on: a narrator message to the persona that whispers to an absent character is hidden from that character, and that character's next reply's prompt (Peek Prompt) contains the whisper but not the narration.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation) — covered by #7202
  • Version/release files updated (only if this PR includes a version bump)

Summary by CodeRabbit

  • Bug Fixes
    • When Decide who sees new messages is enabled, characters outside a scene no longer see the narration of messages whispered to them. The whisper itself is still delivered to its recipient.
    • Updated regression coverage to verify that scene visibility rules apply to whisper recipients.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7211 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/7/2026 **Status:** ✅ Merged **Merged:** 10/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/auto-visibility-whisper-recipients` --- ### 📝 Commits (1) - [`13b6fb2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/13b6fb2eb5e50550650ffa9ff81088e503842fee) fix(memory): let automatic visibility hide narration from an absent whisper recipient (#7192) ### 📊 Changes **4 files changed** (+17 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/agents/memory.md` (+1 -1) 📝 `packages/server/src/services/advanced-memory.ts` (+3 -9) 📝 `scripts/regressions/advanced-memory-visibility.regression.ts` (+12 -3) </details> ### 📄 Description ## Linked issue Refs #7192 and #7191 (both closed by #7199 and #7196). Finishes the behaviour the maintainer asked for across both. ## Why this change The maintainer's scenario: the persona is alone, and the narrator whispers to Maukie, who isn't there. Maukie should not see the narration but should still get the whisper. #7199 (automatic visibility) shipped with a placeholder `ponytail:` rule that never auto-hid a message from its whisper recipient. That was needed because, before #7196, hiding a message also dropped its whispers. With #7196 on staging, a message hidden from a character still delivers whispers addressed to them, so the placeholder now works against the request: an absent Maukie would see the whole narration just because it carries his whisper. ## What changed - `advanced-memory.ts`: whisper recipients are ordinary candidates for automatic visibility again. The narrators and the author are still never hidden. The unused `getRoleplayWhispers` import is removed. - `advanced-memory-visibility.regression.ts`: the whisper case now expects the absent recipient (Pantalone) to be a candidate and hidden. It also checks with #7196's `roleplayHiddenWhisperMessageIds` that the hidden message still delivers its whisper to him. - `docs/agents/memory.md`: the visibility rules say an absent whisper recipient loses the rest of the message but still gets the whisper. - CHANGELOG entry. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Agent-run checks: `pnpm check`; the `advanced-memory-visibility`, `roleplay-whisper-hidden-recipient` and `roleplay-whisper-generation` regressions pass. ### Manual verification notes - Manually verify in an individual Roleplay group chat with **Decide who sees new messages** on: a narrator message to the persona that whispers to an absent character is hidden from that character, and that character's next reply's prompt (Peek Prompt) contains the whisper but not the narration. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) — covered by #7202 - [ ] Version/release files updated (only if this PR includes a version bump) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * When **Decide who sees new messages** is enabled, characters outside a scene no longer see the narration of messages whispered to them. The whisper itself is still delivered to its recipient. * Updated regression coverage to verify that scene visibility rules apply to whisper recipients. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:05:58 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7625
No description provided.