[GH-ISSUE #6104] [Issue]: Character Tracker collapses a multi-character card into one entry named after the card #3385

Closed
opened 2026-10-21 06:02:33 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @BiBoBaBe on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6104

Originally assigned to: @SpicyMarinara on GitHub.

What happens

When a single character card describes several people (a scenario card with [CHARACTER: Ana] and [CHARACTER: Julia] blocks, for example), Character Tracker ends up with one tracked entry named after the card ("Oyakodon Vacation at the …"), wearing the card's avatar and RPG pools. Both people's mood, outfit, and thoughts get merged into that single row, and once it is in the saved state the tracker keeps preserving it on every later turn.

Reproduction

  1. Create a Roleplay chat with one character card whose description contains two [CHARACTER: Name] blocks.
  2. Enable Character Tracker and send a message where both people are present.
  3. Open the Tracker Panel.

Expected: two present characters, one per person on the card.

Actual: one present character carrying the card's title.

Cause

The tracker itself reports each person separately, each with the card's id and their own name. applyTrackerCharacterCardIdentity in packages/server/src/routes/generate/generate-route-utils.ts then canonicalizes every entry that carries a card id to the card's name and avatar and merges entries with the same card id into one row. That merge was added to stop a model drifting between "Mari" and 'Marisol "Mari"' from creating duplicates, and it assumes one card equals one person.

Once the merged row is persisted, the tracker prompt's "preserve existing state" instruction makes the model echo it back on later turns, so the chat never recovers on its own.

Ownership

I'm working on this now as @BiBoBaBe. A PR against staging follows.

Originally created by @BiBoBaBe on GitHub (Sep 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6104 Originally assigned to: @SpicyMarinara on GitHub. ## What happens When a single character card describes several people (a scenario card with `[CHARACTER: Ana]` and `[CHARACTER: Julia]` blocks, for example), Character Tracker ends up with one tracked entry named after the card ("Oyakodon Vacation at the …"), wearing the card's avatar and RPG pools. Both people's mood, outfit, and thoughts get merged into that single row, and once it is in the saved state the tracker keeps preserving it on every later turn. ## Reproduction 1. Create a Roleplay chat with one character card whose description contains two `[CHARACTER: Name]` blocks. 2. Enable Character Tracker and send a message where both people are present. 3. Open the Tracker Panel. **Expected:** two present characters, one per person on the card. **Actual:** one present character carrying the card's title. ## Cause The tracker itself reports each person separately, each with the card's id and their own name. `applyTrackerCharacterCardIdentity` in `packages/server/src/routes/generate/generate-route-utils.ts` then canonicalizes every entry that carries a card id to the card's name and avatar and merges entries with the same card id into one row. That merge was added to stop a model drifting between "Mari" and 'Marisol "Mari"' from creating duplicates, and it assumes one card equals one person. Once the merged row is persisted, the tracker prompt's "preserve existing state" instruction makes the model echo it back on later turns, so the chat never recovers on its own. ## Ownership I'm working on this now as @BiBoBaBe. A PR against `staging` follows.
bsakaguchi 2026-10-21 06:02:33 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 13, 2026):

The issue sweep is preserving @BiBoBaBe’s implementation in PR #6105. @SpicyMarinara, assisted by Codex, is reviewing it and addressing the remaining review findings before landing it on staging.

<!-- gh-comment-id:5652007702 --> @SpicyMarinara commented on GitHub (Sep 13, 2026): The issue sweep is preserving @BiBoBaBe’s implementation in PR #6105. @SpicyMarinara, assisted by Codex, is reviewing it and addressing the remaining review findings before landing it on staging.
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#3385
No description provided.