[PR #2251] [MERGED] Fix game lorebook keeper setup metadata #5513

Closed
opened 2026-10-22 04:16:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2251
Author: @Promansis
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-2192-game-lorebook-keeper-key


📝 Commits (1)

  • a5acf0b Fix game lorebook keeper setup metadata

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/features/modes/game/api/game-api.ts (+1 -1)

📄 Description

Linked issue

Closes #2192

Why this change

  • Game setup's Lorebook Keeper toggle was persisted under gameEnableLorebookKeeper, but every refactor reader checks gameLorebookKeeperEnabled. That made the setup toggle disappear after creating a game until the user enabled Game Lorebook Keeper again from chat settings.

What changed

  • Updated the game setup metadata patch to persist enableLorebookKeeper as gameLorebookKeeperEnabled.

Refactor impact

Primary owner:

Game mode

Impact areas reviewed:

  • Game setup metadata creation
  • Game chat metadata contract
  • Shared chat settings Game Lorebook Keeper readers
  • Game Lorebook Keeper scope checks

Boundary notes:

  • The change stays in the game feature API metadata patch.
  • No engine import direction, shared API wrapper, Rust command, or remote-runtime boundary changes.

Pressure points touched:

  • Game setup metadata patch in src/features/modes/game/api/game-api.ts

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm typecheck passed.
  • pnpm check passed.
  • Static search confirmed the setup writer now uses gameLorebookKeeperEnabled and no gameEnableLorebookKeeper references remain in the affected game/shared/engine paths.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix for existing Game Lorebook Keeper setup metadata; no new discoverable feature or workflow.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

No screenshots included; this is a metadata persistence fix with no UI rendering change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2251 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-2192-game-lorebook-keeper-key` --- ### 📝 Commits (1) - [`a5acf0b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5acf0b19b77d3a8d957e8f84f86b9ccf77c516f) Fix game lorebook keeper setup metadata ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/api/game-api.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #2192 ## Why this change - Game setup's Lorebook Keeper toggle was persisted under `gameEnableLorebookKeeper`, but every refactor reader checks `gameLorebookKeeperEnabled`. That made the setup toggle disappear after creating a game until the user enabled Game Lorebook Keeper again from chat settings. ## What changed - Updated the game setup metadata patch to persist `enableLorebookKeeper` as `gameLorebookKeeperEnabled`. ## Refactor impact Primary owner: Game mode Impact areas reviewed: - Game setup metadata creation - Game chat metadata contract - Shared chat settings Game Lorebook Keeper readers - Game Lorebook Keeper scope checks Boundary notes: - The change stays in the game feature API metadata patch. - No engine import direction, shared API wrapper, Rust command, or remote-runtime boundary changes. Pressure points touched: - Game setup metadata patch in `src/features/modes/game/api/game-api.ts` ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm typecheck` passed. - `pnpm check` passed. - Static search confirmed the setup writer now uses `gameLorebookKeeperEnabled` and no `gameEnableLorebookKeeper` references remain in the affected game/shared/engine paths. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix for existing Game Lorebook Keeper setup metadata; no new discoverable feature or workflow. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence No screenshots included; this is a metadata persistence fix with no UI rendering change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:58 +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#5513
No description provided.