mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2295] [Issue]: Game journal omits "acquired" entries for items added via the persona-stats tracker snapshot (only the [Inventory:] tag path journals) #1131
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#1131
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 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2295
Originally assigned to: @Xelvanis on GitHub.
Summary
In game mode, when the persona-stats tracker agent reports a newly acquired item only in its structured inventory snapshot (no
[Inventory: add]GM tag), the refactor updates the live inventory panel but writes no journal "acquired" entry. Main records it.Expected behavior
A newly acquired inventory item surfaced by the persona-stats agent should get an "acquired" line in the game journal's inventory log, regardless of whether it arrived via the agent snapshot or an
[Inventory:]GM tag.Actual behavior
Only the
[Inventory:]GM-tag path writes a journal entry (parity in both builds). For items that appear only in the agent's inventory snapshot, the refactor setsplayerStats.inventorybut writes no journal entry, so the acquisition history is silently lost for those items.Steps to reproduce
[Inventory: add ...]tag.Impact area
Environment
f56a3774(compared against main @b4ab97fb)Logs, screenshots, or video
n/a (static source comparison of main vs refactor)
Regression notes
Worked in main. Main
packages/server/src/routes/generate.routes.ts:9150-9165(persona_stats_update handler) builds anoldNamesset from the prior snapshot and callsaddInventoryEntry(j, item.name, "acquired", ...)for each new item name. Refactor persona-stats handlers (src/engine/generation/tracker-snapshots.ts:456-467server persist, andsrc/features/runtime/generation/hooks/use-generate.ts:966-979client state) setplayerStats.inventory = data.inventory.map(parseInventoryItem)with no diff and no journal write. In the refactor,addInventoryEntryhas exactly one caller,src/engine/modes/game/.../journal.service.ts:356insideapplyJournalEntry, reachable only from the[Inventory:]GM-tag path (game-api.ts:2862fed byGameSurface.tsxtag parsing); the agent path never calls it. No Rust journaling exists.Additional context
Diff the agent inventory snapshot against the prior snapshot in the persona-stats handler and emit an "acquired" journal entry for newly added names, matching main. The
[Inventory:]tag path already journals correctly in both builds, so only the agent-snapshot path needs the fix.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: