[PR #3075] [MERGED] [codex] Fix game keeper lorebooks and add web search tool #5792

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3075
Author: @SpicyMarinara
Created: 6/29/2026
Status: ✅ Merged
Merged: 6/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/issues-3073-3074


📝 Commits (4)

  • c1ceb0f Fix game keeper lorebooks and add web search tool
  • 6ae611a Stabilize custom cursor during scrolling
  • 45ba4d9 Address CodeRabbit web search review
  • 62813c4 Align web search content types

📊 Changes

9 files changed (+248 additions, -232 deletions)

View changed files

📝 CHANGELOG.md (+3 -1)
📝 packages/client/src/App.tsx (+56 -166)
📝 packages/client/src/styles/globals.css (+39 -65)
📝 packages/server/src/services/lorebook/index.ts (+2 -0)
📝 packages/server/src/services/storage/lorebooks.storage.ts (+3 -0)
📝 packages/server/src/services/tools/tool-executor.ts (+119 -0)
📝 packages/shared/scripts/generate-feature-registries.mjs (+1 -0)
📝 packages/shared/src/features/function-calls/tool-registry.generated.ts (+2 -0)
➕ packages/shared/src/features/function-calls/tools/web-search/manifest.ts (+23 -0)

📄 Description

Linked issue

Closes #3073
Closes #3074

Why this change

  • Game Lorebook Keeper books created in one Game session could be carried forward in metadata but blocked from triggering in the next session because their stored chatId belonged to the previous session.
  • Users requested a built-in web search function in the function-call list without needing to create a custom webhook first.
  • The custom mouse pointer could flicker back to the system cursor, duplicate, or jump during scroll repaints when RGB/pulse recoloring rebuilt the cursor SVG while the browser was scrolling.

What changed

  • Allows explicitly pinned Game Lorebook Keeper books to remain relevant across Game session chats while still respecting the existing Game Keeper exclusion path when the keeper is disabled.
  • Adds a built-in web_search function manifest and runtime executor backed by a bounded HTTPS DuckDuckGo Lite query.
  • Keeps the custom cursor on the native SVG cursor path and pauses cursor SVG recoloring briefly during wheel scrolling so scroll repainting uses one stable cursor image.
  • Updates the generated function-call registry and v2.0.7 changelog.

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

Manual verification notes

  • pnpm --filter @marinara-engine/shared build
  • pnpm --filter @marinara-engine/server lint
  • pnpm check
  • pnpm --filter @marinara-engine/client lint
  • pnpm --filter @marinara-engine/client build
  • Runtime smoke: imported the built server executeToolCalls() and confirmed web_search returns compact DuckDuckGo Lite results for Marinara Engine GitHub.
  • Runtime smoke: imported built filterRelevantLorebooks() and confirmed an active Game Lorebook Keeper book with an old session chatId remains relevant for a new session chat.
  • Maintainer browser verification: custom cursor no longer doubles/jumps during scrolling after replacing the scroll overlay with cursor recolor freezing.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Cursor behavior was manually checked by the maintainer in browser after the final native-cursor implementation.

Summary by CodeRabbit

  • New Features

    • Added a built-in web search tool that can return search results from within the app.
    • Introduced a new appearance option for Marinara’s custom mouse pointer and cursor coloring.
  • Bug Fixes

    • Improved cursor behavior during scrolling so accent colors update more smoothly.
    • Fixed carried-over lorebooks so they continue working properly across game sessions.

🔄 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/3075 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/29/2026 **Status:** ✅ Merged **Merged:** 6/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/issues-3073-3074` --- ### 📝 Commits (4) - [`c1ceb0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c1ceb0fca3cad527e064f625faa10ea984384b0a) Fix game keeper lorebooks and add web search tool - [`6ae611a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6ae611af7c7319bbc287229238b590f4b8842c26) Stabilize custom cursor during scrolling - [`45ba4d9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/45ba4d900962cab0c772bee7e1178a768cf37044) Address CodeRabbit web search review - [`62813c4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/62813c4f43d4011ea9c1f7ac18dca7132f0d4edb) Align web search content types ### 📊 Changes **9 files changed** (+248 additions, -232 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -1) 📝 `packages/client/src/App.tsx` (+56 -166) 📝 `packages/client/src/styles/globals.css` (+39 -65) 📝 `packages/server/src/services/lorebook/index.ts` (+2 -0) 📝 `packages/server/src/services/storage/lorebooks.storage.ts` (+3 -0) 📝 `packages/server/src/services/tools/tool-executor.ts` (+119 -0) 📝 `packages/shared/scripts/generate-feature-registries.mjs` (+1 -0) 📝 `packages/shared/src/features/function-calls/tool-registry.generated.ts` (+2 -0) ➕ `packages/shared/src/features/function-calls/tools/web-search/manifest.ts` (+23 -0) </details> ### 📄 Description ## Linked issue Closes #3073 Closes #3074 ## Why this change - Game Lorebook Keeper books created in one Game session could be carried forward in metadata but blocked from triggering in the next session because their stored `chatId` belonged to the previous session. - Users requested a built-in web search function in the function-call list without needing to create a custom webhook first. - The custom mouse pointer could flicker back to the system cursor, duplicate, or jump during scroll repaints when RGB/pulse recoloring rebuilt the cursor SVG while the browser was scrolling. ## What changed - Allows explicitly pinned Game Lorebook Keeper books to remain relevant across Game session chats while still respecting the existing Game Keeper exclusion path when the keeper is disabled. - Adds a built-in `web_search` function manifest and runtime executor backed by a bounded HTTPS DuckDuckGo Lite query. - Keeps the custom cursor on the native SVG cursor path and pauses cursor SVG recoloring briefly during wheel scrolling so scroll repainting uses one stable cursor image. - Updates the generated function-call registry and v2.0.7 changelog. ## 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` ### Manual verification notes - `pnpm --filter @marinara-engine/shared build` - `pnpm --filter @marinara-engine/server lint` - `pnpm check` - `pnpm --filter @marinara-engine/client lint` - `pnpm --filter @marinara-engine/client build` - Runtime smoke: imported the built server `executeToolCalls()` and confirmed `web_search` returns compact DuckDuckGo Lite results for `Marinara Engine GitHub`. - Runtime smoke: imported built `filterRelevantLorebooks()` and confirmed an active Game Lorebook Keeper book with an old session `chatId` remains relevant for a new session chat. - Maintainer browser verification: custom cursor no longer doubles/jumps during scrolling after replacing the scroll overlay with cursor recolor freezing. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Cursor behavior was manually checked by the maintainer in browser after the final native-cursor implementation. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a built-in web search tool that can return search results from within the app. * Introduced a new appearance option for Marinara’s custom mouse pointer and cursor coloring. * **Bug Fixes** * Improved cursor behavior during scrolling so accent colors update more smoothly. * Fixed carried-over lorebooks so they continue working properly across game sessions. <!-- 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-22 04:19:34 +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#5792
No description provided.