feat: Compact M1 收口与风险修复(micro 默认开启 + full_replace + 轻量可观测)#1
Closed
wynxing wants to merge 3 commits into
Closed
Conversation
- 默认启用 micro_compact,新增 manual full_replace 策略 - 统一 compact 流程并补齐 transcript 持久化与唯一命名 - 修复 micro_enabled=false 持久化丢失问题,兼容缺失字段回退默认值 - 调整 TUI compact 轻量可观测,避免 micro 失败污染主流程错误态 - 同步配置/事件/持久化相关文档并补齐回归测试 测试: - go test ./...
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
Owner
Author
|
该分支的正式评审入口已迁移到上游仓库 PR:1024XEngineer#125。此 PR 关闭以避免重复评审。 |
wynxing
pushed a commit
that referenced
this pull request
Apr 12, 2026
test(config): improve selection state branch coverage
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.
变更摘要
本 PR 完成 Compact M1 收口与风险修复,重点覆盖:
micro_compact,并保留显式关闭能力manual_strategy=full_replace(与keep_recent并存)unix_nano + 随机后缀 + session_id),避免同秒冲突0600compact_done/compact_error),并避免 micro 失败污染主流程错误态关键修复
micro_enabled=false无法持久化的问题(重启后不再回弹到默认值)测试
已在本地执行:
go test ./...全部通过。