[PR #7508] [MERGED] revert(lorebooks): remove the Lorebook Reader chat tool #7766

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7508
Author: @SpicyMarinara
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara

Base: staging ← Head: revert/lorebook-reader


📝 Commits (1)

  • bac23f8 revert(lorebooks): remove the Lorebook Reader chat tool (#7494)

📊 Changes

23 files changed (+49 additions, -1041 deletions)

View changed files

📝 docs/chats/chat-settings.md (+1 -1)
📝 docs/lorebooks/overview.md (+0 -13)
➖ e2e/lorebook-reader.e2e.ts (+0 -157)
📝 packages/client/src/components/chat/ChatControlWindow.tsx (+2 -3)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+2 -15)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -25)
📝 packages/client/src/components/chat/ConversationView.tsx (+4 -9)
➖ packages/client/src/components/chat/LorebookReaderWindow.tsx (+0 -439)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+15 -1)
📝 packages/client/src/components/chat/RoleplayTrackerWindow.tsx (+1 -1)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+1 -2)
📝 packages/client/src/hooks/use-capability-packages.ts (+0 -14)
📝 packages/client/src/hooks/use-chats.ts (+5 -4)
📝 packages/client/src/hooks/use-lorebooks.ts (+10 -48)
📝 packages/client/src/lib/chat-help-targets.ts (+1 -5)
➖ packages/client/src/lib/lorebook-reader.ts (+0 -123)
📝 packages/client/src/localization/locales/en.json (+0 -17)
📝 packages/server/src/routes/chats.routes.ts (+5 -13)
📝 packages/shared/src/types/chat-preset.ts (+0 -2)
📝 packages/shared/src/types/chat.ts (+0 -2)

...and 3 more files

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7464 (closed as not planned: Active Context already covers reading lorebook entries in the chat)

Why this change

The Lorebook Reader (#7494) duplicated Active Context, which already shows lorebook entries in the chat. The maintainer decided it shouldn't ship.

What changed

  • The Lorebook Reader chat tool is removed: its window, chat-tool bubble, the per-chat pin storage (lorebookReaderPins in chat metadata), its docs and its regressions.
  • This is a clean git revert -m 1 of the #7494 merge (fa1eab508), with no conflicts. Nothing merged since then used it.
  • Pins saved by anyone who used the Reader on staging in the meantime stay unused in their chat metadata, which is harmless.

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

  • Ran: pnpm check (exit 0); run-regressions --filter chat-window (6/6); --filter lorebook (22/22). No remaining references to the Reader in packages, scripts, docs or e2e.
  • Manually verify: the chat tools no longer offer a Lorebook Reader, and Active Context still lists lorebook entries.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

The Reader's English docs are removed. Its translation issue, #7496, is closed as no longer needed: nothing was translated.

Summary by CodeRabbit

  • Removed Features
    • The Lorebook Reader is no longer available in roleplay or conversation chats, including its entry browsing, search, and pinning features.
    • Lorebook Reader guidance and related Chat Help targets have been removed.
  • Bug Fixes
    • Changes to chat settings and window layout continue to avoid updating chat activity timestamps; other metadata changes count as activity.

🔄 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/7508 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `revert/lorebook-reader` --- ### 📝 Commits (1) - [`bac23f8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bac23f8e4b30739612f74c0f33f109be18e2bbc3) revert(lorebooks): remove the Lorebook Reader chat tool (#7494) ### 📊 Changes **23 files changed** (+49 additions, -1041 deletions) <details> <summary>View changed files</summary> 📝 `docs/chats/chat-settings.md` (+1 -1) 📝 `docs/lorebooks/overview.md` (+0 -13) ➖ `e2e/lorebook-reader.e2e.ts` (+0 -157) 📝 `packages/client/src/components/chat/ChatControlWindow.tsx` (+2 -3) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+2 -15) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -25) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+4 -9) ➖ `packages/client/src/components/chat/LorebookReaderWindow.tsx` (+0 -439) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+15 -1) 📝 `packages/client/src/components/chat/RoleplayTrackerWindow.tsx` (+1 -1) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+1 -2) 📝 `packages/client/src/hooks/use-capability-packages.ts` (+0 -14) 📝 `packages/client/src/hooks/use-chats.ts` (+5 -4) 📝 `packages/client/src/hooks/use-lorebooks.ts` (+10 -48) 📝 `packages/client/src/lib/chat-help-targets.ts` (+1 -5) ➖ `packages/client/src/lib/lorebook-reader.ts` (+0 -123) 📝 `packages/client/src/localization/locales/en.json` (+0 -17) 📝 `packages/server/src/routes/chats.routes.ts` (+5 -13) 📝 `packages/shared/src/types/chat-preset.ts` (+0 -2) 📝 `packages/shared/src/types/chat.ts` (+0 -2) _...and 3 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7464 (closed as not planned: Active Context already covers reading lorebook entries in the chat) ## Why this change The Lorebook Reader (#7494) duplicated **Active Context**, which already shows lorebook entries in the chat. The maintainer decided it shouldn't ship. ## What changed - **The Lorebook Reader chat tool is removed:** its window, chat-tool bubble, the per-chat pin storage (`lorebookReaderPins` in chat metadata), its docs and its regressions. - This is a clean `git revert -m 1` of the #7494 merge (`fa1eab508`), with no conflicts. Nothing merged since then used it. - Pins saved by anyone who used the Reader on staging in the meantime stay unused in their chat metadata, which is harmless. ## 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 - Ran: `pnpm check` (exit 0); `run-regressions --filter chat-window` (6/6); `--filter lorebook` (22/22). No remaining references to the Reader in packages, scripts, docs or e2e. - Manually verify: the chat tools no longer offer a Lorebook Reader, and Active Context still lists lorebook entries. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) The Reader's English docs are removed. Its translation issue, #7496, is closed as no longer needed: nothing was translated. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Removed Features** - The Lorebook Reader is no longer available in roleplay or conversation chats, including its entry browsing, search, and pinning features. - Lorebook Reader guidance and related Chat Help targets have been removed. - **Bug Fixes** - Changes to chat settings and window layout continue to avoid updating chat activity timestamps; other metadata changes count as activity. <!-- 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-24 04:07:18 +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#7766
No description provided.