mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2845] [Issue]: Character tracker manual edits land on the first character when tracked characters share an id #1437
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1437
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Environment
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
findIndexbycharacterId. 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,findIndexalways 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: