mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5242] [Issue]: Beholder wounds delta replaces co-located wounds instead of merging #2901
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#2901
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 @GetBeholder on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5242
Originally assigned to: @GetBeholder on GitHub.
Summary
mergeSlotDeltainpackages/server/src/services/agents/beholder-state.tsreplaces a slot's entirewoundslist whenever a delta contains wounds. Because the Beholder delta prompt emits only what changed this turn, a new wound on an already-wounded slot silently erases the wounds it did not re-mention.Expected behavior
A delta adding one wound to a slot should leave that slot's existing wounds intact, the same way
wornis merged by identity viamergeWornItems/wornItemIdentity.Actual behavior
The prior wounds are dropped. Only the wounds named in the latest delta survive.
Steps to reproduce
head->{ "text": "fractured skull", "severity": "critical" }. Confirm it appears in the Beholder physical-state panel.head.wounds: [{ "text": "broken nose", "severity": "serious" }].Environment
staging(v2.4.4, commitefbbf3cb3)Logs, screenshots, or video
Not applicable - the defect is deterministic in the merge logic:
The stated premise ("no stable wound identity") does not hold for this protocol: the injury
textis a usable identity, exactly asitemis for worn entries directly above.Additional context
Introduced alongside the delta-merge work in #5204.
worn,holding,bare, andmissingare all handled correctly; onlywoundsreplaces. Full-snapshot responses are unaffected (they do not pass throughmergeSlotDelta).Distinct-wound healing (removing one of several co-located wounds) is not expressible in the current delta protocol; wholesale
wounds: []clearing plus a manual edit remains the interim path either way. So merging is a strict improvement with no regression.Fix proposed in the linked PR.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: