[GH-ISSUE #6225] [Feature]: Toggle summary attachment for Roleplay agent requests #3474

Closed
opened 2026-10-21 06:03:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Sep 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6225

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Roleplay post-processing agents can send much larger requests than their recent-message limit suggests. The reported setup uses the last five messages and no attached lorebooks but sends roughly 20k input tokens, with roughly 10k tokens of chat summaries suspected as a contributor. Summaries are separate context and are not limited by the message count.

Proposed solution

Add an “Attach chat summaries” toggle in Chat Settings → Agents for Roleplay chats. Reuse the existing chat settings and agent context assembly. Keep it off by default, including existing chats without a saved value. Turning it on should include automatically attached chat summaries in agent requests while summaries remain available to the main generation in either case.

Alternatives considered

Reducing the recent-message count does not remove separately attached summaries. Deleting summaries would also remove context the main roleplay generation still needs.

Additional context

Requested by @SpicyMarinara in the maintainer workspace. Ownership: @SpicyMarinara, implementation by Codex. Validate enabled, disabled, omitted/default, non-Roleplay, and ordinary/grouped/manual agent paths with focused prompt proof.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6225 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Roleplay post-processing agents can send much larger requests than their recent-message limit suggests. The reported setup uses the last five messages and no attached lorebooks but sends roughly 20k input tokens, with roughly 10k tokens of chat summaries suspected as a contributor. Summaries are separate context and are not limited by the message count. ## Proposed solution Add an “Attach chat summaries” toggle in Chat Settings → Agents for Roleplay chats. Reuse the existing chat settings and agent context assembly. Keep it off by default, including existing chats without a saved value. Turning it on should include automatically attached chat summaries in agent requests while summaries remain available to the main generation in either case. ## Alternatives considered Reducing the recent-message count does not remove separately attached summaries. Deleting summaries would also remove context the main roleplay generation still needs. ## Additional context Requested by @SpicyMarinara in the maintainer workspace. Ownership: @SpicyMarinara, implementation by Codex. Validate enabled, disabled, omitted/default, non-Roleplay, and ordinary/grouped/manual agent paths with focused prompt proof. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 15, 2026):

Implemented in #6226 and merged into staging. Chat Settings → Agents now has Attach chat summaries, off by default for new and existing Roleplay chats. Automatic, grouped, and manual agent requests honor it, including after tool updates. Main replies retain their summaries. Validation: pnpm check, all three prompt regression suites, focused real-provider-fixture regressions, and desktop Chromium/mobile Chromium/mobile WebKit drawer checks.

<!-- gh-comment-id:5677691410 --> @SpicyMarinara commented on GitHub (Sep 15, 2026): Implemented in #6226 and merged into staging. Chat Settings → Agents now has **Attach chat summaries**, off by default for new and existing Roleplay chats. Automatic, grouped, and manual agent requests honor it, including after tool updates. Main replies retain their summaries. Validation: pnpm check, all three prompt regression suites, focused real-provider-fixture regressions, and desktop Chromium/mobile Chromium/mobile WebKit drawer checks.
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#3474
No description provided.