[PR #6105] [MERGED] feat(tracker): keep members of multi-character cards apart #7062

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6105
Author: @BiBoBaBe
Created: 9/12/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/multi-character-tracker-cards


📝 Commits (7)

  • 710e970 feat(tracker): keep members of multi-character cards apart
  • 820dfa2 feat(tracker): detect cast lists in card text and clear stale card-titled rows
  • d37de19 fix: preserve manual and legacy multi-character tracker identities
  • b5e0908 Merge staging into multi-character tracker PR
  • 9d4aca5 fix(tracker): replace stale titles for inferred casts
  • c65196b Merge staging into multi-character tracker branch
  • 031f099 Merge latest staging into multi-character tracker branch

📊 Changes

8 files changed (+391 additions, -21 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/agents/built-in-agents.md (+3 -1)
📝 packages/server/src/routes/generate.routes.ts (+3 -1)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+154 -18)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+6 -1)
📝 packages/shared/src/index.ts (+1 -0)
➕ packages/shared/src/utils/character-cast.ts (+76 -0)
📝 scripts/regressions/prompt.regression.ts (+146 -0)

📄 Description

Linked issue

Closes #6104.

Why this change

When one character card describes several people, Character Tracker can collapse its separate outputs into one entry named after the card. Preserve each reported cast member’s identity and portrait while retaining manually added characters and legacy state until a replacement is available.

What changed

  • Recognize declared cast names and reuse prior multi-character identities in generation and tracker retries.
  • Keep cast members separate from the shared card portrait; preserve single-character card behavior.
  • Preserve manual IDs and legacy rows; use bounded parsing for authored name fields.
  • Keep package-owned prompt instructions outside Engine. Document the final host behavior and add regressions.

Validation

pnpm install --frozen-lockfile, pnpm check, and git diff --check pass on 031f0995c1672278fb5c55f9f49ce8dc6e3bbeb7, which merges staging 5fa59f030159539831ec2aae0242015bd7361b64. This merge adds only the existing native-dice browser-test timeout and changelog entry. All three pnpm regression:prompt lanes passed on c65196b9f32a3bbe4da3d17c34405929788d4ecd; the tracker and prompt source is unchanged. The regression first reproduced the manual-ID failure on the contributor’s original head. Documentation translations are included in #6138.

  • 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

Manually verify a multi-character card, a returning cast member, a manually added matching name, and a single-character card in the tracker UI. Verify each character’s avatar and custom stats.

Docs and release impact

Updated the Character Tracker guide and Unreleased changelog. No version change. All ten translated guides are covered by #6138.

Summary by CodeRabbit

  • New Features

    • Multi-character cards are now tracked as separate characters, preserving each member’s name, mood, outfit, thoughts, and portrait.
    • Cast members can receive portraits through the same available sources as other characters.
    • Character tracking better preserves cast identities across updates and removes outdated card-title entries when individual members are identified.
    • Single-character cards continue using their card identity and portrait.
  • Documentation

    • Added guidance for defining and managing multi-character cards and their individual portraits.

🔄 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/6105 **Author:** [@BiBoBaBe](https://github.com/BiBoBaBe) **Created:** 9/12/2026 **Status:** ✅ Merged **Merged:** 9/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/multi-character-tracker-cards` --- ### 📝 Commits (7) - [`710e970`](https://github.com/Pasta-Devs/Marinara-Engine/commit/710e9709aa3a7751cc6df41c0bcca0fa64539e8d) feat(tracker): keep members of multi-character cards apart - [`820dfa2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/820dfa269b17f7fd6cb6dd53fa835c57a27e8504) feat(tracker): detect cast lists in card text and clear stale card-titled rows - [`d37de19`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d37de1906ad3444e9422fc54d48d58272cd18342) fix: preserve manual and legacy multi-character tracker identities - [`b5e0908`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b5e090848b813fee3585d2e3b81ac4182f77b0de) Merge staging into multi-character tracker PR - [`9d4aca5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9d4aca5d94ee23e8685637b30e0a7abfdf281f98) fix(tracker): replace stale titles for inferred casts - [`c65196b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c65196b9f32a3bbe4da3d17c34405929788d4ecd) Merge staging into multi-character tracker branch - [`031f099`](https://github.com/Pasta-Devs/Marinara-Engine/commit/031f0995c1672278fb5c55f9f49ce8dc6e3bbeb7) Merge latest staging into multi-character tracker branch ### 📊 Changes **8 files changed** (+391 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/agents/built-in-agents.md` (+3 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+3 -1) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+154 -18) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+6 -1) 📝 `packages/shared/src/index.ts` (+1 -0) ➕ `packages/shared/src/utils/character-cast.ts` (+76 -0) 📝 `scripts/regressions/prompt.regression.ts` (+146 -0) </details> ### 📄 Description ## Linked issue Closes #6104. ## Why this change When one character card describes several people, Character Tracker can collapse its separate outputs into one entry named after the card. Preserve each reported cast member’s identity and portrait while retaining manually added characters and legacy state until a replacement is available. ## What changed - Recognize declared cast names and reuse prior multi-character identities in generation and tracker retries. - Keep cast members separate from the shared card portrait; preserve single-character card behavior. - Preserve manual IDs and legacy rows; use bounded parsing for authored name fields. - Keep package-owned prompt instructions outside Engine. Document the final host behavior and add regressions. ## Validation `pnpm install --frozen-lockfile`, `pnpm check`, and `git diff --check` pass on `031f0995c1672278fb5c55f9f49ce8dc6e3bbeb7`, which merges staging `5fa59f030159539831ec2aae0242015bd7361b64`. This merge adds only the existing native-dice browser-test timeout and changelog entry. All three `pnpm regression:prompt` lanes passed on `c65196b9f32a3bbe4da3d17c34405929788d4ecd`; the tracker and prompt source is unchanged. The regression first reproduced the manual-ID failure on the contributor’s original head. Documentation translations are included in #6138. - [ ] `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 Manually verify a multi-character card, a returning cast member, a manually added matching name, and a single-character card in the tracker UI. Verify each character’s avatar and custom stats. ## Docs and release impact Updated the Character Tracker guide and Unreleased changelog. No version change. All ten translated guides are covered by #6138. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Multi-character cards are now tracked as separate characters, preserving each member’s name, mood, outfit, thoughts, and portrait. * Cast members can receive portraits through the same available sources as other characters. * Character tracking better preserves cast identities across updates and removes outdated card-title entries when individual members are identified. * Single-character cards continue using their card identity and portrait. * **Documentation** * Added guidance for defining and managing multi-character cards and their individual portraits. <!-- 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:16:11 +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#7062
No description provided.