mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1933] [MERGED] fix(long-term-memory): apply a later piece's thread and relationship updates together (1.5.16) #2036
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#2036
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-Agents/pull/1933
Author: @Promansis
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/section-update-one-at-a-time📝 Commits (2)
e1ca040fix(long-term-memory): apply a later piece's thread and relationship updates together (#1930)88340b1chore(long-term-memory): release 1.5.16 (#1930)📊 Changes
15 files changed (+229 additions, -94 deletions)
View changed files
➕
artifacts/long-term-memory-1.5.16.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+49 -49)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/drafts/draft-projector.ts(+14 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/drafts/reconciliation.ts(+8 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/source-processing.ts(+3 -3)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-storage.regression.ts(+111 -0)📄 Description
Pull request
Linked issue
Closes #1930
Why this change
Since #1782, each later chat piece continues the previous piece's open threads in place, and the compiler replaces a relationship's state, items and progression on purpose. Apply treated every such in-place section update as a destructive rewrite that may not be applied beside other rows, so accepting a later piece's draft in one go left its thread and relationship updates blocked behind the one-at-a-time notice, and auto-apply left the whole draft for review.
What changed
isDestructiveLtmRewrite(draft-projector.ts) separates a replacement the compiler intends from a change that removes or re-labels something. A section update on a non-anchor note no longer counts;set_status,set_title,set_subjectsand any section update on an anchor note still apply one at a time.rewritedisposition with its before/after diff; the error code, message and client are unchanged.tests/long-term-memory-storage.regression.ts: a thread update besideadd_linkapplies together and replaces the text; the same update on an anchor note stays blocked and apply rejects.long-term-memory1.5.16, rebuiltserver.mjs, manifest, artifact zip and catalog entries (generated byscripts/build-feature-packages.mjs long-term-memory).Package and security impact
long-term-memoryenginerange unchangedValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Documentation impact
UI evidence (if applicable)
None; no client change.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.