[GH-ISSUE #2845] [Issue]: Character tracker manual edits land on the first character when tracked characters share an id #1437

Closed
opened 2026-10-21 05:35:08 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2845

Originally assigned to: @Romuromylus on GitHub.

Summary

In Roleplay mode with the Character Tracker enabled, editing any present character's fields can save the change onto the first character in the list instead of the one I edited. It shows up once a scene has several present characters.

Expected behavior

Editing a tracked character's field (mood, look, outfit, thoughts, stats, etc.) updates that character.

Actual behavior

The edit is written to the first character in the Present Characters list. The character I actually edited keeps its old values, and the first character's fields get overwritten with my edits — so with several characters, every manual edit collapses onto character #1.

Steps to reproduce

  1. Start a Roleplay-mode chat with the Character Tracker enabled and let the tracker populate several present characters.
  2. Open the tracker panel and edit a field on any character other than the first (for example, change the 4th character's "Look").
  3. The change appears on the first character instead; the edited character is unchanged.

Environment

  • Marinara Engine version: 2.0.4
  • Install type: installer
  • OS + version: Windows 11
  • Browser or app shell: Chrome

Logs, screenshots, or video

Reported with a screenshot of the Present Characters panel: the first character's Mood/Look/Outfit lines read "I edited 's look/outfit" while the characters that were actually edited still show their original tracker text.

Additional context

Root cause is client-side: the tracker panel resolves the edit target with findIndex by characterId. Present-character ids are produced by the LLM character-tracker agent and are not guaranteed unique (the agent prompt allows "ID or name"), so when several present characters share (or omit) an id, findIndex always returns the first match and the edit lands on character #1. The other tracker list mutations already guard against this by only trusting a key when it uniquely matches (findUniqueNamedIndex); the character edit/remove/avatar paths did not.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (Jun 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2845 Originally assigned to: @Romuromylus on GitHub. ## Summary In Roleplay mode with the Character Tracker enabled, editing any present character's fields can save the change onto the first character in the list instead of the one I edited. It shows up once a scene has several present characters. ## Expected behavior Editing a tracked character's field (mood, look, outfit, thoughts, stats, etc.) updates that character. ## Actual behavior The edit is written to the first character in the Present Characters list. The character I actually edited keeps its old values, and the first character's fields get overwritten with my edits — so with several characters, every manual edit collapses onto character #1. ## Steps to reproduce 1. Start a Roleplay-mode chat with the Character Tracker enabled and let the tracker populate several present characters. 2. Open the tracker panel and edit a field on any character other than the first (for example, change the 4th character's "Look"). 3. The change appears on the first character instead; the edited character is unchanged. ## Environment - Marinara Engine version: 2.0.4 - Install type: installer - OS + version: Windows 11 - Browser or app shell: Chrome ## Logs, screenshots, or video Reported with a screenshot of the Present Characters panel: the first character's Mood/Look/Outfit lines read "I edited <other character>'s look/outfit" while the characters that were actually edited still show their original tracker text. ## Additional context Root cause is client-side: the tracker panel resolves the edit target with `findIndex` by `characterId`. Present-character ids are produced by the LLM character-tracker agent and are not guaranteed unique (the agent prompt allows "ID or name"), so when several present characters share (or omit) an id, `findIndex` always returns the first match and the edit lands on character #1. The other tracker list mutations already guard against this by only trusting a key when it uniquely matches (`findUniqueNamedIndex`); the character edit/remove/avatar paths did not. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:35:08 +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#1437
No description provided.