mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7208] [Issue]: Character Tracker silently discards updates returned at the result root #4024
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#4024
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 @bahaynes on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7208
Originally assigned to: @SpicyMarinara on GitHub.
Summary
When the Character Tracker model returns its incremental update as
{ "updates": [...], "removed": [...] }at the root of the result, instead of underpresentCharacters, the whole update is thrown away. The run is still recorded as successful. Custom Tracker already accepts this shape; Character Tracker does not.Expected behavior
A root-level
{ updates, removed }envelope from Character Tracker is merged into the present characters, the same way Custom Tracker accepts a root envelope asfields.Actual behavior
parseAgentResponse(packages/server/src/services/agents/agent-executor.ts) only re-wraps a root envelope forcustom_tracker_update. Forcharacter_tracker_updatethe result keeps the envelope at the root. Ingenerate.routes.ts, the Character Tracker merge then finds nopresentCharacters, logscharacter-tracker emitted no presentCharacters; keeping existing snapshotat debug level, and skips the update.Because the run counts as a success, nothing reaches the user. The next turn feeds the stale snapshot back to the model, which tends to revert moods and outfits.
Steps to reproduce
mari db select agent_runs --where "row.agentType === 'character-tracker'".updates/removedat the top level ofresultData, with nopresentCharacters. The tracker panel does not change on those turns.On one chat with the default package prompt, 13 of 25 Character Tracker runs had the root shape and were discarded.
Environment
Logs, screenshots, or video
Nothing is logged at info level. At debug level each discarded turn logs
[generate] character-tracker emitted no presentCharacters; keeping existing snapshot.From the stored
agent_runson my instance (Jul 10 – Oct 6): 91 of 1,278 Character Tracker runs (7%)had the envelope at the root and were discarded, all recorded as
success: true, across 7 of 11 chats(worst chat: 31 of 68 runs). Most were
{ updates, removed }or{ updates }with an array.A discarded result, values redacted:
Additional context
The batch and incremental hints never show the envelope's parent key, so models reasonably emit it at the root.
A minimal fix mirrors the existing Custom Tracker tolerance in
parseAgentResponse:I've been running this locally with a regression in
agent-runtime.regression.tscovering both the individual and batched paths, and can open a PR againststagingif that's welcome.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 7, 2026):
Claude is taking this issue for @SpicyMarinara. I checked for linked, open and draft PRs first; none exist. The fix will target
staging. Thank you for the precise report.@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fixed on
stagingby #7222. Ships tomainwith the next promotion.