Skip to content

fix: address codex review findings on #168-#172 range - #173

Merged
dreamlx merged 1 commit into
masterfrom
fix/codex-review-followups
Aug 15, 2026
Merged

fix: address codex review findings on #168-#172 range#173
dreamlx merged 1 commit into
masterfrom
fix/codex-review-followups

Conversation

@dreamlx

@dreamlx dreamlx commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Codex review 结果与处置

f67fe38..db30e0a(PR #168#172)做了 codex review,3 findings 全部核实属实并修复;其余审查项 codex 明确"查过无发现"(#168 release 脚本、#169 符号级删除干净度、#170 ignore 不掩盖回归、#171 glob 语义、#172 backup 语义、CHANGELOG/guide 与 CLI 输出一致)。

P1 — #169 文档清理漏网(4 个活跃面向用户的面)

  • codeindex init 最终输出仍承诺 "Auto-update README_AI.md on commit"(cli_config.py)→ 改为 lint hooks
  • README_zh.md 3 处(feature bullet / workflow 块 hooks install post-commit / plugin skill 表行)——英文 README 在 feat(hooks)!: remove post-commit hook from product (#167) #169 已清,中文漏了 → 镜像删除;版本历史段按惯例保留
  • examples/ai-integration-guide.md 10+ 处含整个 Post-commit 章节和 doc-only scenario → 全部移除
  • team-workflow-guide.md "Three hooks" → "Two hooks"

P2 — #171 _has_js_test_files

walk 不剪 .venv 且 skip-set 与 detect_languages 重复 → 抽 _WALK_SKIP_DIRS 共享常量(venv/.tox/.eggs 剪掉);uncapped walk 的 rationale 注释在案(init 一次性交互命令、后续 scan 反正要全树 walk)

P2 — #172 hooks status 可崩溃

残留检测的 read_text 无异常处理,不可读文件直接 crash informational 输出 → except OSError: continue

新增回归测试

  • venv 内 spec 文件不触发建议(prune 正确性)
  • unreadable leftover 不 crash status

Verification

全套 1788 passed, 13 skipped + ruff clean(codex 环境跑不了 pytest 是它 sandbox 无 tmp 目录,本地复现为权威)

P1 (docs, #169 residual): active user-facing surfaces still advertising
the removed post-commit workflow — codeindex init's final output,
README_zh.md (bullet/workflow/skill-table; EN was clean),
examples/ai-integration-guide.md (whole Post-commit section + doc-only
scenario), team-workflow-guide ('Three hooks'). All removed/updated;
version-history mentions intentionally kept.

P2 (#171): _has_js_test_files walked .venv and duplicated the skip-set —
now shares _WALK_SKIP_DIRS with detect_languages (venv/.tox/.eggs
pruned), uncapped-walk rationale documented.

P2 (#172): leftover-hook read_text now catches OSError — status is
informational, must not crash on an unreadable file.
@dreamlx
dreamlx merged commit 11f0ced into master Aug 15, 2026
8 checks passed
@dreamlx
dreamlx deleted the fix/codex-review-followups branch August 15, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant