mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1053] [MERGED] Let knowledge agents use chat active lorebooks #4903
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4903
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1053
Author: @cha1latte
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/20/2026
Merged by: @cha1latte
Base:
staging← Head:feat/issue-1050-active-lorebooks📝 Commits (2)
ebc75baImplement chat-active lorebooks for knowledge agentsa394be5Address review feedback: label lorebook toggle state📊 Changes
4 files changed (+101 additions, -8 deletions)
View changed files
📝
packages/client/src/components/agents/AgentEditor.tsx(+54 -6)📝
packages/server/src/routes/generate.routes.ts(+9 -2)📝
packages/server/src/routes/generate/generate-route-utils.ts(+34 -0)📝
packages/shared/src/types/agent.ts(+4 -0)📄 Description
Linked issue
Closes #1050
Why this change
Knowledge Retrieval and Knowledge Router required fixed lorebook selections in agent settings, which made chat-scoped agents feel broken when a chat already had active lorebooks attached.
What changed
useChatActiveLorebookssetting for Knowledge Retrieval and Knowledge Router.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-1050-knowledge-sources.ts; source resolution passed for chat-active defaults, fixed manual overrides, explicit disable, and duplicate/invalid manual IDs.pnpm check; it passed.http://localhost:5173; the Knowledge Router editor showed the chat-active toggle, fixed-source override label, and description-not-trigger copy.Docs and release impact
UI evidence (if applicable)
No reviewer-visible screenshot embedded. Codex verified the Agent Editor UI copy with a headless browser check.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.