mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6225] [Feature]: Toggle summary attachment for Roleplay agent requests #3474
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#3474
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?
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
@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.