[PR #7254] [MERGED] fix(chat): merged group chats label Chat Summary sections by who knows them #7646

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

📋 Pull Request Information

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

Base: staging ← Head: fix/merged-classic-summary-conditions


📝 Commits (6)

  • c75c366 fix(chat): merged group chats label Chat Summary sections by who knows them
  • f9f772a fix(chat): keep summary readers for a chosen merged responder and in Peek Prompt
  • 02660ce fix(chat): keep the single summary reading when a merged character's card cannot be read
  • b4092df Merge origin/staging into fix/merged-classic-summary-conditions
  • cae2adb fix(chat): keep summary readers when a deleted card's id lingers in a merged chat
  • 17d5854 Merge origin/staging into fix/merged-classic-summary-conditions

📊 Changes

12 files changed (+475 additions, -27 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/agents/memory.md (+2 -0)
📝 packages/server/src/routes/chats.routes.ts (+18 -2)
📝 packages/server/src/routes/generate.routes.ts (+15 -1)
📝 packages/server/src/routes/generate/dry-run-route.ts (+14 -1)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+23 -0)
📝 packages/server/src/services/advanced-memory.ts (+4 -15)
📝 packages/server/src/services/prompt/assembler.ts (+11 -1)
📝 packages/server/src/services/prompt/macro-context.ts (+40 -3)
📝 packages/server/src/services/prompt/marker-expander.ts (+5 -1)
📝 packages/shared/src/utils/macro-engine.ts (+28 -3)
➕ scripts/regressions/merged-chat-summary.regression.ts (+314 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7252

Related: #7237, #7239. Translation follow-up: #7253.

Why this change

While building #7239, its builder found that the classic Chat Summary (Advanced Memory off) has the same problem #7239 fixed for Advanced Memory. A merged group chat resolves the summary once, with {{char}} set to the first character in chat order. Only that character's {{#if char == "Name"}} sections reach the prompt; everyone else's are dropped. When the narrator comes first, narrator-only sections reach the shared prompt instead. Character-scoped sections like these are also what Advanced Memory saves into Chat Summaries, so they stay in the summary after Advanced Memory is turned off.

Mari's design for merged group chats (2026-10-07): "things should not break; the who-remembers-what is more informative for the model." A merged reply can voice anyone present, so private content is kept and labelled with who knows it, instead of being evaluated as one arbitrary character. This PR applies that design to the classic Chat Summary with the same labels #7239 uses.

What changed

  • resolveChatSummaryMacros (packages/server/src/services/prompt/macro-context.ts) resolves the summary for a merged prompt. It reuses scopeCharacterSummary with a mark callback, as #7239 does:
    • A section only some present characters get is resolved for each of them and marked, for example [Known only to Maukie: …]. A section everyone present gets has no mark.
    • Sections no present character gets, such as narrator-only ones, are left out.
    • A condition mixing a name with something else, such as char == "Pantalone" && getvar::ready == "yes", is checked for each present character and marked the same way.
    • Text outside every condition is resolved once with the prompt's usual context, so {{char}} there resolves exactly as before. Lorebooks and the main prompt are untouched.
  • mergedChatSummaryReaders (packages/server/src/routes/generate/generate-route-utils.ts) decides who the readers are: everyone present except the Advanced Memory narrator. It returns nothing, which keeps the old single reading, for one-character chats, Individual mode and impersonation. A chosen responder (forCharacterId, for example /guided respond for X) still gets readers: it does not pin a merged Roleplay reply to one speaker (mergedSpeaksOnlyTarget in generate.routes.ts), and #7239's Advanced Memory reads for everyone present then too. In a merged chat of the narrator and one character, that character is the only reader, so the summary is read as them and narrator-only sections stay out, matching #7239.
  • Generation (generate.routes.ts), the prompt preview (dry-run-route.ts) and Peek Prompt's live preview (chats.routes.ts, used before the first reply and whenever the summary changed since the last one) pass the readers to every summary placement: the chat_summary marker (marker-expander.ts), the fallback append inside the assembler, and the preset-less fallback in generation (appendFallbackChatSummaryToSystemPrompt).
  • scopeCharacterSummary now also passes the nesting depth to mark. This is how top-level text is told apart from the content of a {{#if char == …}} branch. Without it, {{char}} inside a Maukie-only section resolved to the narrator in a narrator-and-Maukie chat. Existing callers ignore the extra argument.
  • The grouping and [Known only to …] formatting from #7239's renderEntry moved into a shared markReaderVersions (packages/shared/src/utils/macro-engine.ts), used by both Advanced Memory and the Chat Summary. Advanced Memory output is unchanged; all 15 Advanced Memory regressions pass.
  • A ponytail: shortcut: a summary that contains a group block ([ … ] lines) keeps the old single reading, because splitting the block at a condition would undo its per-character repeat. The comment names the upgrade path (expand group blocks before scoping).
  • Docs: one paragraph in docs/agents/memory.md (Chat Summary section) and a CHANGELOG entry. Translation follow-up: #7253.

Prompt text, before and after

Merged chat with Narrator, Maukie and Pantalone, in that order, with the Advanced Memory narrator set to Narrator. Summary:

{{user}} and {{char}} reached the harbor.
{{#if char == "Maukie"}}{{char}} hid the compass.{{/if}}
{{#if char == "Maukie" || char == "Pantalone"}}The travelers kept the compass promise.{{/if}}
{{#if char == "Narrator"}}NARRATOR_ONLY The storm was planned.{{/if}}
{{#if char == "Pantalone"}}Pantalone owes Cara a debt.{{else}}Nobody mentions the debt.{{/if}}
{{#if char == "Pantalone" && getvar::ready == "yes"}}MIXED_SECRET{{/if}}

Before (staging):

<chat_summary>
    Mari and Narrator reached the harbor.


    NARRATOR_ONLY The storm was planned.
    Nobody mentions the debt.
</chat_summary>

After:

<chat_summary>
    Mari and Narrator reached the harbor.
    [Known only to Maukie: Maukie hid the compass.]
    The travelers kept the compass promise.

    [Known only to Pantalone: Pantalone owes Cara a debt.][Known only to Maukie: Nobody mentions the debt.]
    [Known only to Pantalone: MIXED_SECRET]
</chat_summary>

The first line still says "Narrator" because text outside every condition keeps the prompt's usual {{char}}, as it did before.

New regression

scripts/regressions/merged-chat-summary.regression.ts:

  • The merged example above, through the chat_summary marker, the assembler's fallback append and the preset-less fallback, asserted as exact strings.
  • A narrator-and-Maukie merged chat reads every section as Maukie, without marks, and leaves out the narrator-only one.
  • Individual mode (deferred, or one chosen speaker) and a single-character chat produce exactly the strings staging produces for the same fixture (captured from a staging run). Without readers, all eight prompt variants of the fixture are byte-identical to staging.
  • mergedChatSummaryReaders excludes the narrator and returns nothing for Individual mode, impersonation and a single-character chat.
  • Generation, the preview and Peek Prompt's live preview pass the readers to every summary placement, and a chosen responder keeps them.
  • Against the staging sources, the regression fails at a merged summary marks who knows each private section and leaves out the narrator's (marker: true).

No existing test was changed.

Not changed

  • The preview's prompt-parts path and its no-preset path add the summary without resolving any macros, on staging as well, so they were never read as the first character. They are left as they are.
  • Agent requests that attach summaries keep every branch, as before.

Verification follow-up (f9f772a29)

An adversarial check of c75c36649 found two gaps, now fixed:

  • A chosen responder read the summary as that character. mergedChatSummaryReaders returned nothing when forCharacterId was set, but in merged Roleplay that doesn't pin the reply to one speaker (mergedSpeaksOnlyTarget), and Advanced Memory still reads for everyone present. So /guided respond for Narrator put narrator-only sections back into a prompt that can voice the cast. The target no longer turns readers off, in generation or the preview.
  • Peek Prompt's live preview didn't match generation. The client's Peek Prompt (/chats/:id/peek-prompt) shows the saved request when it can. Before the first reply, or after the summary changed, it assembles a live preview without readers, so it showed the old first-character reading. That was exactly the case in the first manual step below. It now passes the same readers.

Byte-identity rechecked independently: with four summaries (nested and else if branches, a variable condition, card fields, a group block, {{trimStart}}), every prompt without readers matched origin/staging output exactly, apart from unseeded dice rolls. The variants were Individual (deferred), merged without readers, chosen speaker and solo, each through the marker and the fallback, plus appendFallbackChatSummaryToSystemPrompt with and without deferral.

Known limits, left as they are:

  • {{char}} inside a condition that doesn't name a character, such as {{#if getvar::x == "y"}}{{char}} …{{/if}}, is now read once per present character and marked, as #7239 does for Advanced Memory. Outside any condition it still resolves once.
  • Text pulled in at the top level by {{include::…}} resolves once, as on staging.
  • The group-block check matches [ lines padded with spaces or tabs only, not other whitespace.

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

Commands the agent ran:

  • node scripts/run-regressions.mjs --filter merged-chat-summary: passed. It fails against the staging sources, as described above.
  • All 15 Advanced Memory regressions (--filter advanced-memory): passed.
  • The 5 memory-recall regressions and the 5 summary regressions (advanced-memory-summary, conversation-summary, merged-chat-summary, semantic-summary-cancellation, semantic-summary-settings): passed.
  • roleplay-user-private-memory, native-export-memory and active-character-reference: passed.
  • pnpm regression:prompt: passed.
  • pnpm check: passed.
  • After f9f772a29: merged-chat-summary (also fails against c75c36649's routes at the new chosen-responder and Peek Prompt assertions), advanced-memory 15/15, memory-recall 5/5, summary 5/5, group- 7/7, roleplay-user-private-memory, native-export-memory, active-character-reference, assigned-chat-sweep, character-id-macro-modes, decision-conditionals, decision-reachable-statements, game-tool-controls, lorebook-decision-activation, roleplay-regeneration-context, roleplay-streaming, pnpm regression:prompt and pnpm check: passed.

Manual verification notes

  • Manually verify in a merged Roleplay group chat with Advanced Memory off: add a Chat Summary entry with {{#if char == "<second character>"}}SECRET{{/if}}, open Peek Prompt, and check that the Chat Summary shows [Known only to <second character>: SECRET].
  • Manually verify in the same chat that a section written for every character in the chat (for example {{#if char == "A" || char == "B"}}…{{/if}}) shows without a mark.
  • Manually verify that with an Advanced Memory Narrator set and listed first in the chat, a {{#if char == "<narrator>"}}…{{/if}} section does not appear in Peek Prompt or in the request sent to the model.
  • Manually verify that an Individual group chat and a one-character chat show the same Chat Summary in Peek Prompt as before the update, with no "Known only to" marks.
  • Manually verify that generating a reply in the merged chat sends the same marked Chat Summary as Peek Prompt shows (for example with debug prompt logging on).
  • Manually verify in the merged chat with the narrator set that /guided respond for <narrator> sends a Chat Summary without the narrator-only section and with the other characters' sections marked.

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

docs/agents/memory.md gains one paragraph, and CHANGELOG.md gains an entry at the top of [Unreleased]. Translation follow-up: #7253.

UI evidence (if applicable)

No UI change. This changes prompt text only; see the before and after above.

Summary by CodeRabbit

  • New Features
    • Merged group-chat summaries now include character-specific content labeled with who knows it, while excluding narrator-only content. Peek Prompt displays summaries with the same behavior.
  • Compatibility
    • Summary behavior remains unchanged for one-character chats, individual replies, replies for a chosen character, and impersonation. Shared summary content continues to appear normally.

🔄 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/7254 **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/merged-classic-summary-conditions` --- ### 📝 Commits (6) - [`c75c366`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c75c36649e89b6295973373302296beb46c3aa69) fix(chat): merged group chats label Chat Summary sections by who knows them - [`f9f772a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f9f772a292788787b8071bfb6784f243c055a2a9) fix(chat): keep summary readers for a chosen merged responder and in Peek Prompt - [`02660ce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/02660ce8506fd1cbe126fb6e70069461b65d003a) fix(chat): keep the single summary reading when a merged character's card cannot be read - [`b4092df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4092dfef2f30d0cccf27b4378c1191c9c01f8ed) Merge origin/staging into fix/merged-classic-summary-conditions - [`cae2adb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cae2adb92056d01ba5e4070bb9279b39d9f7cd89) fix(chat): keep summary readers when a deleted card's id lingers in a merged chat - [`17d5854`](https://github.com/Pasta-Devs/Marinara-Engine/commit/17d585454f222d1fb6d1601824346f12326e6039) Merge origin/staging into fix/merged-classic-summary-conditions ### 📊 Changes **12 files changed** (+475 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/agents/memory.md` (+2 -0) 📝 `packages/server/src/routes/chats.routes.ts` (+18 -2) 📝 `packages/server/src/routes/generate.routes.ts` (+15 -1) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+14 -1) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+23 -0) 📝 `packages/server/src/services/advanced-memory.ts` (+4 -15) 📝 `packages/server/src/services/prompt/assembler.ts` (+11 -1) 📝 `packages/server/src/services/prompt/macro-context.ts` (+40 -3) 📝 `packages/server/src/services/prompt/marker-expander.ts` (+5 -1) 📝 `packages/shared/src/utils/macro-engine.ts` (+28 -3) ➕ `scripts/regressions/merged-chat-summary.regression.ts` (+314 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7252 Related: #7237, #7239. Translation follow-up: #7253. ## Why this change While building #7239, its builder found that the classic Chat Summary (Advanced Memory **off**) has the same problem #7239 fixed for Advanced Memory. A merged group chat resolves the summary once, with `{{char}}` set to the first character in chat order. Only that character's `{{#if char == "Name"}}` sections reach the prompt; everyone else's are dropped. When the narrator comes first, narrator-only sections reach the shared prompt instead. Character-scoped sections like these are also what Advanced Memory saves into Chat Summaries, so they stay in the summary after Advanced Memory is turned off. Mari's design for merged group chats (2026-10-07): "things should not break; the who-remembers-what is more informative for the model." A merged reply can voice anyone present, so private content is kept and labelled with who knows it, instead of being evaluated as one arbitrary character. This PR applies that design to the classic Chat Summary with the same labels #7239 uses. ## What changed - `resolveChatSummaryMacros` (`packages/server/src/services/prompt/macro-context.ts`) resolves the summary for a merged prompt. It reuses `scopeCharacterSummary` with a `mark` callback, as #7239 does: - A section only some present characters get is resolved for each of them and marked, for example `[Known only to Maukie: …]`. A section everyone present gets has no mark. - Sections no present character gets, such as narrator-only ones, are left out. - A condition mixing a name with something else, such as `char == "Pantalone" && getvar::ready == "yes"`, is checked for each present character and marked the same way. - Text outside every condition is resolved once with the prompt's usual context, so `{{char}}` there resolves exactly as before. Lorebooks and the main prompt are untouched. - `mergedChatSummaryReaders` (`packages/server/src/routes/generate/generate-route-utils.ts`) decides who the readers are: everyone present except the Advanced Memory narrator. It returns nothing, which keeps the old single reading, for one-character chats, Individual mode and impersonation. A chosen responder (`forCharacterId`, for example `/guided respond for X`) still gets readers: it does not pin a merged Roleplay reply to one speaker (`mergedSpeaksOnlyTarget` in `generate.routes.ts`), and #7239's Advanced Memory reads for everyone present then too. In a merged chat of the narrator and one character, that character is the only reader, so the summary is read as them and narrator-only sections stay out, matching #7239. - Generation (`generate.routes.ts`), the prompt preview (`dry-run-route.ts`) and **Peek Prompt**'s live preview (`chats.routes.ts`, used before the first reply and whenever the summary changed since the last one) pass the readers to every summary placement: the `chat_summary` marker (`marker-expander.ts`), the fallback append inside the assembler, and the preset-less fallback in generation (`appendFallbackChatSummaryToSystemPrompt`). - `scopeCharacterSummary` now also passes the nesting depth to `mark`. This is how top-level text is told apart from the content of a `{{#if char == …}}` branch. Without it, `{{char}}` inside a Maukie-only section resolved to the narrator in a narrator-and-Maukie chat. Existing callers ignore the extra argument. - The grouping and `[Known only to …]` formatting from #7239's `renderEntry` moved into a shared `markReaderVersions` (`packages/shared/src/utils/macro-engine.ts`), used by both Advanced Memory and the Chat Summary. Advanced Memory output is unchanged; all 15 Advanced Memory regressions pass. - A `ponytail:` shortcut: a summary that contains a group block (`[` … `]` lines) keeps the old single reading, because splitting the block at a condition would undo its per-character repeat. The comment names the upgrade path (expand group blocks before scoping). - Docs: one paragraph in `docs/agents/memory.md` (Chat Summary section) and a CHANGELOG entry. Translation follow-up: #7253. ### Prompt text, before and after Merged chat with Narrator, Maukie and Pantalone, in that order, with the Advanced Memory narrator set to Narrator. Summary: ```text {{user}} and {{char}} reached the harbor. {{#if char == "Maukie"}}{{char}} hid the compass.{{/if}} {{#if char == "Maukie" || char == "Pantalone"}}The travelers kept the compass promise.{{/if}} {{#if char == "Narrator"}}NARRATOR_ONLY The storm was planned.{{/if}} {{#if char == "Pantalone"}}Pantalone owes Cara a debt.{{else}}Nobody mentions the debt.{{/if}} {{#if char == "Pantalone" && getvar::ready == "yes"}}MIXED_SECRET{{/if}} ``` Before (staging): ```text <chat_summary> Mari and Narrator reached the harbor. NARRATOR_ONLY The storm was planned. Nobody mentions the debt. </chat_summary> ``` After: ```text <chat_summary> Mari and Narrator reached the harbor. [Known only to Maukie: Maukie hid the compass.] The travelers kept the compass promise. [Known only to Pantalone: Pantalone owes Cara a debt.][Known only to Maukie: Nobody mentions the debt.] [Known only to Pantalone: MIXED_SECRET] </chat_summary> ``` The first line still says "Narrator" because text outside every condition keeps the prompt's usual `{{char}}`, as it did before. ### New regression `scripts/regressions/merged-chat-summary.regression.ts`: - The merged example above, through the `chat_summary` marker, the assembler's fallback append and the preset-less fallback, asserted as exact strings. - A narrator-and-Maukie merged chat reads every section as Maukie, without marks, and leaves out the narrator-only one. - Individual mode (deferred, or one chosen speaker) and a single-character chat produce exactly the strings `staging` produces for the same fixture (captured from a `staging` run). Without readers, all eight prompt variants of the fixture are byte-identical to `staging`. - `mergedChatSummaryReaders` excludes the narrator and returns nothing for Individual mode, impersonation and a single-character chat. - Generation, the preview and Peek Prompt's live preview pass the readers to every summary placement, and a chosen responder keeps them. - Against the `staging` sources, the regression fails at `a merged summary marks who knows each private section and leaves out the narrator's (marker: true)`. No existing test was changed. ### Not changed - The preview's prompt-parts path and its no-preset path add the summary without resolving any macros, on `staging` as well, so they were never read as the first character. They are left as they are. - Agent requests that attach summaries keep every branch, as before. ### Verification follow-up (f9f772a29) An adversarial check of c75c36649 found two gaps, now fixed: - **A chosen responder read the summary as that character.** `mergedChatSummaryReaders` returned nothing when `forCharacterId` was set, but in merged Roleplay that doesn't pin the reply to one speaker (`mergedSpeaksOnlyTarget`), and Advanced Memory still reads for everyone present. So `/guided respond for Narrator` put narrator-only sections back into a prompt that can voice the cast. The target no longer turns readers off, in generation or the preview. - **Peek Prompt's live preview didn't match generation.** The client's Peek Prompt (`/chats/:id/peek-prompt`) shows the saved request when it can. Before the first reply, or after the summary changed, it assembles a live preview without readers, so it showed the old first-character reading. That was exactly the case in the first manual step below. It now passes the same readers. Byte-identity rechecked independently: with four summaries (nested and `else if` branches, a variable condition, card fields, a group block, `{{trimStart}}`), every prompt without readers matched `origin/staging` output exactly, apart from unseeded dice rolls. The variants were Individual (deferred), merged without readers, chosen speaker and solo, each through the marker and the fallback, plus `appendFallbackChatSummaryToSystemPrompt` with and without deferral. Known limits, left as they are: - `{{char}}` inside a condition that doesn't name a character, such as `{{#if getvar::x == "y"}}{{char}} …{{/if}}`, is now read once per present character and marked, as #7239 does for Advanced Memory. Outside any condition it still resolves once. - Text pulled in at the top level by `{{include::…}}` resolves once, as on `staging`. - The group-block check matches `[` lines padded with spaces or tabs only, not other whitespace. ## 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` Commands the agent ran: - `node scripts/run-regressions.mjs --filter merged-chat-summary`: passed. It fails against the `staging` sources, as described above. - All 15 Advanced Memory regressions (`--filter advanced-memory`): passed. - The 5 `memory-recall` regressions and the 5 `summary` regressions (`advanced-memory-summary`, `conversation-summary`, `merged-chat-summary`, `semantic-summary-cancellation`, `semantic-summary-settings`): passed. - `roleplay-user-private-memory`, `native-export-memory` and `active-character-reference`: passed. - `pnpm regression:prompt`: passed. - `pnpm check`: passed. - After f9f772a29: `merged-chat-summary` (also fails against c75c36649's routes at the new chosen-responder and Peek Prompt assertions), `advanced-memory` 15/15, `memory-recall` 5/5, `summary` 5/5, `group-` 7/7, `roleplay-user-private-memory`, `native-export-memory`, `active-character-reference`, `assigned-chat-sweep`, `character-id-macro-modes`, `decision-conditionals`, `decision-reachable-statements`, `game-tool-controls`, `lorebook-decision-activation`, `roleplay-regeneration-context`, `roleplay-streaming`, `pnpm regression:prompt` and `pnpm check`: passed. ### Manual verification notes - Manually verify in a **merged** Roleplay group chat with Advanced Memory **off**: add a Chat Summary entry with `{{#if char == "<second character>"}}SECRET{{/if}}`, open **Peek Prompt**, and check that the Chat Summary shows `[Known only to <second character>: SECRET]`. - Manually verify in the same chat that a section written for every character in the chat (for example `{{#if char == "A" || char == "B"}}…{{/if}}`) shows without a mark. - Manually verify that with an Advanced Memory **Narrator** set and listed first in the chat, a `{{#if char == "<narrator>"}}…{{/if}}` section does not appear in **Peek Prompt** or in the request sent to the model. - Manually verify that an **Individual** group chat and a one-character chat show the same Chat Summary in **Peek Prompt** as before the update, with no "Known only to" marks. - Manually verify that generating a reply in the merged chat sends the same marked Chat Summary as **Peek Prompt** shows (for example with debug prompt logging on). - Manually verify in the merged chat with the narrator set that `/guided respond for <narrator>` sends a Chat Summary without the narrator-only section and with the other characters' sections marked. ## 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) - [ ] Version/release files updated (only if this PR includes a version bump) `docs/agents/memory.md` gains one paragraph, and `CHANGELOG.md` gains an entry at the top of `[Unreleased]`. Translation follow-up: #7253. ## UI evidence (if applicable) No UI change. This changes prompt text only; see the before and after above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Merged group-chat summaries now include character-specific content labeled with who knows it, while excluding narrator-only content. Peek Prompt displays summaries with the same behavior. * **Compatibility** * Summary behavior remains unchanged for one-character chats, individual replies, replies for a chosen character, and impersonation. Shared summary content continues to appear normally. <!-- 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:06:09 +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#7646
No description provided.