[GH-ISSUE #2193] [Issue]: Game session conclusion no longer runs Game Lorebook Keeper #1096

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Game session conclusion no longer runs Game Lorebook Keeper automatically, so enabled game lore is not created or updated after End Session.

Expected behavior

When Game Lorebook Keeper is enabled, ending a game session should create or update the game-scoped lorebook, attach it to the game, and record gameLorebookKeeperLastRun. The latest completed session should also support a retry/regenerate flow that replaces that session's keeper entries.

Actual behavior

The refactor conclude-session path only stores the session summary, status, campaign progression, and character cards. A manual regenerateSessionLorebook helper exists, but there is no automatic session-end keeper run, no gameLorebookKeeperLastRun update in the conclude path, and setup enablement is also affected by the wrong-key issue from the related keeper controls gap.

Steps to reproduce

  1. Enable Game Lorebook Keeper for a game chat.
  2. Play through or create messages for a game session.
  3. Use End Session.
  4. Inspect chat metadata and lorebooks.
  5. Observe that no automatic keeper run records gameLorebookKeeperLastRun and no game-scoped keeper lorebook is created or updated by conclusion.

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
  • 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 branch, static parityscan against legacy main
  • Run mode: not runtime-tested
  • OS + version: not runtime-tested
  • Node + pnpm versions: not runtime-tested
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: configured game generation provider

Logs, screenshots, or video

Static trace:

  • Refactor conclude path patches session summary/status only: src/features/modes/game/api/game-api.ts:1885-1953
  • Refactor has a manual lorebook regenerate helper, but it is not called by conclusion: src/features/modes/game/api/game-api.ts:1962-2041
  • Legacy queued Game Lorebook Keeper after conclusion: main:packages/server/src/routes/game.routes.ts:3964-3971
  • Legacy keeper run created/attached lorebook and wrote run status: main:packages/server/src/routes/game.routes.ts:2038-2178
  • Legacy retry endpoint reran keeper for a completed session: main:packages/server/src/routes/game.routes.ts:4094-4132

Regression notes

Legacy main had an automatic queueGameLorebookKeeperAfterConclusion() path after End Session. The refactor only has manual session lore generation and does not wire the automatic keeper run into conclusion.

Additional context

This came from parityscan batch 6, row 07-LB-RUNTIME-game-session-lore. Related gap: setup stores gameEnableLorebookKeeper instead of gameLorebookKeeperEnabled.

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 @Promansis on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2193 Originally assigned to: @Promansis on GitHub. ## Summary Game session conclusion no longer runs Game Lorebook Keeper automatically, so enabled game lore is not created or updated after End Session. ## Expected behavior When Game Lorebook Keeper is enabled, ending a game session should create or update the game-scoped lorebook, attach it to the game, and record `gameLorebookKeeperLastRun`. The latest completed session should also support a retry/regenerate flow that replaces that session's keeper entries. ## Actual behavior The refactor conclude-session path only stores the session summary, status, campaign progression, and character cards. A manual `regenerateSessionLorebook` helper exists, but there is no automatic session-end keeper run, no `gameLorebookKeeperLastRun` update in the conclude path, and setup enablement is also affected by the wrong-key issue from the related keeper controls gap. ## Steps to reproduce 1. Enable Game Lorebook Keeper for a game chat. 2. Play through or create messages for a game session. 3. Use End Session. 4. Inspect chat metadata and lorebooks. 5. Observe that no automatic keeper run records `gameLorebookKeeperLastRun` and no game-scoped keeper lorebook is created or updated by conclusion. ## 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 - [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 branch, static parityscan against legacy `main` - Run mode: not runtime-tested - OS + version: not runtime-tested - Node + pnpm versions: not runtime-tested - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: configured game generation provider ## Logs, screenshots, or video Static trace: - Refactor conclude path patches session summary/status only: `src/features/modes/game/api/game-api.ts:1885-1953` - Refactor has a manual lorebook regenerate helper, but it is not called by conclusion: `src/features/modes/game/api/game-api.ts:1962-2041` - Legacy queued Game Lorebook Keeper after conclusion: `main:packages/server/src/routes/game.routes.ts:3964-3971` - Legacy keeper run created/attached lorebook and wrote run status: `main:packages/server/src/routes/game.routes.ts:2038-2178` - Legacy retry endpoint reran keeper for a completed session: `main:packages/server/src/routes/game.routes.ts:4094-4132` ## Regression notes Legacy `main` had an automatic `queueGameLorebookKeeperAfterConclusion()` path after End Session. The refactor only has manual session lore generation and does not wire the automatic keeper run into conclusion. ## Additional context This came from parityscan batch 6, row `07-LB-RUNTIME-game-session-lore`. Related gap: setup stores `gameEnableLorebookKeeper` instead of `gameLorebookKeeperEnabled`. ## 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-21 05:26:37 +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#1096
No description provided.