fix: 增量导入缺失的 Hermes 会话#642
Open
hanzckernel wants to merge 1 commit into
Open
Conversation
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.
Web UI 启动同步现在按缺失会话增量补齐,而不是本地库已有任意会话就直接跳过。范围限定在当前 DB-backed 会话镜像路径;旧版 JSON-only 历史文件不在这个 PR 中扩展为 Chat 导入。
改动
api_server和webui,继续跳过内部eph_*会话。profile + source + started_at + last_active + title + preview指纹识别已导入会话。createSession支持保留导入来源,避免webui会话被写成api_server。验证
npm test -- tests/server/session-sync.test.ts→ 4 passednpm test→ 66 files passed;449 tests passed,2 skippednpm run build→ passedgit diff --check→ passed关联