[PR #7166] [MERGED] feat: add summary range selection and bulk enable/disable #7605

Closed
opened 2026-10-24 04:05:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7166
Author: @olegpro171
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/summary-range-selection


📝 Commits (10+)

  • f8241fb docs: track summary selection feature work (#7156)
  • d782f64 feat: select summary ranges and toggle selected entries (#7156)
  • 124c613 feat: deselect completed summary ranges and hint Shift selection
  • fa77a1a Merge branch 'staging' into codex/summary-range-selection
  • 4237bd3 refactor: trim summary selection controls and regressions (#7163)
  • b98c680 Merge staging into summary selection revision
  • f2b1d94 Merge branch 'staging' into codex/summary-range-selection
  • c999914 Merge staging before summary review fixes
  • 04ef933 fix(summary): address review feedback
  • 43f8084 Merge staging into summary selection branch

📊 Changes

5 files changed (+314 additions, -25 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/agents/memory.md (+2 -0)
📝 e2e/summary-controls.e2e.ts (+201 -1)
📝 packages/client/src/components/chat/ChatSummaryPanel.tsx (+108 -24)
📝 packages/client/src/localization/locales/en.json (+2 -0)

📄 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 #7163

Why this change

Long Roleplay sessions can accumulate hundreds of summaries. Combine retains inactive originals, but restoring a subset requires repetitive selection and toggling. Users need to select a visible interval and change only those summaries.

What changed

  • Added desktop Shift-click selection using stable IDs and current visible order. Selected targets deselect the interval; selections outside it are preserved.
  • Added Enable selected / Disable selected, each using one existing bulk request containing only selected IDs needing a change. Failed saves preserve stored states and selection for retry.
  • Preserved existing Combine, Delete confirmation, Select all/Clear selection and global actions, with wrapping controls on narrow screens. Row toggles remain single-row actions.
  • Removed the separate touch range mode, endpoint state, Escape handling, tooltip and announcements. Phones retain ordinary tap-to-select.
  • Kept two focused feature browser tests, added English labels, updated the Chat Summary guide and added an Unreleased changelog entry.

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

  • pnpm install --frozen-lockfile and pnpm check: passed. pnpm smoke:ui: 7 passed. pnpm regression:ui e2e/summary-controls.e2e.ts --project=desktop-chromium --project=mobile-chromium --project=mobile-webkit --workers=1: 16 passed, 5 platform skips.
  • Complete Node suite: 529/529 files passed using official Node 24.21.0; Docker Linux ARM64: build, runtime, persistence and shutdown checks passed on retry; Docker production browsers: all 3 passed.
  • Manually inspected desktop UI, mobile UI (on physical device).
  • Inspected light mode for button contrast.
  • Verified that controls behavior with empty summary list is correct.
  • Verified that "Enable selected" and "Disable Selected" works correctly with mixed selection of enabled and disabled summaries.
  • Verified that forward/reverse Shift selection/deselection works on desktop.

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)

Updated CHANGELOG.md under Unreleased. No documentation pages changed, so translated-docs updates are not applicable. No version/storage-format bump, API change or new dependency.

UI evidence (if applicable)

Screenshot 2026-10-07 at 02 48 45 Screenshot 2026-10-07 at 02 48 54 Screenshot 2026-10-07 at 02 48 35 Screenshot 2026-10-07 at 02 48 22

Summary by CodeRabbit

  • New Features
    • Chat Summary supports selecting a range of entries on desktop with Shift-click and enabling or disabling selected entries together.
    • You can combine selected entries or delete them after confirmation. Selection controls wrap on narrow screens, and summary rows remain compact on desktop.
  • Bug Fixes
    • Selection resets when switching chats, and combining clears the range-selection anchor. Individual toggles and combining are unavailable while a bulk update is in progress. If a bulk update fails, you can retry it.

🔄 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/7166 **Author:** [@olegpro171](https://github.com/olegpro171) **Created:** 10/6/2026 **Status:** ✅ Merged **Merged:** 10/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/summary-range-selection` --- ### 📝 Commits (10+) - [`f8241fb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f8241fb1045eb7938bf086b76cc394691ef152af) docs: track summary selection feature work (#7156) - [`d782f64`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d782f649d1551abb264e180b93e5259329710afa) feat: select summary ranges and toggle selected entries (#7156) - [`124c613`](https://github.com/Pasta-Devs/Marinara-Engine/commit/124c6133f9ea4a3f5eb23f7ce2515b2ec1819348) feat: deselect completed summary ranges and hint Shift selection - [`fa77a1a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fa77a1a7e3f293360d67015cb90bac9a0574bda4) Merge branch 'staging' into codex/summary-range-selection - [`4237bd3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4237bd30db4d925bb0c01df42014f6a36e63e944) refactor: trim summary selection controls and regressions (#7163) - [`b98c680`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b98c680daee9c5900b73612b86be33d1bf812b69) Merge staging into summary selection revision - [`f2b1d94`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f2b1d94784b7162331c6ee969b9b6669562958ce) Merge branch 'staging' into codex/summary-range-selection - [`c999914`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c9999148b67d5fe7f3ba6d6a92057f7eccbdfa55) Merge staging before summary review fixes - [`04ef933`](https://github.com/Pasta-Devs/Marinara-Engine/commit/04ef933288ac04cb3163e6b4744c089c41952d10) fix(summary): address review feedback - [`43f8084`](https://github.com/Pasta-Devs/Marinara-Engine/commit/43f8084749d65bc8cd4545d0e8c7d704b57fbba3) Merge staging into summary selection branch ### 📊 Changes **5 files changed** (+314 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/agents/memory.md` (+2 -0) 📝 `e2e/summary-controls.e2e.ts` (+201 -1) 📝 `packages/client/src/components/chat/ChatSummaryPanel.tsx` (+108 -24) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) </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`. ## Linked issue Closes #7163 ## Why this change Long Roleplay sessions can accumulate hundreds of summaries. Combine retains inactive originals, but restoring a subset requires repetitive selection and toggling. Users need to select a visible interval and change only those summaries. ## What changed - Added desktop Shift-click selection using stable IDs and current visible order. Selected targets deselect the interval; selections outside it are preserved. - Added **Enable selected** / **Disable selected**, each using one existing bulk request containing only selected IDs needing a change. Failed saves preserve stored states and selection for retry. - Preserved existing Combine, Delete confirmation, Select all/Clear selection and global actions, with wrapping controls on narrow screens. Row toggles remain single-row actions. - Removed the separate touch range mode, endpoint state, Escape handling, tooltip and announcements. Phones retain ordinary tap-to-select. - Kept two focused feature browser tests, added English labels, updated the Chat Summary guide and added an Unreleased changelog entry. ## 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 - `pnpm install --frozen-lockfile` and `pnpm check`: passed. `pnpm smoke:ui`: 7 passed. `pnpm regression:ui e2e/summary-controls.e2e.ts --project=desktop-chromium --project=mobile-chromium --project=mobile-webkit --workers=1`: 16 passed, 5 platform skips. - Complete Node suite: 529/529 files passed using official Node 24.21.0; Docker Linux ARM64: build, runtime, persistence and shutdown checks passed on retry; Docker production browsers: all 3 passed. - Manually inspected desktop UI, mobile UI (on physical device). - Inspected light mode for button contrast. - Verified that controls behavior with empty summary list is correct. - Verified that "Enable selected" and "Disable Selected" works correctly with mixed selection of enabled and disabled summaries. - Verified that forward/reverse Shift selection/deselection works on desktop. ## Docs and release impact - [ ] No docs changes needed - [x] 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) Updated `CHANGELOG.md` under Unreleased. No documentation pages changed, so translated-docs updates are not applicable. No version/storage-format bump, API change or new dependency. ## UI evidence (if applicable) <!-- Attach the fresh desktop/mobile screenshots of the trimmed controls here. Older screenshots showing Select range describe the previous iteration. --> <img width="591" height="573" alt="Screenshot 2026-10-07 at 02 48 45" src="https://github.com/user-attachments/assets/23a63b52-1396-4cd1-a7fc-202336aaa4d1" /> <img width="583" height="574" alt="Screenshot 2026-10-07 at 02 48 54" src="https://github.com/user-attachments/assets/5b618b8b-a25a-4e57-a917-299123fce5a3" /> <img width="574" height="642" alt="Screenshot 2026-10-07 at 02 48 35" src="https://github.com/user-attachments/assets/4868b73b-e6a8-422e-9b1d-d6cb32d4c8d4" /> <img width="572" height="603" alt="Screenshot 2026-10-07 at 02 48 22" src="https://github.com/user-attachments/assets/45cb3260-59ad-45a4-8677-ea8983b346b9" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Chat Summary supports selecting a range of entries on desktop with Shift-click and enabling or disabling selected entries together. * You can combine selected entries or delete them after confirmation. Selection controls wrap on narrow screens, and summary rows remain compact on desktop. * **Bug Fixes** * Selection resets when switching chats, and combining clears the range-selection anchor. Individual toggles and combining are unavailable while a bulk update is in progress. If a bulk update fails, you can retry it. <!-- 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-24 04:05:48 +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#7605
No description provided.