mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6475] [MERGED] fix: unblock Advanced Memory and reuse Chat Summaries #7194
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#7194
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/6475
Author: @SpicyMarinara
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept21-memory-swipe-reuse📝 Commits (3)
3d6e548chore: coordinate Advanced Memory swipe reuse874103ffix: unblock Advanced Memory and reuse ranged Chat Summaries558c7b5fix: scope connection tests and skip fitting summary groups📊 Changes
27 files changed (+1374 additions, -611 deletions)
View changed files
📝
CHANGELOG.md(+7 -0)📝
docs/agents/memory.md(+13 -8)📝
e2e/advanced-memory.e2e.ts(+32 -7)📝
e2e/drag-list-scroll.e2e.ts(+8 -1)📝
e2e/fal-image.e2e.ts(+78 -0)➕
e2e/summary-controls.e2e.ts(+82 -0)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+10 -7)📝
packages/client/src/components/chat/SummaryPopover.tsx(+15 -6)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+64 -21)📝
packages/client/src/hooks/use-advanced-memory.ts(+9 -1)📝
packages/client/src/hooks/use-chats.ts(+6 -4)📝
packages/client/src/localization/locales/en.json(+6 -4)📝
packages/server/src/routes/advanced-memory.routes.ts(+1 -1)📝
packages/server/src/routes/chats.routes.ts(+12 -4)📝
packages/server/src/routes/generate.routes.ts(+15 -1)📝
packages/server/src/services/advanced-memory.ts(+443 -307)📝
packages/server/src/services/chat-summary/connection-resolution.ts(+3 -2)📝
packages/server/src/services/generation/advanced-memory-context.ts(+68 -2)📝
packages/server/src/services/prompt/advanced-memory-prompt.ts(+2 -1)📝
scripts/regressions/advanced-memory-context.regression.ts(+32 -0)...and 7 more files
📄 Description
Linked issue
Closes #6474
Why this change
A ready Roleplay chat could start continuity processing before the main reply and stall at 0/1 work units. Regeneration also repeated recall, while generated constants bypassed existing ranged Chat Summaries. Activating one summary locked the whole list. This patch restores the existing summary workflow and keeps model-powered archive maintenance after the main generation.
What changed
Validation
Human verification tasks (intentionally left unchecked):
pnpm checkpasses locallyCONTRIBUTING.mdAutomated/local evidence:
pnpm checkpassed, including localization, formatting, TypeScript, E2E types and production build./api/healthand the SPA returned HTTP 200. This is not a fresh dependency-image build; GitHub's container checks cover that path.Manual verification notes
Browser automation exercised light/dark memory views, resumable preparation, scene/legacy continuity/ongoing deletion, cancellation and failed deletion retry, quiet main-generation activity, and summary controls with a held save request. Provider regressions use deterministic mocks; they verify streaming and request ordering, not live model quality or cost.
Manually verify the existing large chat on a physical iPhone app: generate and regenerate with ready memory, confirm no pre-reply Updating continuity, confirm original ranged summaries are reused, and confirm the saved archive remains usable without Reset memory. Also manually verify the selected real provider's output-size behavior and scene-summary quality.
Claim boundaries: no new database schema; source messages and replaced Chat Summary entries are preserved. Legacy records remain deletable. Source/access/settings validation, imported malformed snapshots, cancellation, reset races and changed visibility were covered by negative regression cases. Real provider calls and physical iPhone/PWA behavior remain manual verification items.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated
CHANGELOG.md,docs/agents/memory.mdand canonical English UI copy. Translation follow-up: #6467. No version bump or installation/update behavior change.UI evidence (if applicable)
Browser proof screenshots: mobile legacy continuity/ongoing Delete summary actions, confirmation, and usable summary controls during a pending save. These are synthetic test chats, not user conversation data. Static SVG wrappers contain unchanged screenshots; download/open as described in the gist. No before screenshots were captured.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.