mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5172] [Issue]: Inventory Tracker section can stay hidden, and hand edits bypass its data rules #2864
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#2864
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 @augusteo on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5172
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Roleplay Inventory Tracker can stay invisible after upgrading, and every path that writes its three lists by hand skips the rules the agent path enforces — so values the agent could never emit can still end up stored.
Expected behavior
Actual behavior
Five distinct problems, all reproduced on
staging:The section stays hidden.
useSettingsSyncoverwrites the freshly migrated store with the server'sapp-settings/uiblob (use-settings-sync.ts:284).trackerPanelSectionOrderis synced (ui.store.ts:1226) but is the one tracker preference that blob never re-normalizes on ingest, so an order captured before the section existed wins on every load. Affects anyone whose stored blob predates the section; fresh installs are fine. This is general — any future tracker section hits it.Hand edits bypass the data rules. Tracker Panel edits (
TrackerSectionList.tsx:300) and HUD edits (RoleplayHUD.tsx:384) send raw rows throughpatchPlayerStats, skipping name trimming, duplicate merging, the quantity clamp, and the equipped/carried exclusivity thatapplyTrackerFieldLocksToGameStatePatchapplies on the agent path.The Agent Suite JSON editor accepts malformed rows. It checks only that the three keys are arrays (
agent-suite-tracker-slices.ts:110), then writes them straight through, so a row with nonameis stored as-is.The panel lays out differently in its two hosts.
@min-[360px]:grid-cols-3needs a@containerancestor. The docked sidebar has one (TrackerDataSidebar.tsx:188); the HUD popover is portaled todocument.bodyand has none, so the same component renders 3-up docked and 1-up in the popover at comparable widths.The server accepts any
playerStatspayload.chats.routes.ts:2339isfields.playerStats = body.playerStatswith no validation, while neighbouring fields normalize. Every client-side rule is bypassable by a direct API call or an older client.Separately, the panel's density is poor: a fixed 36 px quantity cell is drawn on every row including the ones with no quantity, and three fixed columns split the panel between three groups of very unequal length, so at the widest setting each column is around 95 px and item names truncate.
Steps to reproduce
Hidden section (1):
inventory-trackerpackage and add the agent to a Roleplay chat.Hand-edit bypass (2):
Server write (5):
PATCH /api/chats/<id>/game-statewithplayerStats.inventoryTrackerCurrencies = [{ "name": " Copper bit " }].Environment
staging)Logs, screenshots, or video
The Tracker Panel with the agent active and holding data, but no Inventory Tracker section — Quest Board follows Present Characters directly, while Custom Stats below still shows the prose blob this feature replaced:
The three-column layout at the widest panel setting, with names truncated:
Additional context
Follow-up to #5105 / #5112, found while testing that work end to end after #5117 merged. A fix is up at #5168, with the translated documentation in #5169.
Not covered there, and worth its own issue: there is still no way to move an item between groups — equipping means deleting it from one group and retyping it in the other.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: