[PR #132] [MERGED] feat(chat): Allow edition of the automatic summaries in conversation mode #4480

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

📋 Pull Request Information

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

Base: main ← Head: feat/editable-auto-summaries


📝 Commits (6)

  • 39c3cc9 feat(chat): editable day/week auto-summaries
  • d05ed34 polish(chat): auto-size summary textareas and drop stale entry count
  • e604ead feat(chat): collapsible summary entries with expand/collapse all toggle
  • 137351c feat(chat): add token counts to summaries editor modal
  • b522cb4 polish(chat): clarify summaries help text and hide kind badge on mobile
  • 545d42c Merge remote-tracking branch 'upstream/main' into feat/editable-auto-summaries

📊 Changes

7 files changed (+545 additions, -6 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+27 -0)
➕ packages/client/src/components/chat/SummariesEditorModal.tsx (+410 -0)
📝 packages/client/src/hooks/use-chats.ts (+19 -1)
📝 packages/server/src/routes/chats.routes.ts (+21 -0)
📝 packages/server/src/routes/generate.routes.ts (+34 -5)
📝 packages/shared/src/schemas/chat.schema.ts (+12 -0)
📝 packages/shared/src/types/chat.ts (+22 -0)

📄 Description

Summary

As discussed in this thread: https://discord.com/channels/1417099416812392641/1493651356534181959

NOTE: Automatic Summaries is a feature that already exists in ME! This only adds a way to edit the summaries for the user.

  • Adds a new Automatic Summarization section to chat settings (conversation mode only) that opens a modal for reviewing and editing the auto-generated day/week summaries stored in chatMeta.daySummaries / chatMeta.weekSummaries.
  • Lets users prune the conversation summary. Useful when the context begins to grow too much, or when the user wants to add or remove things from the character chat memories.

Notes

  • There is no create-from-scratch flow. Users only edit entries the auto-summarizer has already produced.

UI Screenshots

Modal:
image

Modal with an open row:
image

How the chat settings sidebar looks with the new option
image

Mobile:
image

Validation

  • Go to conversation mode -> chat settings -> Automatic Summarization -> Edit Summaries. Verify that the modal works as expected
  • Go the the modal again on a conversation with a conversation that has already been summarized. Try editing a detail and then validate with a new message that the change is reflected in the message prompt.
  • Same as above but try deleting information instead

AI Disclosure

Built with Claude Code (Claude Opus) for implementation; human-reviewed and manually validated against the scenarios above.


🔄 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/132 **Author:** [@JorgeLTE](https://github.com/JorgeLTE) **Created:** 4/20/2026 **Status:** ✅ Merged **Merged:** 4/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `feat/editable-auto-summaries` --- ### 📝 Commits (6) - [`39c3cc9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/39c3cc920546114f9785630522e70d528de0a9ae) feat(chat): editable day/week auto-summaries - [`d05ed34`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d05ed3489d97972ba5092d7de3471ecb86b419ed) polish(chat): auto-size summary textareas and drop stale entry count - [`e604ead`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e604ead2f1b61eacfc90a1160916c80d87674c7a) feat(chat): collapsible summary entries with expand/collapse all toggle - [`137351c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/137351ca2d528b2c9e2bbdf359d74a8054c69b5f) feat(chat): add token counts to summaries editor modal - [`b522cb4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b522cb4810df1fcfcaf005b7cce61daeba04309c) polish(chat): clarify summaries help text and hide kind badge on mobile - [`545d42c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/545d42c05fdec5872aea91eed6d32dc16c9c524c) Merge remote-tracking branch 'upstream/main' into feat/editable-auto-summaries ### 📊 Changes **7 files changed** (+545 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+27 -0) ➕ `packages/client/src/components/chat/SummariesEditorModal.tsx` (+410 -0) 📝 `packages/client/src/hooks/use-chats.ts` (+19 -1) 📝 `packages/server/src/routes/chats.routes.ts` (+21 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+34 -5) 📝 `packages/shared/src/schemas/chat.schema.ts` (+12 -0) 📝 `packages/shared/src/types/chat.ts` (+22 -0) </details> ### 📄 Description ## Summary As discussed in this thread: https://discord.com/channels/1417099416812392641/1493651356534181959 NOTE: Automatic Summaries is a feature that already exists in ME! This only adds a way to edit the summaries for the user. - Adds a new Automatic Summarization section to chat settings (conversation mode only) that opens a modal for reviewing and editing the auto-generated day/week summaries stored in `chatMeta.daySummaries` / `chatMeta.weekSummaries`. - Lets users prune the conversation summary. Useful when the context begins to grow too much, or when the user wants to add or remove things from the character chat memories. ## Notes - There is no create-from-scratch flow. Users only edit entries the auto-summarizer has already produced. ## UI Screenshots Modal: <img width="1007" height="720" alt="image" src="https://github.com/user-attachments/assets/ae798053-fa11-4526-865d-b25fd1fe1edd" /> Modal with an open row: <img width="985" height="820" alt="image" src="https://github.com/user-attachments/assets/15d72d77-d999-4fe3-9f4e-406a89ad366f" /> How the chat settings sidebar looks with the new option <img width="397" height="931" alt="image" src="https://github.com/user-attachments/assets/dca6876c-ad88-42b3-918a-d6df20f6959d" /> Mobile: <img width="385" height="840" alt="image" src="https://github.com/user-attachments/assets/5afc4bab-d62e-439d-842d-4f8c661e9d71" /> ## Validation - Go to conversation mode -> chat settings -> Automatic Summarization -> Edit Summaries. Verify that the modal works as expected - Go the the modal again on a conversation with a conversation that has already been summarized. Try editing a detail and then validate with a new message that the change is reflected in the message prompt. - Same as above but try deleting information instead ## AI Disclosure Built with Claude Code (Claude Opus) for implementation; human-reviewed and manually validated against the scenarios above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:59 +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#4480
No description provided.