[PR #1615] [MERGED] Fix scoped lorebook tool search #5147

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1615
Author: @Promansis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-1549


📝 Commits (1)

  • b47f746 Fix scoped lorebook tool search

📊 Changes

4 files changed (+132 additions, -7 deletions)

View changed files

📝 src/engine/generation/main-tool-loop.test.ts (+90 -0)
📝 src/engine/generation/prompt-assembly.ts (+2 -2)
📝 src/engine/generation/start-generation.ts (+4 -0)
📝 src/engine/generation/tools-runtime.ts (+36 -5)

📄 Description

Summary

  • Scope built-in search_lorebook stored-entry fallback to lorebooks active for the current chat context
  • Reuse prompt assembly lorebook/folder filtering for disabled books and disabled folders
  • Add regression coverage for disabled, disabled-folder, and unrelated character-scoped entries

Fixes #1549

Verification

  • pnpm exec vitest run src/engine/generation/main-tool-loop.test.ts
  • pnpm typecheck
  • pnpm check:architecture

🔄 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/1615 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-1549` --- ### 📝 Commits (1) - [`b47f746`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b47f746b8486ec31445ebb611edd94866aaef0ed) Fix scoped lorebook tool search ### 📊 Changes **4 files changed** (+132 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/generation/main-tool-loop.test.ts` (+90 -0) 📝 `src/engine/generation/prompt-assembly.ts` (+2 -2) 📝 `src/engine/generation/start-generation.ts` (+4 -0) 📝 `src/engine/generation/tools-runtime.ts` (+36 -5) </details> ### 📄 Description ## Summary - Scope built-in search_lorebook stored-entry fallback to lorebooks active for the current chat context - Reuse prompt assembly lorebook/folder filtering for disabled books and disabled folders - Add regression coverage for disabled, disabled-folder, and unrelated character-scoped entries Fixes #1549 ## Verification - pnpm exec vitest run src/engine/generation/main-tool-loop.test.ts - pnpm typecheck - pnpm check:architecture --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:43 +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#5147
No description provided.