mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4847] [MERGED] Fix restored history, vectorization, swipe navigation, and Gallery agents #6516
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#6516
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/4847
Author: @SpicyMarinara
Created: 8/10/2026
Status: ✅ Merged
Merged: 8/10/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/assigned-issue-sweep-aug-10-round-2📝 Commits (7)
39aa2b9chore: start assigned issue sweep263f1d8fix: resolve assigned chat and vectorization issues0b2de39test: cover Gallery agent picker on mobile58d8d7bfix: apply CodeRabbit review feedback2fbb766fix: keep Lorebook editor open after failed save649a012fix: guard Lorebook save and vectorization races3262e33fix: serialize Lorebook vectorization flow📊 Changes
19 files changed (+930 additions, -118 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
e2e/core-flows.e2e.ts(+369 -0)📝
package.json(+1 -1)📝
packages/client/src/components/chat/ChatArea.tsx(+10 -3)📝
packages/client/src/components/chat/ChatCommonOverlays.tsx(+3 -0)📝
packages/client/src/components/chat/ChatGallery.tsx(+85 -20)📝
packages/client/src/components/chat/ChatGalleryDrawer.tsx(+34 -2)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+3 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+32 -3)📝
packages/client/src/components/chat/ConversationView.tsx(+1 -0)📝
packages/client/src/components/game/GameSurface.tsx(+3 -0)📝
packages/client/src/components/lorebooks/LorebookEditor.tsx(+103 -68)📝
packages/client/src/hooks/use-capability-packages.ts(+2 -1)📝
packages/client/src/localization/locales/en.json(+8 -0)📝
packages/server/src/db/file-backed-store.ts(+44 -10)📝
packages/server/src/routes/lorebooks.routes.ts(+8 -1)📝
packages/server/src/services/memory-recall.ts(+38 -9)➕
scripts/regressions/memory-recall-revectorize.regression.ts(+81 -0)📝
scripts/regressions/message-sharding.regression.ts(+100 -0)📄 Description
Why
Five assigned reports expose separate but user-visible dead ends: Conversation swipe navigation watches the wrong scroll surface; re-vectorization can race background memory work; Lorebook vectorization can execute before pending settings are saved and then report a misleading zero result; a restored profile can retain its pre-shard message backup while exposing no history; and custom image agents cannot be launched from the Gallery.
Scope
Changes
Validation
Risk notes
The restored-history repair only recovers a preserved pre-shard backup when the current manifest expects rows and no shard data exists; it never merges ambiguous partial histories. Memory work is serialized per chat and releases its queue entry after completion. Gallery preserves its existing one-click behavior whenever no eligible custom image agent is active.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.