mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3186] [MERGED] [codex] Fix lorebook revectorization and scene streaming polish #5834
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#5834
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/3186
Author: @SpicyMarinara
Created: 7/3/2026
Status: ✅ Merged
Merged: 7/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/smooth-roleplay-typewriter📝 Commits (6)
08f461bFix lorebook revectorization and scene streaming polish4832028Theme music players for light mode0881a0cMerge branch 'staging' into codex/smooth-roleplay-typewriter2ca68e0Recover mobile backgrounded generationsdda26b0Open chats at latest message2a9ac3fAddress CodeRabbit review for PR 3186📊 Changes
13 files changed (+274 additions, -73 deletions)
View changed files
📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+1 -1)📝
packages/client/src/components/chat/ConversationView.tsx(+45 -4)📝
packages/client/src/components/chat/LocalMusicPlayer.tsx(+15 -12)📝
packages/client/src/components/chat/YouTubePlayer.tsx(+16 -13)📝
packages/client/src/components/lorebooks/LorebookEditor.tsx(+55 -14)📝
packages/client/src/components/music/MusicSourceButton.tsx(+1 -1)📝
packages/client/src/components/spotify/SpotifyMiniPlayer.tsx(+14 -13)📝
packages/client/src/hooks/use-generate.ts(+75 -6)📝
packages/client/src/styles/globals.css(+31 -3)📝
packages/server/src/routes/generate.routes.ts(+15 -2)📝
packages/server/src/routes/generate/generate-route-utils.ts(+2 -2)📝
packages/server/src/routes/lorebooks.routes.ts(+1 -1)📝
packages/server/src/routes/scene.routes.ts(+3 -1)📄 Description
Why
Closes #3182.
Closes #3185.
Changing embedding models can leave existing lorebook vectors with dimensions that do not match newly generated vectors. The server already rejects missing-only vectorization in that state, but the editor did not expose a direct way to re-vectorize every entry.
Mobile browsers can also suspend or cut the generation stream when the user switches apps. In Roleplay mode that passive disconnect aborted the server-side generation and surfaced a network error when the user returned.
Restored chats should reopen at the latest visible message instead of landing at the top of the loaded history window.
What Changed
Re-vectorize allaction when a lorebook has both stored vectors and entries missing vectors.Nonefor prompt preset so generated scene instructions do not clash with inherited presets./api/generate/status/:chatIdso the client can recover from mobile background stream drops by waiting for the server generation to finish, then refreshing messages without showing a false network error.Validation
git diff --checkpnpm --filter @marinara-engine/server lintpnpm --filter @marinara-engine/client lintpnpm --filter @marinara-engine/client buildpnpm checkpnpm --filter @marinara-engine/server lintpnpm --filter @marinara-engine/client lintManual Verification Needed
Re-vectorize all.None.Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.