[PR #425] [MERGED] docs(lorebooks): explain three scoping mechanisms in FAQ + tooltips #4614

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/425
Author: @cha1latte
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/5/2026
Merged by: @SpicyMarinara

Base: main ← Head: docs/lorebook-scoping


📝 Commits (2)

  • 686935e docs(lorebooks): explain three scoping mechanisms in FAQ + tooltips
  • 6e7e645 Merge branch 'main' into docs/lorebook-scoping

📊 Changes

2 files changed (+28 additions, -2 deletions)

View changed files

📝 docs/FAQ.md (+26 -0)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+2 -2)

📄 Description

Summary

Surfaces the existing lorebook multi-character and chat-scoping mechanisms that aren't discoverable from the lorebook editor today. Pure UX/docs, no behavior change.

Why

Users — especially SillyTavern migrants — see the lorebook editor's Linked Character (single-select) and assume that's the only way to scope a lorebook. They miss two existing mechanisms that already cover the multi-character / chat-specific cases:

  • Chat settings drawer → Lorebooks section (metadata.activeLorebookIds[]) — multi-attach, per-chat.
  • Per-entry character filters (characterFilterIds[], added in d7179e7) — finer-grained scoping inside a shared lorebook.

The schema and runtime already support all three; the gap is only that the lorebook editor's own UI doesn't point users at them.

What changed

  • packages/client/src/components/lorebooks/LorebookEditor.tsx — Linked Character and Linked Persona tooltips now mention the chat-drawer multi-attach for multi-character / chat-specific scope.
  • docs/FAQ.md — new entry "How do I use one lorebook with multiple characters, or scope it to a specific chat?" walking through all three mechanisms.

Test plan

  • Tooltip text renders correctly on Linked Character (light + dark mode)
  • Tooltip text renders correctly on Linked Persona (light + dark mode)
  • Tooltip doesn't overflow at mobile width (~400px)
  • FAQ markdown renders correctly on the GitHub diff view

Notes for the reviewer

  • CI failure is pre-existing on main. The current pnpm check failure in packages/server/src/services/haptic/buttplug-service.ts (OutputType.HwPositionWithDuration not found on the upstream library type) is unrelated to this PR — it landed in e3e96cd (v1.5.7 hotfix release) before this branch. Client lint + typecheck pass clean for the files this PR touches.
image image

Summary by CodeRabbit

  • Documentation
    • Added FAQ entry covering multiple approaches to scope lorebooks across characters and specific chats
    • Clarified tooltip text for character and persona linking features to explain auto-activation behavior

🔄 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/425 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/5/2026 **Status:** ✅ Merged **Merged:** 5/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `docs/lorebook-scoping` --- ### 📝 Commits (2) - [`686935e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/686935e8f45b7ed8fe4adab693d6e69ae07de382) docs(lorebooks): explain three scoping mechanisms in FAQ + tooltips - [`6e7e645`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6e7e64573dd7b40dd4060b38fcab7c0413b4d565) Merge branch 'main' into docs/lorebook-scoping ### 📊 Changes **2 files changed** (+28 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/FAQ.md` (+26 -0) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+2 -2) </details> ### 📄 Description ## Summary Surfaces the existing lorebook multi-character and chat-scoping mechanisms that aren't discoverable from the lorebook editor today. Pure UX/docs, no behavior change. ## Why Users — especially SillyTavern migrants — see the lorebook editor's `Linked Character` (single-select) and assume that's the only way to scope a lorebook. They miss two existing mechanisms that already cover the multi-character / chat-specific cases: - **Chat settings drawer → Lorebooks section** (`metadata.activeLorebookIds[]`) — multi-attach, per-chat. - **Per-entry character filters** (`characterFilterIds[]`, added in d7179e7) — finer-grained scoping inside a shared lorebook. The schema and runtime already support all three; the gap is only that the lorebook editor's own UI doesn't point users at them. ## What changed - `packages/client/src/components/lorebooks/LorebookEditor.tsx` — `Linked Character` and `Linked Persona` tooltips now mention the chat-drawer multi-attach for multi-character / chat-specific scope. - `docs/FAQ.md` — new entry *"How do I use one lorebook with multiple characters, or scope it to a specific chat?"* walking through all three mechanisms. ## Test plan - [x] Tooltip text renders correctly on `Linked Character` (light + dark mode) - [x] Tooltip text renders correctly on `Linked Persona` (light + dark mode) - [x] Tooltip doesn't overflow at mobile width (~400px) - [x] FAQ markdown renders correctly on the GitHub diff view ## Notes for the reviewer - **CI failure is pre-existing on `main`.** The current `pnpm check` failure in `packages/server/src/services/haptic/buttplug-service.ts` (`OutputType.HwPositionWithDuration` not found on the upstream library type) is unrelated to this PR — it landed in `e3e96cd` (v1.5.7 hotfix release) before this branch. Client lint + typecheck pass clean for the files this PR touches. <img width="653" height="271" alt="image" src="https://github.com/user-attachments/assets/ad0ba9da-1165-4e8c-aaf4-d3a895d20253" /> <img width="744" height="179" alt="image" src="https://github.com/user-attachments/assets/aa7bf04f-a229-4620-9102-26f6d2d6f3c1" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added FAQ entry covering multiple approaches to scope lorebooks across characters and specific chats * Clarified tooltip text for character and persona linking features to explain auto-activation behavior <!-- 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:09:10 +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#4614
No description provided.