Repository navigation
perf(buddy): 启动时跳过稳定历史事件的恢复重建 - #240
Merged
shanyuhai123 merged 2 commits intoOct 8, 2026
Merged
Conversation
QAyong
force-pushed
the
codex/perf-startup-event-recovery
branch
from
October 8, 2026 04:50
d9fda23 to
cf32b76
Compare
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.
背景与关联 / Context and related issue
主要改动 / Changes
v23RunEventCheckpoints)与恢复流程RunEventRecovery:稳定且上次已可靠投影过的历史直接跳过;变化或不可信的运行记录仍按原方式完整重建。LEXORA_BUDDY_EVENT_RECOVERY=full,可强制回到全量重放,便于排查与回滚。验证 / Verification
pnpm --filter @uselexora/lexora-buddy test:runtime相关 4 个 spec 通过(RunEventRecovery、RunEventLog、storage/schema、buddyServiceEnvironment);type-check通过;改动文件 eslint 通过。pnpm lint;安装包真实启动性能未验收。兼容与风险 / Compatibility and risks
涉及数据库迁移(新增检查点表,不改既有表结构)与启动恢复路径改写。回滚方式:设置
LEXORA_BUDDY_EVENT_RECOVERY=full即恢复与改动前一致的全量重放;事件日志与数据库整理结果的语义不变。界面变更 / UI changes
N/A(仅启动耗时变化)。