[PR #4689] [MERGED] Scope group cross-chat awareness to the replying character #6471

Closed
opened 2026-10-23 04:10:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4689
Author: @SpicyMarinara
Created: 8/6/2026
Status: ✅ Merged
Merged: 8/6/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/4688-scope-cross-chat-awareness


📝 Commits (3)

  • 94249c5 chore: start #4688 fix
  • 1f813c8 Merge branch 'staging' into agent/4688-scope-cross-chat-awareness
  • a98757b fix: scope group conversation awareness

📊 Changes

3 files changed (+174 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+133 -0)
📝 packages/server/src/routes/generate.routes.ts (+40 -2)

📄 Description

Linked issue

Closes #4688

Why this change

  • Individual-mode group conversations built one cross-chat awareness block from the entire cast before the responder loop. Every character therefore received sibling-chat context belonging only to other characters.

What changed

  • Defer awareness assembly for individual group turns until the replying character is known.
  • Build the awareness and character-memory block using only that responder ID.
  • Preserve shared awareness behavior for merged groups and impersonation.
  • Add a provider-capture regression that verifies each character receives their own sibling-chat context and excludes the other character’s context.
  • Add the user-facing fix to the Unreleased changelog.

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

Manual verification notes

  • pnpm regression:prompt
  • pnpm check
  • Playwright desktop Chromium: individual group awareness includes only the replying character’s sibling chats
  • Before the fix, the captured Alpha prompt contained Beta’s unique sibling-chat secret. After the fix, both provider requests contain only the replying character’s corresponding secret.

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] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Prompt assembly behavior only; no visual changes.

Summary by CodeRabbit

  • New Features

    • Improved group conversations using individual response mode by limiting cross-chat context and character memories to the character currently replying.
    • Other conversation modes continue to use shared conversation awareness.
  • Bug Fixes

    • Prevented characters from receiving unrelated sibling-chat information during group responses.
  • Tests

    • Added end-to-end coverage verifying character-specific context isolation.

🔄 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/4689 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/6/2026 **Status:** ✅ Merged **Merged:** 8/6/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/4688-scope-cross-chat-awareness` --- ### 📝 Commits (3) - [`94249c5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/94249c525fe5585e46d110fb70b078d96cbd43e2) chore: start #4688 fix - [`1f813c8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f813c8d74ac9043e4de8bbe3b7f1b158cf802d4) Merge branch 'staging' into agent/4688-scope-cross-chat-awareness - [`a98757b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a98757bfe8d69198e5864ca04ebf48cb68bb0958) fix: scope group conversation awareness ### 📊 Changes **3 files changed** (+174 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+133 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+40 -2) </details> ### 📄 Description ## Linked issue Closes #4688 ## Why this change - Individual-mode group conversations built one cross-chat awareness block from the entire cast before the responder loop. Every character therefore received sibling-chat context belonging only to other characters. ## What changed - Defer awareness assembly for individual group turns until the replying character is known. - Build the awareness and character-memory block using only that responder ID. - Preserve shared awareness behavior for merged groups and impersonation. - Add a provider-capture regression that verifies each character receives their own sibling-chat context and excludes the other character’s context. - Add the user-facing fix to the Unreleased changelog. ## 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` ### Manual verification notes - `pnpm regression:prompt` - `pnpm check` - Playwright desktop Chromium: `individual group awareness includes only the replying character’s sibling chats` - Before the fix, the captured Alpha prompt contained Beta’s unique sibling-chat secret. After the fix, both provider requests contain only the replying character’s corresponding secret. ## 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] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Prompt assembly behavior only; no visual changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved group conversations using individual response mode by limiting cross-chat context and character memories to the character currently replying. * Other conversation modes continue to use shared conversation awareness. * **Bug Fixes** * Prevented characters from receiving unrelated sibling-chat information during group responses. * **Tests** * Added end-to-end coverage verifying character-specific context isolation. <!-- 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-23 04:10:45 +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#6471
No description provided.