[PR #4577] [MERGED] Improve summaries, agent settings UI, and tracker docs #6431

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

📋 Pull Request Information

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

Base: staging ← Head: agent/summary-titles-and-tracker-docs


📝 Commits (5)

  • 446736b Start summary titles and tracker docs sweep
  • 2593df1 Add descriptive roleplay summary metadata
  • 5a1ab61 Merge remote-tracking branch 'origin/staging' into agent/summary-titles-and-tracker-docs
  • ddbc648 Unify conversation agent menu surfaces
  • 3175456 Apply CodeRabbit summary review feedback

📊 Changes

13 files changed (+187 additions, -54 deletions)

View changed files

📝 docs/characters/colors-and-stats.md (+4 -3)
📝 docs/characters/personas.md (+2 -2)
📝 packages/client/src/components/chat/AgentSettingsControls.tsx (+7 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+7 -4)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+1 -1)
📝 packages/server/src/routes/chats.routes.ts (+38 -21)
📝 packages/server/src/routes/generate.routes.ts (+13 -2)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+16 -0)
📝 packages/server/src/services/generation/roleplay-summary-runtime.ts (+38 -15)
📝 packages/shared/src/constants/agent-prompts.ts (+2 -0)
📝 packages/shared/src/utils/chat-summary-entries.ts (+1 -5)
📝 scripts/regressions/conversation-summary.regression.ts (+35 -0)
📝 scripts/regressions/prompt.regression.ts (+23 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issues

Closes #4572
Closes #4576
Closes #4580

Why this change

Roleplay summaries were difficult to distinguish because generated entries shared generic titles and automatic summaries omitted their covered message range. The character stats documentation also incorrectly said Character Tracker updates persona RPG Attributes. Conversation-specific agent controls also used lighter surfaces than the corresponding Roleplay agent menus.

What changed

  • Ask the built-in summary prompts for a concise name alongside summary, normalize it into the existing entry title, and accept title as a compatibility alias.
  • Preserve plain-text responses and the existing { "summary": "..." } response format, with origin-based generic fallback titles when no valid name is returned.
  • Persist and display message ranges for new manual, backfilled, combined, automatic, and approval-gated automatic summaries.
  • Keep the automatic-summary sparkle icon unchanged.
  • Correct the Character Tracker and persona RPG Attributes documentation boundary.
  • Open translation follow-up #4579 for both affected guides.
  • Reuse the shared Roleplay agent-card surface for Conversation command and Illustrator controls so both modes have the same depth and color.

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

Focused automated validation completed:

  • pnpm build:shared
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/conversation-summary.regression.ts
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/prompt.regression.ts
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client exec eslint src/components/chat/SummaryPopover.tsx
  • pnpm --filter @marinara-engine/client exec eslint src/components/chat/AgentSettingsControls.tsx src/components/chat/ChatSettingsDrawer.tsx
  • pnpm --filter @marinara-engine/client exec tsc -p tsconfig.json --noEmit
  • pnpm localization:check
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/docs-language.regression.ts
  • git diff --check

Manual verification notes

  • Manual browser verification remains for the maintainer. Automated coverage checks structured names, legacy title aliases, plain-text fallback, generic titles, all range persistence paths, and origin-independent range rendering.

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)

English docs changed in two character guides. Translation follow-up: #4579. No release metadata changed.

UI evidence (if applicable)

Existing summary metadata now uses the already-localized Messages start–end label whenever range metadata exists. Conversation and Roleplay agent menus now share the same existing surface class; manual browser comparison remains requested because the in-app preview bridge was unavailable locally.

Summary by CodeRabbit

  • New Features

    • Conversation summaries can include AI-generated titles and identify the message range they cover.
    • Summary displays now provide clearer source and range information for generated, approved, and combined summaries.
    • Automatic and manual summaries support more consistent title handling, including legacy formats.
  • Documentation

    • Clarified how character Stats, Persona Status Bars, and RPG Attributes are managed and used across modes.
  • Bug Fixes

    • Improved summary parsing with reliable structured and plain-text fallback handling.

🔄 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/4577 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/summary-titles-and-tracker-docs` --- ### 📝 Commits (5) - [`446736b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/446736bb94dc30c16fcc687eb69fbf1141dd8978) Start summary titles and tracker docs sweep - [`2593df1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2593df1f2bb505c237ba40e0cc8cab0c4a09b632) Add descriptive roleplay summary metadata - [`5a1ab61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5a1ab61d9f9e79c4bbfb532013d640ed7991f301) Merge remote-tracking branch 'origin/staging' into agent/summary-titles-and-tracker-docs - [`ddbc648`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ddbc6486d7cd91fe31d6e7521c95b59a3ff39b4d) Unify conversation agent menu surfaces - [`3175456`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3175456eafd1748705c328b34644c9eece0fbf34) Apply CodeRabbit summary review feedback ### 📊 Changes **13 files changed** (+187 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `docs/characters/colors-and-stats.md` (+4 -3) 📝 `docs/characters/personas.md` (+2 -2) 📝 `packages/client/src/components/chat/AgentSettingsControls.tsx` (+7 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+7 -4) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+1 -1) 📝 `packages/server/src/routes/chats.routes.ts` (+38 -21) 📝 `packages/server/src/routes/generate.routes.ts` (+13 -2) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+16 -0) 📝 `packages/server/src/services/generation/roleplay-summary-runtime.ts` (+38 -15) 📝 `packages/shared/src/constants/agent-prompts.ts` (+2 -0) 📝 `packages/shared/src/utils/chat-summary-entries.ts` (+1 -5) 📝 `scripts/regressions/conversation-summary.regression.ts` (+35 -0) 📝 `scripts/regressions/prompt.regression.ts` (+23 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issues Closes #4572 Closes #4576 Closes #4580 ## Why this change Roleplay summaries were difficult to distinguish because generated entries shared generic titles and automatic summaries omitted their covered message range. The character stats documentation also incorrectly said Character Tracker updates persona RPG Attributes. Conversation-specific agent controls also used lighter surfaces than the corresponding Roleplay agent menus. ## What changed - Ask the built-in summary prompts for a concise `name` alongside `summary`, normalize it into the existing entry `title`, and accept `title` as a compatibility alias. - Preserve plain-text responses and the existing `{ "summary": "..." }` response format, with origin-based generic fallback titles when no valid name is returned. - Persist and display message ranges for new manual, backfilled, combined, automatic, and approval-gated automatic summaries. - Keep the automatic-summary sparkle icon unchanged. - Correct the Character Tracker and persona RPG Attributes documentation boundary. - Open translation follow-up #4579 for both affected guides. - Reuse the shared Roleplay agent-card surface for Conversation command and Illustrator controls so both modes have the same depth and color. ## 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` Focused automated validation completed: - `pnpm build:shared` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/conversation-summary.regression.ts` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/prompt.regression.ts` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client exec eslint src/components/chat/SummaryPopover.tsx` - `pnpm --filter @marinara-engine/client exec eslint src/components/chat/AgentSettingsControls.tsx src/components/chat/ChatSettingsDrawer.tsx` - `pnpm --filter @marinara-engine/client exec tsc -p tsconfig.json --noEmit` - `pnpm localization:check` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/docs-language.regression.ts` - `git diff --check` ### Manual verification notes - Manual browser verification remains for the maintainer. Automated coverage checks structured names, legacy title aliases, plain-text fallback, generic titles, all range persistence paths, and origin-independent range rendering. ## 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) English docs changed in two character guides. Translation follow-up: #4579. No release metadata changed. ## UI evidence (if applicable) Existing summary metadata now uses the already-localized `Messages start–end` label whenever range metadata exists. Conversation and Roleplay agent menus now share the same existing surface class; manual browser comparison remains requested because the in-app preview bridge was unavailable locally. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Conversation summaries can include AI-generated titles and identify the message range they cover. * Summary displays now provide clearer source and range information for generated, approved, and combined summaries. * Automatic and manual summaries support more consistent title handling, including legacy formats. * **Documentation** * Clarified how character Stats, Persona Status Bars, and RPG Attributes are managed and used across modes. * **Bug Fixes** * Improved summary parsing with reliable structured and plain-text fallback handling. <!-- 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:10:22 +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#6431
No description provided.