fix(Log): All 范围改用 --branches --tags --remotes 根治游离泳道污染; - #45
Merged
ThreeFish-AI merged 1 commit intoJul 1, 2026
Merged
Conversation
- 根因:buildLogArgs 对 all/checkpointer 下 `git log --all`,--all 遍历 refs/ 全部引用(不止 heads/remotes/tags),含宿主工具注入的 refs/conductor-checkpoints/*(会话快照)与 refs/conductor-archive-heads/*(已删/被取代分支头归档),使游离提交仍可达、画成游离泳道。客户端 /^checkpoint:/ subject 过滤拦不住作为其祖先的游离业务提交,故泄漏;git fetch --prune 仅清 refs/remotes/*,对此类非远端跟踪引用无效(即「prune 后依旧存在」之因)。 - 修复:all 范围由 --all 改为 --branches --tags --remotes(仅三大标准命名空间,排除一切工具注入内部引用);checkpointer 保留 --all(该 Tab 职责即原始完整视图、需触达内部 checkpoint 快照)。客户端 keepCheckpoint 过滤作双保险保留。 - 实证:本仓 --all 取 241 提交、--branches --tags --remotes 取 70;refs 命名空间 135 conductor-checkpoints + 17 conductor-archive-heads,远多于 3 heads/3 remotes/2 tags。 - 测试:更新 tests/unit/log-query.test.ts 断言(all 含三件套且不含 --all;checkpointer 含 --all 且不叠三件套)作回归护栏;check-types/lint/306 单测/production package 全绿。 - 经验沉淀:docs/.agents/issue.md #9。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
This was referenced Jul 2, 2026
Merged
ThreeFish-AI
added a commit
that referenced
this pull request
Jul 4, 2026
- package.json:版本号 0.0.9-rc.2 → 0.0.9 - CHANGELOG.md:将 [0.0.9-rc.2] / [0.0.9-rc.1] 两段合并为单个综合条目 [0.0.9], 并回填自上一正式版 0.0.6 以来从未记录的变更(#40-#45 的 CI 状态/远程分支删除/ 清理已删远程分支/UI-UX 全局系统化 #43/Log All 修复 #45,及 #49 Emerald 图标); 底部引用链接同步更新(移除 rc 链接,新增 [0.0.9]) - docs/releases/v0.0.9.md:新建正式版发布说明,以 rc.1 结构为蓝本扩写为面向公开用户的 全量叙述,移除 Release Candidate 措辞,规模实证更新为 6 视图 / 97 命令 / 6 配置 / 324 单测 - docs/releases/{v0.0.9-rc.1,v0.0.9-rc.2}.md:删除 rc 发布说明(已发布 pre-release 正文已固化,删源无影响) - docs/releases/README.md、docs/.agents/knowledge-map.md:索引与知识地图收敛至 v0.0.9 单行 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
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.
问题
LOG 视图 All 范围下,一批已删分支的提交仍以游离泳道残留;运行「清理已删远程分支」(#44,
git fetch --prune) 后依旧存在。根因
engine/log/log-query.ts的buildLogArgs对all/checkpointer下git log --all。--all遍历refs/下全部引用(不止 heads/remotes/tags),含宿主工具注入的refs/conductor-checkpoints/*(会话快照)与refs/conductor-archive-heads/*(已删/被取代分支头的归档),使游离提交仍可达、画成游离泳道。客户端/^checkpoint:/subject 过滤拦不住作为其祖先的游离业务提交;git fetch --prune仅清refs/remotes/*,对此类非远端跟踪引用无效——这正是「prune 后依旧存在」之因。实证:本仓
--all取 241 提交、--branches --tags --remotes取 74;refs 命名空间 135conductor-checkpoints+ 17conductor-archive-heads,远多于 3 heads / 3 remotes / 2 tags。修复
all范围:--all→--branches --tags --remotes(仅三大标准命名空间,排除一切工具注入的内部引用),根治游离泳道。checkpointer范围:保留--all——该 Tab 职责即「原始完整视图、含内部 checkpoint 快照」,需触达refs/conductor-checkpoints/*。keepCheckpoint过滤作双保险保留;更新tests/unit/log-query.test.ts断言(all含三件套且不含--all、checkpointer含--all且不叠三件套)作回归护栏;经验沉淀于docs/.agents/issue.md #9。验证
check-types/lint/ 306 单测全绿 /production package构建通过;与feature/1.x.x无文件重叠,合并零冲突。