mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7754] [Issue]: Long chats load only the first 73 of 95 manual summaries #4280
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#4280
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 (Oct 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7754
Originally assigned to: @SpicyMarinara on GitHub.
Summary
A user with a 2,300+ post chat reports that only the first 73 of 95 manually generated summaries are included in model context. Later summaries are omitted, leaving a growing gap between summarized history and the recent chat history.
Expected behavior
All applicable manual summaries should be included when sufficient context capacity is available and semantic retrieval is disabled, without leaving a gap before the recent chat history.
Actual behavior
Only the first 73 of 95 manual summaries are included. With chat history limited to 400 posts, the user reports approximately 150 posts are covered by neither loaded summaries nor recent history. Enabling semantic retrieval and maximizing its settings still includes only the first 73 summaries. Changing models and reducing the amount of recent chat history also do not resolve the issue.
Steps to reproduce
Environment
c56501495a)Logs, screenshots, or video
Support diagnostics provided. Active connection: glm flash; provider: openrouter; model: z-ai/glm-5.3-flash. Last detected freeze: none detected. Main, utility, and decision sidecars: not configured. No error logs, screenshots, or video provided in the Discord context.
Additional context
Reported by Leytra on October 16–17, 2026. Manual summaries are used because the user frequently regenerates messages. The user reports that manually triggered summaries cannot be routed into semantic retrieval. The observed cutoff is 73 summaries in this chat; a general fixed limit or root cause has not been established.
Discord thread: Manual summaries can't load right
Discord thread link: https://discord.com/channels/1417099416812392641/1560596931691024456
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (9 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 17, 2026):
Investigating and implementing this fix as @SpicyMarinara with Codex. I am tracing manual-summary loading and prompt budgeting, and will add regression coverage before delivering the fix to staging.
@SpicyMarinara commented on GitHub (Oct 17, 2026):
Fixed in #7756 and merged into staging at
0f7bb33cb80b3bfdb8a3f2a8cafc648e01bfe778.The cause was a hidden 200,000-character output limit in macro processing, before model context fitting. It clipped the end of the combined summary text even when that text contained no macros. A synthetic set of 95 summaries reproduced the apparent cutoff at 73; there was no fixed 73-summary limit.
Macro processing now preserves the original text and permits bounded additional expansion, while retaining explicit caller limits and the existing expansion guards. Regression coverage verifies all 95 enabled manual summaries and their endings through both summary placements when model context has room. It also checks character macros, disabled summaries, semantic recent-only selection, and expansion limits.
Validation:
pnpm check, focused prompt/context regressions, seven UI smoke tests, three production startup tests, and container API/frontend checks passed. The complete local run passed 908/909 files; the one shared-build import race passed on isolated rerun. All required GitHub checks and substantive CodeRabbit review passed before merge, with no unresolved review threads.The reporter's chat export and physical Android/Termux device were unavailable, so that exact installation remains unverified. Please update to staging to receive the fix. Closing as fixed; if the same gap remains there, please provide the affected prompt/context details so we can investigate that specific chat.