[PR #257] [MERGED] refactor(server): drop duplicate key details from inline conversation summaries #4531

Closed
opened 2026-10-22 04:08:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/257
Author: @JorgeLTE
Created: 4/27/2026
Status: ✅ Merged
Merged: 4/27/2026
Merged by: @LukaTheHero

Base: main ← Head: refactor/dedupe-summary-key-details


📝 Commits (1)

  • 7011855 refactor(server): drop duplicate key details from inline conversation summaries

📊 Changes

1 file changed (+4 additions, -10 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+4 -10)

📄 Description

Summary

In conversation mode, every per-day and per-week summary's keyDetails were being injected into the prompt twice:

  1. Inline, appended to each <summary date="..."> / <summary week="..."> block in the chat history.
  2. As the canonical <important_memories> block at the end of conversationSystemPrompt, where they are already labeled by date and chronologically sorted.

This PR keeps <important_memories> as the single source of truth for key details. The inline <summary> blocks now hold the narrative recap only.

Test plan

  • pnpm install
  • pnpm check (lint + build) passes
  • Manual: open a conversation-mode chat that already has at least one daily summary and one consolidated weekly summary; confirm the model still references key details correctly and that summaries no longer carry an inline Key details: … line in the request payload

Summary by CodeRabbit

Release Notes

  • Refactor
    • Optimized the internal processing of conversation summaries to improve the organization and accessibility of key details within the system.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/257 **Author:** [@JorgeLTE](https://github.com/JorgeLTE) **Created:** 4/27/2026 **Status:** ✅ Merged **Merged:** 4/27/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `refactor/dedupe-summary-key-details` --- ### 📝 Commits (1) - [`7011855`](https://github.com/Pasta-Devs/Marinara-Engine/commit/70118553d28849c571ce4e2f24e90d8b1176e589) refactor(server): drop duplicate key details from inline conversation summaries ### 📊 Changes **1 file changed** (+4 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+4 -10) </details> ### 📄 Description ## Summary In conversation mode, every per-day and per-week summary's `keyDetails` were being injected into the prompt twice: 1. Inline, appended to each `<summary date="...">` / `<summary week="...">` block in the chat history. 2. As the canonical `<important_memories>` block at the end of `conversationSystemPrompt`, where they are already labeled by date and chronologically sorted. This PR keeps `<important_memories>` as the single source of truth for key details. The inline `<summary>` blocks now hold the narrative recap only. ## Test plan - [x] `pnpm install` - [x] `pnpm check` (lint + build) passes - [x] Manual: open a conversation-mode chat that already has at least one daily summary and one consolidated weekly summary; confirm the model still references key details correctly and that summaries no longer carry an inline `Key details: …` line in the request payload <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Refactor** * Optimized the internal processing of conversation summaries to improve the organization and accessibility of key details within the system. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:28 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4531
No description provided.