fix(memory): Event memory writes reusing existing page IDs - #4388
Open
yeshion23333 wants to merge 3 commits into
Open
fix(memory): Event memory writes reusing existing page IDs#4388yeshion23333 wants to merge 3 commits into
yeshion23333 wants to merge 3 commits into
Conversation
yeshion23333
requested review from
chenjw and
qin-ctx
and removed request for
qin-ctx
August 27, 2026 09:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题是什么
模型在生成记忆时,会给每条记忆一个临时编号
page_id。后面的记忆关系和删除操作通过这个编号找到对应的记忆。旧逻辑有三个问题:
memories/events没有新增文件。怎么修复
memories/events下的文件。编号检查只处理当前这一次模型返回的内容。重新提取或重试时会重新计算,不会沿用上一次的编号占用状态。没有为编号冲突增加模型调用,也没有改变写入锁和 I/O 链路。
验证
git diff --check通过。