mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2738] [Issue]: Chat Summary marker — misleading description + no diagnostic when a manual summary won't inject + duplicated mode-gate (UX/cleanup) #1378
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#1378
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 @kolacheee on GitHub (Jun 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2738
Originally assigned to: @SpicyMarinara on GitHub.
Summary
A user reported their manual Chat Summary "isn't getting injected in the context" even though the side-panel shows it active (
1 active · ~1.4k tokens, entry enabled) and their preset has the Chat Summary marker. Investigation againststagingshows this is not a functional bug — inroleplayandvisual_novelmodes (the only modes where the manual Chat Summary UI is reachable), an enabled manual entry is compiled intometadata.summaryand injected at the marker. But the feature has UX/clarity gaps that make a non-injecting case impossible for the user to diagnose, plus minor code drift. Filing those.Confirmed working path (for reference)
ctx.chatSummary→resolveRoleplayChatSummary(chatMode, meta)readsmeta.summaryfor roleplay/visual_novel (packages/server/src/routes/generate.routes.ts:601-603).meta.summaryfromsummaryEntriesin lockstep (packages/server/src/routes/chats.routes.ts:629-630,:693-694,:730-731), so the panel (summaryEntries) and marker (summary) stay in sync.UX / clarity gaps to fix
1. Misleading marker description
The Chat Summary marker description reads "Content is auto-generated at assembly time from your characters, lorebooks, etc." It does not mention that it also includes the user's manual Chat Summary entries — which is exactly what this user wrote and then couldn't find. The description should state that it renders the compiled Chat Summary (manual + automated entries).
2. No feedback when a summary won't inject
When the summary is empty in the prompt, the user has no signal why. The two common real causes are silent:
assembler.tsskips disabled sections/groups), orConsider surfacing a hint in the Summary panel (e.g. "Chat Summary section is disabled in the active preset" / "active preset has no Chat Summary marker") so users can self-diagnose.
Minor code cleanup (low risk, prevents future drift)
chats.routes.ts:1698-1701re-implements theroleplay || visual_novelgate as a raw ternary instead of calling the sharedresolveRoleplayChatSummaryhelper — drift risk if the mode list changes.generate/dry-run-route.ts:960,1177andgenerate/retry-agents-route.ts:642readchatMeta.summarywithout the mode gate. Currently harmless (the field is only populated in roleplay/visual_novel), but it's a latent inconsistency between the preview and the real send path.Steps that reproduce the user confusion
Suggested fix
chats.routes.ts:1698-1701withresolveRoleplayChatSummary, and align the dry-run/retry reads behind the same gate for consistency.Template checklist
pnpm checkpasses (TypeScript + ESLint)Filed from a user report ("manual Chat Summary not injected"); verified against
staging— the injection works in roleplay/VN, so this tracks the UX/clarity + cleanup gaps, not a functional regression. Boxes left unchecked for human verification.@SpicyMarinara commented on GitHub (Jun 21, 2026):
Addressed in PR #2747.