mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1526] [Issue]: Automated chat summaries do not honor hide-summarized-messages setting #772
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#772
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 @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1526
Originally assigned to: @Promansis on GitHub.
Summary
The Summary Popover settings for
Hide summarized messages from AIandCollapse hidden messagesare wired for manual Summary Popover generation, but automated chat-summary paths do not honor the hide-summarized-messages behavior.Manual
last Nandrangesummaries now persist the settings and hide the selected source messages after generation. Automated summary agent/tool writes append summary entries without hiding the messages that were summarized.Expected behavior
The hide/collapse summary settings should behave consistently across summary paths:
last Nsummary generation should persist settings and hide selected source messages when enabled.rangesummary generation should persist settings and hide selected source messages when enabled.Collapse hidden messagesshould continue to apply to all messages hidden by either manual or automated summary flows.Actual behavior
Manual Summary Popover generation calls
maybeHideSummarizedMessages(data.messageIds)on success for both range and last-N flows.Automated chat-summary paths append summary content but do not record or hide the source message IDs:
append_chat_summaryintools-runtime.tsappends an automated summary entry withsourceMode: "agent", then updates chat metadata only.Reported behavior: the user's hide-summarized-messages setting does not work on automated summaries.
Steps to reproduce
Hide summarized messages from AIenabled.append_chat_summary.Impact area
Environment
origin/refactorate79891d9append_chat_summarytoolLogs, screenshots, or video
Code paths inspected:
src/features/modes/shared/chat-ui/components/SummaryPopover.tsxsrc/features/catalog/chats/hooks/use-chats.tssrc/engine/generation/tools-runtime.tssrc/engine/generation/agent-runner.tsRelevant current behavior:
SummaryPopover.tsxpersistssourceMode,contextSize,rangeStart,rangeEnd,hideSummarizedMessages, andcollapseHiddenMessagesin UI state.messageIds, and the popover hides those messages whenhideSummarizedMessagesis true.append_chat_summarycreates an automated summary entry but does not receive, store, or hide source message IDs.summaryPopoverSettings.collapseHiddenMessages, so the missing piece appears to be automated source-message hiding.Regression notes
The broader source-range and hidden-message settings work was tracked by closed #931 / #1362. This issue is the remaining automated-summary parity gap from the Roleplay audit.
Additional context
Likely fix needs a clear source-message contract for automated summaries. The summary agent/tool may need to know which recent messages it summarized, append those IDs to the summary entry, and call the same hidden-from-AI message patch path used by manual summaries when the user setting is enabled.
Be careful not to hide messages merely because an agent wrote arbitrary summary text unless the summarized source range is known.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: