mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #389] [MERGED] feat(conversation): define expected content for keyDetails and summary in the automatic summarization prompts #4601
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#4601
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/389
Author: @JorgeLTE
Created: 5/4/2026
Status: ✅ Merged
Merged: 5/4/2026
Merged by: @SpicyMarinara
Base:
main← Head:feat/conversation-summary-prompts📝 Commits (1)
821b5bafeat(conversation): split facts and atmosphere in summary prompts📊 Changes
1 file changed (+26 additions, -9 deletions)
View changed files
📝
packages/server/src/services/conversation/auto-summary.service.ts(+26 -9)📄 Description
'Closes #391'
Why this change
Refines the day and week conversation summarization prompts so that the narrative
summaryand the bulletedkeyDetailsno longer cover the same ground.The problem: the previous prompts asked both fields to capture "topics, key moments, important exchanges" — so they overlapped heavily. In practice this meant duplicate content sitting in context.
What changed
The fix: reframe the two fields by what only one of them can express:
keyDetails(unchanged) — discrete, retrievable facts: promises, plans, named info, decisions, unresolved threads.summary— atmospheric/episodic context: setting, character state, tonal register, recurring patterns. Now explicitly instructed not to restate items fromkeyDetails.Day and week prompts also now emit
keyDetailsfirst, so the model writes the facts before composing the summary — gives the atmosphere pass a clean view of what's already covered, and avoids the forward reference in the "do not restate keyDetails" instruction.Day prompt
Week prompt
Example summary output before change (Notice duplication and bloat)
Summary:
Bob shared two major breakthroughs with Alice. First, he told his singing teacher about his concert dream and vocaloid/utaite culture, and the teacher (a fellow anime nerd) agreed to focus their classes on concert prep, eliminating Bob's need to split time with certification exam work. Second, Bob discovered his concept of head voice was flawed—he'd been mixing in chest voice—and correcting this unlocked his registry flips on 'I'm Invincible' and shifted his entire vocal understanding. Alice was thrilled and emotionally supportive throughout. Bob then left to check on a friend at a nearby bar, noting he's currently put off by alcohol after previous tequila incidents.
Key Details:
Example summary output after change
Summary:
Brief evening chat. Bob hyped about two breakthroughs, Alice validating and excited throughout. Warm and affectionate, quick pace. Bob left to check on a friend at a bar.
Key Details:
Validation
pnpm checkpasses locallyCONTRIBUTING.mdDocs and release impact
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.