[PR #6137] [MERGED] fix: address September lorebook, Game, and settings issue sweep #7067

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6137
Author: @SpicyMarinara
Created: 9/13/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/issue-sweep-sep13


📝 Commits (10+)

  • 7af7c43 chore: start September issue sweep
  • a06a5d3 fix: let Windows console shutdown finish saving
  • e570cea fix: resolve lorebook, Game dice, and settings sweep
  • abc870c fix(game): cover scene analysis and retries in sequential tasks
  • c9f1f0c Merge remote-tracking branch 'origin/staging' into fix/issue-sweep-sep13
  • 73f932f docs: include presets in character-proposed scene setup
  • 95494d4 fix: cover review edge cases in lore state and Game tasks
  • 7e9b03d fix: address current quality findings with minimal cleanup
  • e8bb3d3 fix: cap onboarding tooltip height on short desktop windows
  • 258d2b6 fix: use real viewport limits and stabilize Help regression setup

📊 Changes

88 files changed (+2938 additions, -342 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+23 -0)
📝 CHANGELOG.md (+12 -0)
📝 docs/TROUBLESHOOTING.md (+1 -1)
📝 docs/extending/custom-tools.md (+1 -1)
📝 docs/game/dice-and-skill-checks.md (+3 -1)
📝 docs/game/getting-started.md (+4 -0)
📝 docs/media/tts-setup.md (+2 -0)
📝 docs/roleplay/scenes.md (+6 -5)
📝 e2e/chat-lorebook-entry-scope.e2e.ts (+59 -3)
📝 e2e/core-flows.e2e.ts (+64 -17)
📝 e2e/game-tool-controls.e2e.ts (+42 -0)
➕ e2e/scene-tts-preferences.e2e.ts (+316 -0)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+1 -3)
📝 packages/client/src/components/capabilities/CapabilityElement.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+2 -1)
📝 packages/client/src/components/chat/ChatHelpOverlay.tsx (+2 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+11 -0)
📝 packages/client/src/components/chat/ConversationPresenceScheduleSection.tsx (+42 -32)
📝 packages/client/src/components/chat/PeekPromptModal.tsx (+19 -1)

...and 68 more files

📄 Description

Linked issue

Closes #6107. Closes #6108. Closes #6112. Closes #6117. Closes #6118. Closes #6119. Closes #6120. Closes #6121. Closes #6122. Closes #6123. Closes #6124. Closes #6125. Closes #6126. Closes #6127. Closes #6128. Closes #6129. Closes #6130. Closes #6131. Closes #6132. Closes #6133. Closes #6134. Closes #6135.

Also addresses #6140: review and clear standard/AI quality findings against staging (per-finding audit).

Why this change

Game turns could save invented dice outcomes, drop legitimate world commands, hide planner usage, or spend a world-generation call without enough answer space. Lorebook searches and chat-local entry state also disagreed across UI, storage, and generation. This sweep fixes those paths, adds the requested scene/TTS/Game settings through existing controls, and repairs Windows shutdown and its regression lane. The additional quality sweep removes obsolete code and fixes three current UI suggestions without new dependencies.

What changed

  • Lore search combines literal matches with relevant semantic results, including entries without usable embeddings. Entry toggles enforce book scope; deletion and state cleanup commit or roll back together; detachment clears stale state; exhausted activations can restart; duplicates preserve pending shared edits without copying a chat override.

  • Engine dice work with subscription providers, reject invented or unsupported results, preserve justified commands through outcome correction, and expose a retry notice when narration fails. Peek Prompt separates planner model/usage from narration.

  • World generation accepts large selections, honors disabled entries, and rejects insufficient answer space before calling a provider while retaining explicitly configured small output limits.

  • Scene creation remembers a prompt preset. TTS can skip tag content, brackets, and code blocks. An opt-in Game setting runs model tasks one at a time within that chat, including scene analysis, generation, agent retries, and background storyboard rendering; saves and cancellation remain available.

  • Windows Ctrl+C relies on the console's existing signal delivery so the server can finish saving. Portable regression loader URLs and a native Windows console CI lane verify the launcher path.

  • Chat Help refreshes viewport-dependent layout even when measured targets stay fixed; onboarding tooltips cap their preferred height to available space on short desktop windows. Schedule copy and ungrouped persona headings use the existing localization system. Twenty-eight valid standard findings receive small dead-code/conditional cleanups; intentional native API usage and Promise identity guards are retained.

Existing contributor patches remain in #6105 and the already-merged #6116. #6136 stays open as the single weather-date design tracker; this sweep preserves the prior decision to withhold the proposed verbs.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Recorded automated proof (checkboxes remain human tasks):

  • pnpm check passes on final commit 258d2b624, including localization, types, lint, formatting, and production builds. pnpm regression:prompt passed for the original sweep; its checks are also included in the complete Node lane below.

  • The complete Node regression lane on final 258d2b624 passes 260/260, zero failures. The tooltip positioning proof failed before the cap and passes with the fix.

  • Focused actual-route proofs cover lore scope/cleanup, 3,000-entry selection, disabled lore, context-limit refusal before billing, explicit small output budgets, subscription text dice, failed correction, world commands, and sequential analysis/generation/retries/finalizers. Defaults retain parallel execution.

  • Semantic relevance threshold checked against the real MiniLM model with relevant paraphrases and unrelated controls.

  • Native Windows console/restart/shutdown CI passed. POSIX restart and signal proofs also pass.

  • All 18 review follow-up browser cases pass (9 desktop Chromium, 9 mobile WebKit), including preset errors/retry, loading with None, and a pending shared lore toggle. Combined with the unchanged Game controls proof, 22 distinct cases pass.

  • Quality follow-up browser proof: current Help resize passes Chromium and WebKit; removing only the viewport-signature additions reproduces the old failure in both. The retained Help test also passes ten repeated runs (five per browser) after replacing its mount-timing assumption with the real Help button. Separate 800×320 and 800×220 Chromium tutorial checks confirm the card stays within the viewport, scrolls, and retains access to Get Started. Captures are in the existing evidence gist.

  • Incremental local CodeRabbit reviews cover the full quality change and final fixes with no outstanding findings. GitHub CodeRabbit completed the final 258d2b624 review with no actionable comments. All required checks pass.

Manual verification notes

  • Manually verify schedule copy and persona group labels with a downloaded UI language pack.
  • Manually verify real-provider scene planning and interrupted/failed Game turns with representative cards and packages.
  • Manually verify TTS filters with your preferred voice and existing saved preferences.
  • Manually verify sequential tasks on the affected lower-memory device and Windows shutdown in the normal installed launcher.

Browser tests used disposable data and mocked providers. They do not establish physical-device memory usage or live-provider behavior.

Docs and release impact

English guides and CHANGELOG are updated. All ten documentation packs are translated and validated in #6138 against docs-i18n, including the prior Advanced Memory and interruption follow-ups. No version bump or new dependency.

  • Updated docs and CHANGELOG as needed
  • Translated docs updated on docs-i18n

UI evidence

Desktop/mobile browser captures show scene preset selection, TTS filters, lore scope, Game tool/sequential controls, dice recovery, and separate planner usage in light/dark themes.

Summary by CodeRabbit

  • New Features

    • Added selectable prompt presets when creating scenes.
    • Added sequential Game task execution for systems with limited GPU memory.
    • Added TTS filters for tags, code blocks, and bracketed text.
    • Added planner usage details and retry support for failed Game narration.
    • Improved lorebook search, tool controls, and unsupported dice handling.
    • Improved mobile Chat Help layout and interface-language labels.
  • Bug Fixes

    • Improved Windows launcher shutdown and save handling, including Ctrl+C guidance.
  • Documentation

    • Updated scene, Game, custom-tool, TTS, troubleshooting, and changelog documentation.

🔄 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/6137 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/13/2026 **Status:** ✅ Merged **Merged:** 9/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-sweep-sep13` --- ### 📝 Commits (10+) - [`7af7c43`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7af7c43ff64741521b88bbe1d72d20b08bc83ad6) chore: start September issue sweep - [`a06a5d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a06a5d3430bc8b4af97ddf2bfb8dedba680ffdb8) fix: let Windows console shutdown finish saving - [`e570cea`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e570cea703ac30115f31ac69e59c2784fa637592) fix: resolve lorebook, Game dice, and settings sweep - [`abc870c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/abc870cc438f5a66af407acf5c68d3610c155ff1) fix(game): cover scene analysis and retries in sequential tasks - [`c9f1f0c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c9f1f0cf38ff8962741f5613d7a50fe69d5e0424) Merge remote-tracking branch 'origin/staging' into fix/issue-sweep-sep13 - [`73f932f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73f932f03ddf7d84eeb894b32f5b59513210dd3b) docs: include presets in character-proposed scene setup - [`95494d4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/95494d4432c1529cec84bd384a4857bb0aa66e2f) fix: cover review edge cases in lore state and Game tasks - [`7e9b03d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7e9b03dfc94690c9b8f0aa527d36c73937d836fb) fix: address current quality findings with minimal cleanup - [`e8bb3d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e8bb3d3cc4e7af977342bcd5a3cf8245a11185e3) fix: cap onboarding tooltip height on short desktop windows - [`258d2b6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/258d2b6247dcabcb1b1ac4c35e1725ae1bb8f270) fix: use real viewport limits and stabilize Help regression setup ### 📊 Changes **88 files changed** (+2938 additions, -342 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+23 -0) 📝 `CHANGELOG.md` (+12 -0) 📝 `docs/TROUBLESHOOTING.md` (+1 -1) 📝 `docs/extending/custom-tools.md` (+1 -1) 📝 `docs/game/dice-and-skill-checks.md` (+3 -1) 📝 `docs/game/getting-started.md` (+4 -0) 📝 `docs/media/tts-setup.md` (+2 -0) 📝 `docs/roleplay/scenes.md` (+6 -5) 📝 `e2e/chat-lorebook-entry-scope.e2e.ts` (+59 -3) 📝 `e2e/core-flows.e2e.ts` (+64 -17) 📝 `e2e/game-tool-controls.e2e.ts` (+42 -0) ➕ `e2e/scene-tts-preferences.e2e.ts` (+316 -0) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+1 -3) 📝 `packages/client/src/components/capabilities/CapabilityElement.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ChatHelpOverlay.tsx` (+2 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+11 -0) 📝 `packages/client/src/components/chat/ConversationPresenceScheduleSection.tsx` (+42 -32) 📝 `packages/client/src/components/chat/PeekPromptModal.tsx` (+19 -1) _...and 68 more files_ </details> ### 📄 Description ## Linked issue Closes #6107. Closes #6108. Closes #6112. Closes #6117. Closes #6118. Closes #6119. Closes #6120. Closes #6121. Closes #6122. Closes #6123. Closes #6124. Closes #6125. Closes #6126. Closes #6127. Closes #6128. Closes #6129. Closes #6130. Closes #6131. Closes #6132. Closes #6133. Closes #6134. Closes #6135. Also addresses #6140: review and clear standard/AI quality findings against staging ([per-finding audit](https://github.com/Pasta-Devs/Marinara-Engine/issues/6140#issuecomment-5652599088)). ## Why this change Game turns could save invented dice outcomes, drop legitimate world commands, hide planner usage, or spend a world-generation call without enough answer space. Lorebook searches and chat-local entry state also disagreed across UI, storage, and generation. This sweep fixes those paths, adds the requested scene/TTS/Game settings through existing controls, and repairs Windows shutdown and its regression lane. The additional quality sweep removes obsolete code and fixes three current UI suggestions without new dependencies. ## What changed - Lore search combines literal matches with relevant semantic results, including entries without usable embeddings. Entry toggles enforce book scope; deletion and state cleanup commit or roll back together; detachment clears stale state; exhausted activations can restart; duplicates preserve pending shared edits without copying a chat override. - Engine dice work with subscription providers, reject invented or unsupported results, preserve justified commands through outcome correction, and expose a retry notice when narration fails. Peek Prompt separates planner model/usage from narration. - World generation accepts large selections, honors disabled entries, and rejects insufficient answer space before calling a provider while retaining explicitly configured small output limits. - Scene creation remembers a prompt preset. TTS can skip tag content, brackets, and code blocks. An opt-in Game setting runs model tasks one at a time within that chat, including scene analysis, generation, agent retries, and background storyboard rendering; saves and cancellation remain available. - Windows Ctrl+C relies on the console's existing signal delivery so the server can finish saving. Portable regression loader URLs and a native Windows console CI lane verify the launcher path. - Chat Help refreshes viewport-dependent layout even when measured targets stay fixed; onboarding tooltips cap their preferred height to available space on short desktop windows. Schedule copy and ungrouped persona headings use the existing localization system. Twenty-eight valid standard findings receive small dead-code/conditional cleanups; intentional native API usage and Promise identity guards are retained. Existing contributor patches remain in #6105 and the already-merged #6116. #6136 stays open as the single weather-date design tracker; this sweep preserves the prior decision to withhold the proposed verbs. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Recorded automated proof (checkboxes remain human tasks): - `pnpm check` passes on final commit `258d2b624`, including localization, types, lint, formatting, and production builds. `pnpm regression:prompt` passed for the original sweep; its checks are also included in the complete Node lane below. - The [complete Node regression lane on final `258d2b624`](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34752015402/job/103710085281) passes **260/260, zero failures**. The tooltip positioning proof failed before the cap and passes with the fix. - Focused actual-route proofs cover lore scope/cleanup, 3,000-entry selection, disabled lore, context-limit refusal before billing, explicit small output budgets, subscription text dice, failed correction, world commands, and sequential analysis/generation/retries/finalizers. Defaults retain parallel execution. - Semantic relevance threshold checked against the real MiniLM model with relevant paraphrases and unrelated controls. - [Native Windows console/restart/shutdown CI passed](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34745458397/job/103692494509). POSIX restart and signal proofs also pass. - All 18 review follow-up browser cases pass (9 desktop Chromium, 9 mobile WebKit), including preset errors/retry, loading with None, and a pending shared lore toggle. Combined with the unchanged Game controls proof, 22 distinct cases pass. - Quality follow-up browser proof: current Help resize passes Chromium and WebKit; removing only the viewport-signature additions reproduces the old failure in both. The retained Help test also passes ten repeated runs (five per browser) after replacing its mount-timing assumption with the real Help button. Separate 800×320 and 800×220 Chromium tutorial checks confirm the card stays within the viewport, scrolls, and retains access to Get Started. Captures are in the existing evidence gist. - Incremental local CodeRabbit reviews cover the full quality change and final fixes with no outstanding findings. GitHub CodeRabbit completed the final `258d2b624` review with no actionable comments. All required checks pass. ### Manual verification notes - Manually verify schedule copy and persona group labels with a downloaded UI language pack. - Manually verify real-provider scene planning and interrupted/failed Game turns with representative cards and packages. - Manually verify TTS filters with your preferred voice and existing saved preferences. - Manually verify sequential tasks on the affected lower-memory device and Windows shutdown in the normal installed launcher. Browser tests used disposable data and mocked providers. They do not establish physical-device memory usage or live-provider behavior. ## Docs and release impact English guides and CHANGELOG are updated. All ten documentation packs are translated and validated in #6138 against `docs-i18n`, including the prior Advanced Memory and interruption follow-ups. No version bump or new dependency. - [ ] Updated docs and CHANGELOG as needed - [ ] Translated docs updated on docs-i18n ## UI evidence [Desktop/mobile browser captures](https://gist.github.com/SpicyMarinara/3945838ea7cec0fc74a1f1e41a54e952) show scene preset selection, TTS filters, lore scope, Game tool/sequential controls, dice recovery, and separate planner usage in light/dark themes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added selectable prompt presets when creating scenes. * Added sequential Game task execution for systems with limited GPU memory. * Added TTS filters for tags, code blocks, and bracketed text. * Added planner usage details and retry support for failed Game narration. * Improved lorebook search, tool controls, and unsupported dice handling. * Improved mobile Chat Help layout and interface-language labels. * **Bug Fixes** * Improved Windows launcher shutdown and save handling, including Ctrl+C guidance. * **Documentation** * Updated scene, Game, custom-tool, TTS, troubleshooting, and changelog documentation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:15 +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#7067
No description provided.