mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2455] [MERGED] generation: preserve conversation preset summaries #5612
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#5612
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2455
Author: @Promansis
Created: 6/6/2026
Status: ✅ Merged
Merged: 6/6/2026
Merged by: @Promansis
Base:
refactor← Head:fix/issue-2447-chat-summary-injection📝 Commits (1)
9189eddgeneration: preserve conversation preset summaries📊 Changes
3 files changed (+127 additions, -5 deletions)
View changed files
📝
src/engine/generation/prompt-assembly.test.ts(+102 -0)📝
src/engine/generation/prompt-assembly.ts(+25 -3)📝
src/engine/generation/prompt-preset-selection.ts(+0 -2)📄 Description
Linked issue
Closes #2447
Why this change
Conversation prompt presets with prompt sections but no
chat_summarymarker skipped compiled chat summaries instead of using the legacy fallback insertion path. That meant generated conversation prompts could lose summary context even though explicit summary markers and the no-preset fallback still worked.What changed
chat_summarymarker.Refactor impact
Primary owner:
engine generation
Impact areas reviewed:
Boundary notes:
Pressure points touched:
src/engine/generation/prompt-assembly.tssrc/engine/generation/prompt-preset-selection.tsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm exec vitest run src/engine/generation/prompt-assembly.test.tspnpm typecheckpnpm checkDurable test rationale: the regression silently drops compiled chat summary context from conversation prompt presets. Existing tests covered nearby roleplay/lore prompt assembly behavior but not conversation summary fallback or marker no-duplication. The new tests are narrow assembler rows that exercise only selected conversation presets with and without the
chat_summarymarker.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Bugfix for existing prompt assembly behavior.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A. Engine prompt assembly bugfix; no visible UI change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.