mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1804] [Issue]: Runtime world-state snapshot fallback and tracker upload regressions #883
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#883
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 @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1804
Originally assigned to: @cha1latte on GitHub.
Summary
Runtime world-state/tracker has three parity regressions or gaps compared with the legacy implementation:
Expected behavior
Actual behavior
src/features/runtime/world-state/api/world-state-api.tsresolves the visible target and returns only the exact snapshot or a matchingchat.gameStatefallback. If neither matches,src/features/runtime/tracker/components/TrackerDataSidebar.tsxshowsNo tracker data yet.LegacyGET /:id/game-stateusedgetForGeneration(... preferLatestVisible), which fell back to latest committed or latest available state.src/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.tsuploads and applies the returned avatar path without a per-character stale-response token. Legacypackages/client/src/features/tracker-panel/hooks/use-tracker-mutations.tsused an upload serial and per-character token map.src-tauri/src/commands/storage/game_state_snapshots.rsvalidates the snapshotchatIdbut does not verify that a suppliedmessageIdbelongs to that chat. Legacypackages/server/src/routes/chats.routes.tschecked the target message chat beforeupdateByMessage.Steps to reproduce
No tracker data yetinstead of falling back to prior tracker state.Impact area
Environment
6cc9d086Logs, screenshots, or video
No logs or screenshots. Evidence is from code-path comparison:
src/features/runtime/world-state/api/world-state-api.tssrc/features/runtime/tracker/components/TrackerDataSidebar.tsxsrc/features/runtime/world-state/hooks/use-tracker-character-avatar-actions.tssrc-tauri/src/commands/storage/game_state_snapshots.rspackages/server/src/services/storage/game-state.storage.tspackages/server/src/routes/chats.routes.tspackages/client/src/features/tracker-panel/hooks/use-tracker-mutations.tsRegression notes
Legacy had fallback behavior for visible world-state reads, a stale-response guard for tracker avatar uploads, and message ownership validation before targeted snapshot updates. The refactor has stronger durable patch queuing and stable tracker row ids, so this issue is limited to the gaps above rather than a full rollback request.
Additional context
Recommended fix order:
tracker_snapshot_saveaccepts non-bootstrap targets.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 1, 2026):
Fixed in #1838