[PR #5853] [MERGED] feat(chat): batch Roleplay summaries across multiple ranges #6969

Closed
opened 2026-10-23 04:15:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5853
Author: @Promansis
Created: 9/5/2026
Status: ✅ Merged
Merged: 9/5/2026
Merged by: @Promansis

Base: staging ← Head: feature(chat)/batch-summary-ranges-v2


📝 Commits (10+)

  • af3e213 feat(client): open guided chat settings
  • 67748b3 feat(chat): add batch summary ranges
  • feff0b2 feat(chat): compact batch summary ranges
  • 9aa7cb0 feat(chat): refine batch range controls
  • 1298ade fix(chat): clarify batch range status controls
  • 2f1ac6c fix(chat): align batch summary range controls
  • 4d1fc68 fix(chat): refine batch range footer layout
  • f0e82bf fix(chat): keep batch range controls inside cards
  • 8ada63e style(client): format guided settings callback
  • c3a0b0f fix(chat): address summary batching review findings

📊 Changes

7 files changed (+1056 additions, -142 deletions)

View changed files

📝 CHANGELOG.md (+8 -0)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+668 -114)
📝 packages/client/src/hooks/use-chats.ts (+15 -9)
➕ packages/client/src/lib/chat-summary-batch.ts (+122 -0)
📝 packages/client/src/localization/locales/en.json (+34 -0)
📝 packages/server/src/routes/chats.routes.ts (+71 -18)
📝 scripts/regressions/conversation-summary.regression.ts (+138 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5713

Why this change

Roleplay Chat Summary users working with long chats may need to summarize several explicit message ranges. Running each range separately makes the user wait between requests and manually track completed, failed, and retryable ranges.

What changed

  • Added sequential multi-range summary generation with one chronological summary entry per range.
  • Added per-range progress, failure, retry, cancellation, and persistence handling.
  • Added compact responsive controls for clearing completed ranges or all but one range, with clearer status and failure details.
  • Added the required guided chat settings surface, localization entries, and conversation-summary regression coverage.
  • Updated the Unreleased changelog.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Git ancestry and git diff --check passed before push. Application checks and manual/browser verification remain for CI and reviewers.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

No screenshots or recordings were captured in this branch-management session.

Summary by CodeRabbit

  • New Features

    • Generate summaries for multiple message ranges sequentially, with per-range progress, validation, retry, cancellation, and error details.
    • Clear completed ranges or all ranges except one, and view combined message counts.
    • Roleplay Chat Summary now supports multiple chronological batch entries.
    • Guided onboarding can open the active chat’s Summary popover and prompt preset editor.
  • Bug Fixes

    • Summary generation now stops safely when cancelled or when the connection is lost.
    • Improved compact layout, numbering, separators, and control alignment.

🔄 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/5853 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/5/2026 **Status:** ✅ Merged **Merged:** 9/5/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(chat)/batch-summary-ranges-v2` --- ### 📝 Commits (10+) - [`af3e213`](https://github.com/Pasta-Devs/Marinara-Engine/commit/af3e213789f63ba9c115f83bd841bb515f4d0074) feat(client): open guided chat settings - [`67748b3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/67748b3a4421861e090d2fb7d8a826f8ee3ec73d) feat(chat): add batch summary ranges - [`feff0b2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/feff0b2a0d1a32e9c3c609d723f0970e96383f89) feat(chat): compact batch summary ranges - [`9aa7cb0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9aa7cb0bb1a42f88e69b490e3f7a389115fdfaf6) feat(chat): refine batch range controls - [`1298ade`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1298ade3cd64acba4f325f14ac6331c620bc6c2b) fix(chat): clarify batch range status controls - [`2f1ac6c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2f1ac6c1dfaa22eea6893078611697d69304d223) fix(chat): align batch summary range controls - [`4d1fc68`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4d1fc68805b7276dff61d57e483fe4ef2fc61ebb) fix(chat): refine batch range footer layout - [`f0e82bf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f0e82bfc6920e068ba2366ccf41b377b9e9adf90) fix(chat): keep batch range controls inside cards - [`8ada63e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ada63e123ea69324d5721bb34ce307803b3a49e) style(client): format guided settings callback - [`c3a0b0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c3a0b0f8f5614c1ba792c9f2e96e8a0b0a6d0e7b) fix(chat): address summary batching review findings ### 📊 Changes **7 files changed** (+1056 additions, -142 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+8 -0) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+668 -114) 📝 `packages/client/src/hooks/use-chats.ts` (+15 -9) ➕ `packages/client/src/lib/chat-summary-batch.ts` (+122 -0) 📝 `packages/client/src/localization/locales/en.json` (+34 -0) 📝 `packages/server/src/routes/chats.routes.ts` (+71 -18) 📝 `scripts/regressions/conversation-summary.regression.ts` (+138 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #5713 ## Why this change Roleplay Chat Summary users working with long chats may need to summarize several explicit message ranges. Running each range separately makes the user wait between requests and manually track completed, failed, and retryable ranges. ## What changed - Added sequential multi-range summary generation with one chronological summary entry per range. - Added per-range progress, failure, retry, cancellation, and persistence handling. - Added compact responsive controls for clearing completed ranges or all but one range, with clearer status and failure details. - Added the required guided chat settings surface, localization entries, and conversation-summary regression coverage. - Updated the Unreleased changelog. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Git ancestry and `git diff --check` passed before push. Application checks and manual/browser verification remain for CI and reviewers. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [x] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No screenshots or recordings were captured in this branch-management session. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Generate summaries for multiple message ranges sequentially, with per-range progress, validation, retry, cancellation, and error details. - Clear completed ranges or all ranges except one, and view combined message counts. - Roleplay Chat Summary now supports multiple chronological batch entries. - Guided onboarding can open the active chat’s Summary popover and prompt preset editor. - **Bug Fixes** - Summary generation now stops safely when cancelled or when the connection is lost. - Improved compact layout, numbering, separators, and control alignment. <!-- 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-23 04:15:20 +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#6969
No description provided.