[GH-ISSUE #1537] [Issue]: Game metadata fire-and-forget saves can show state that disappears on refresh #784

Closed
opened 2026-10-20 17:33:20 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1537

Originally assigned to: @cha1latte on GitHub.

Summary

GameSurface fire-and-forget metadata persistence can show saved inventory, scene, or segment state that later disappears after refresh if the save failed silently.

Expected behavior

Game metadata persistence should either retry/surface the failure or roll back visible state so the UI does not present unsaved data as durable.

Actual behavior

Metadata updates can be shown optimistically while persistence failures are not visible, so state may appear saved until the next reload.

Steps to reproduce

  1. In Game mode, trigger a metadata-backed update such as inventory, scene, or segment state.
  2. Force the metadata persistence call to fail.
  3. Refresh or reload the game.
  4. Confirm whether the previous UI state was actually persisted or silently lost.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor; read-only failpath audit finding
  • Run mode: Game mode UI; focused native repro still needed
  • OS + version: not verified
  • Node + pnpm versions: not relevant yet
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not verified
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No screenshot attached.

Regression notes

Unknown.

Additional context

Suggested direction: centralize game metadata persistence with retry/error visibility or rollback.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1537 Originally assigned to: @cha1latte on GitHub. ## Summary `GameSurface` fire-and-forget metadata persistence can show saved inventory, scene, or segment state that later disappears after refresh if the save failed silently. ## Expected behavior Game metadata persistence should either retry/surface the failure or roll back visible state so the UI does not present unsaved data as durable. ## Actual behavior Metadata updates can be shown optimistically while persistence failures are not visible, so state may appear saved until the next reload. ## Steps to reproduce 1. In Game mode, trigger a metadata-backed update such as inventory, scene, or segment state. 2. Force the metadata persistence call to fail. 3. Refresh or reload the game. 4. Confirm whether the previous UI state was actually persisted or silently lost. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor; read-only failpath audit finding - Run mode: Game mode UI; focused native repro still needed - OS + version: not verified - Node + pnpm versions: not relevant yet - Rust version, if relevant: not relevant - Remote Runtime URL configured? not verified - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No screenshot attached. ## Regression notes Unknown. ## Additional context Suggested direction: centralize game metadata persistence with retry/error visibility or rollback. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:33:20 +07:00
Author
Owner

@cha1latte commented on GitHub (May 30, 2026):

Closed as completed by #1676, merged into refactor on May 30, 2026.

<!-- gh-comment-id:4584577493 --> @cha1latte commented on GitHub (May 30, 2026): Closed as completed by #1676, merged into refactor on May 30, 2026.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#784
No description provided.