[GH-ISSUE #1530] [Issue]: Quest Board merge path does not normalize legacy activeQuests shapes #775

Closed
opened 2026-10-20 17:33:14 +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/1530

Originally assigned to: @Romuromylus on GitHub.

Summary

Refactor Quest Board update paths only partially preserve the legacy PR #1028 behavior. Tracker snapshot persistence has a quest merge path, but the refactor helper does not normalize keyed/grouped legacy activeQuests shapes, and the UI optimistic Quest Board update path still uses a separate simpler merge.

Expected behavior

Tracker snapshot persistence and the UI optimistic Quest Board update should share a refactor-native engine-owned quest merge path that preserves keyed quest maps, grouped quest containers, object-shaped objectives, and completed empty-objective removal.

Actual behavior

The merge behavior is split across paths. Legacy-shaped activeQuests data can be normalized or preserved differently depending on whether the update comes through tracker snapshot persistence or the UI optimistic Quest Board path.

Steps to reproduce

  1. Compare legacy PR #1028 / commit e472615 against current refactor Quest Board update behavior.
  2. Inspect the tracker snapshot persistence quest merge path and the optimistic Quest Board update in src/features/runtime/generation/hooks/use-generate.ts.
  3. Exercise keyed quest maps, grouped quest containers, object-shaped objectives, and completed quests with empty objectives.

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; code-audit finding from legacy PR #1028 comparison
  • Run mode: code audit; focused native/UI repro still needed
  • OS + version: not verified
  • Node + pnpm versions: not relevant yet
  • Rust version, if relevant: not relevant yet
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No runtime screenshots yet. Local chore evidence notes that the tracker persistence path and UI optimistic path currently use different quest merge behavior.

Regression notes

Legacy PR #1028 was intended to fix Quest Board state reversion after tracker updates. Refactor appears to have only partial parity with that behavior.

Additional context

Suggested fix direction: extract or expose a single refactor-native quest merge helper under src/engine, use it from both tracker snapshot persistence and the UI optimistic Quest Board update, and add focused tests for legacy-shaped quest data.

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/1530 Originally assigned to: @Romuromylus on GitHub. ## Summary Refactor Quest Board update paths only partially preserve the legacy PR #1028 behavior. Tracker snapshot persistence has a quest merge path, but the refactor helper does not normalize keyed/grouped legacy `activeQuests` shapes, and the UI optimistic Quest Board update path still uses a separate simpler merge. ## Expected behavior Tracker snapshot persistence and the UI optimistic Quest Board update should share a refactor-native engine-owned quest merge path that preserves keyed quest maps, grouped quest containers, object-shaped objectives, and completed empty-objective removal. ## Actual behavior The merge behavior is split across paths. Legacy-shaped `activeQuests` data can be normalized or preserved differently depending on whether the update comes through tracker snapshot persistence or the UI optimistic Quest Board path. ## Steps to reproduce 1. Compare legacy PR #1028 / commit `e472615` against current refactor Quest Board update behavior. 2. Inspect the tracker snapshot persistence quest merge path and the optimistic Quest Board update in `src/features/runtime/generation/hooks/use-generate.ts`. 3. Exercise keyed quest maps, grouped quest containers, object-shaped objectives, and completed quests with empty objectives. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] 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; code-audit finding from legacy PR #1028 comparison - Run mode: code audit; focused native/UI repro still needed - OS + version: not verified - Node + pnpm versions: not relevant yet - Rust version, if relevant: not relevant yet - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No runtime screenshots yet. Local chore evidence notes that the tracker persistence path and UI optimistic path currently use different quest merge behavior. ## Regression notes Legacy PR #1028 was intended to fix Quest Board state reversion after tracker updates. Refactor appears to have only partial parity with that behavior. ## Additional context Suggested fix direction: extract or expose a single refactor-native quest merge helper under `src/engine`, use it from both tracker snapshot persistence and the UI optimistic Quest Board update, and add focused tests for legacy-shaped quest data. ## 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:14 +07:00
Author
Owner

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

Fixed by #1644, merged into refactor.

<!-- gh-comment-id:4582247277 --> @Romuromylus commented on GitHub (May 30, 2026): Fixed by #1644, merged into `refactor`.
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#775
No description provided.