mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6841] [MERGED] fix: lorebook tools and chat colors for assigned issues #7351
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#7351
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/6841
Author: @SpicyMarinara
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/assigned-issues-2026-09-29📝 Commits (4)
54740f2chore: track assigned lorebook and chat fixesf3011b3fix: lorebook link copying, chat colors, and embedding batches39e22a1Merge remote-tracking branch 'origin/staging' into codex/assigned-issues-2026-09-296c6171cfix: handle partial library failures and light icon contrast📊 Changes
11 files changed (+440 additions, -11 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)➕
e2e/lorebook-link-copy.e2e.ts(+120 -0)➕
e2e/message-marks-colors.e2e.ts(+140 -0)📝
packages/client/src/components/chat/ChatHelpOverlay.tsx(+3 -0)📝
packages/client/src/components/chat/MessageMarks.tsx(+10 -7)📝
packages/client/src/components/lorebooks/LorebookEditor.tsx(+57 -0)📝
packages/client/src/localization/locales/en.json(+9 -0)📝
packages/client/src/stores/ui.store.ts(+5 -0)📝
packages/client/src/styles/globals.css(+2 -2)📝
packages/server/src/routes/lorebooks.routes.ts(+2 -2)➕
scripts/regressions/lorebook-vectorization.regression.ts(+88 -0)📄 Description
Linked issue
Closes #6840
Closes #6839
Closes #6837
Why this change
Linking the same characters and personas to several lorebooks requires repeating every selection. The message marks menu keeps purple theme colours instead of following Chroma, and Help does not explain it. Lorebook embedding requests still contain up to fifty entries, which can overwhelm local providers.
What changed
Validation
Human checklist (intentionally unchecked):
pnpm checkpasses locallyCONTRIBUTING.mdAutomated results and review:
pnpm install,pnpm check,pnpm regression:prompt, and the isolatedlorebook-vectorizationregression passed.pnpm regression:ui e2e/lorebook-link-copy.e2e.ts e2e/message-marks-colors.e2e.ts --workers=1: 11 passed across desktop Chromium, mobile Chromium and mobile WebKit. Four duplicate mobile runs of the two query-failure cases are intentionally skipped; those cases run on desktop. The six colour/Help cases also passed again after adding teal, blue and white contrast checks.pnpm smoke:ui: 7/7 passed./api/healthand the compiled frontend with HTTP 200.Final reviewed candidate:
6c6171c57.pnpm check, the affected browser cases, shell smoke, Docker build and container health/frontend checks pass with the review fixes. The unchanged server batching path and prompt regressions passed after the staging integration at39e22a1cf. The only merge conflict was in the changelog, and both entries were preserved.Manual verification notes
Inspected before/after screenshots of the actual editor and chat controls, including mobile WebKit. The browser tests perform real copying, repeated pasting, saving/reloading, Chroma changes in both themes, and opening Help in both chat modes.
Proof boundary: the embedding regression exercises the real Fastify route, HTTP provider adapter and isolated file storage. A provider rejecting batches over ten fails before the fix and receives 10/10/1 afterwards; vectors remain attached to the correct entries, exclusions stay excluded, and only-missing makes no additional requests. This proves request size and persistence, not a guarantee against every provider/hardware timeout. Copy/paste coverage preserves existing links and handles stale IDs; the existing legacy-link form normalization and server Save path are reused. No storage format changes.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUnreleased notes and in-app Help updated. No guide, installation, release metadata or version changes.
UI evidence (if applicable)
Before/after screenshots: desktop and mobile, dark and light. All data is synthetic; mobile screenshots use emulation, not physical-device testing.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.