[GH-ISSUE #2140] [Issue]: Game mode — journal NPC and quest logs are never populated #1051

Closed
opened 2026-10-21 05:25:47 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2140

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: major. The journal's NPC interaction log (npcLog) and quest log (quests) are read and rendered but never written: both builders (addNpcEntry, upsertQuest) were dropped and applyJournalEntry has no npc or quest dispatch branch. Session recaps silently omit all NPC interactions and quest progress.

Expected behavior

As in main: addNpcEntry populates journal.npcLog (via an auto-builder loop over gameNpcs, the npc journal command, and world-state generation) and upsertQuest populates journal.quests (via the quest command and a per-turn state->journal sync loop). The deterministic recap then lists "Key NPC interactions", "Active quests", and "Completed quests".

Actual behavior

addNpcEntry and upsertQuest do not exist in the refactor (grep = 0). applyJournalEntry (game-api.ts:1143-1174) handles only location/combat/item/note plus a catch-all addEventEntry, so an npc or quest entry is mis-filed as a generic event. npcLog and quests stay empty for the whole session. (Quest STATE is still tracked separately; this is specifically the journal quest/NPC LOG.)

Steps to reproduce

  1. Start a game; interact with NPCs and progress a quest.
  2. Open the journal — the NPC interaction log and quest entries are empty; quest/NPC journal commands appear (if at all) as generic events.
  3. Conclude/recap the session — "Key NPC interactions" and "Active/Completed quests" blocks are blank.

Impact area

  • Game mode
  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/server/src/services/game/journal.service.ts:98-131 (addNpcEntry), :150-190 (upsertQuest); dispatch + sync at game.routes.ts:2562-2585, :5602-5609, generate.routes.ts:9088/9259.
  • refactor: both builders deleted from src/engine/modes/game/world/journal.service.ts; src/features/modes/game/api/game-api.ts:1143-1174 has no npc/quest branch.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2140 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: major.** The journal's NPC interaction log (`npcLog`) and quest log (`quests`) are read and rendered but never written: both builders (`addNpcEntry`, `upsertQuest`) were dropped and `applyJournalEntry` has no `npc` or `quest` dispatch branch. Session recaps silently omit all NPC interactions and quest progress. ## Expected behavior As in main: `addNpcEntry` populates `journal.npcLog` (via an auto-builder loop over `gameNpcs`, the `npc` journal command, and world-state generation) and `upsertQuest` populates `journal.quests` (via the `quest` command and a per-turn state->journal sync loop). The deterministic recap then lists "Key NPC interactions", "Active quests", and "Completed quests". ## Actual behavior `addNpcEntry` and `upsertQuest` do not exist in the refactor (grep = 0). `applyJournalEntry` (`game-api.ts:1143-1174`) handles only `location`/`combat`/`item`/`note` plus a catch-all `addEventEntry`, so an `npc` or `quest` entry is mis-filed as a generic event. `npcLog` and `quests` stay empty for the whole session. (Quest STATE is still tracked separately; this is specifically the journal quest/NPC LOG.) ## Steps to reproduce 1. Start a game; interact with NPCs and progress a quest. 2. Open the journal — the NPC interaction log and quest entries are empty; quest/NPC journal commands appear (if at all) as generic events. 3. Conclude/recap the session — "Key NPC interactions" and "Active/Completed quests" blocks are blank. ## Impact area - [x] Game mode - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/server/src/services/game/journal.service.ts:98-131` (`addNpcEntry`), `:150-190` (`upsertQuest`); dispatch + sync at `game.routes.ts:2562-2585`, `:5602-5609`, `generate.routes.ts:9088/9259`. - refactor: both builders deleted from `src/engine/modes/game/world/journal.service.ts`; `src/features/modes/game/api/game-api.ts:1143-1174` has no `npc`/`quest` branch.
bsakaguchi 2026-10-21 05:25:47 +07:00
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#1051
No description provided.