Skip to content

fix: 修复 CLI 重复消息并建立跨平台基线 - #6

Merged
ZhuLinsen merged 2 commits into
mainfrom
codex/lean-01-baseline
Oct 11, 2026
Merged

ZhuLinsen merged 2 commits into
mainfrom
codex/lean-01-baseline

Conversation

@ZhuLinsen

@ZhuLinsen ZhuLinsen commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

修复 CLI 当前用户消息重复进入 history 的问题,清除密钥前缀与完整工具参数日志,并为六阶段迁移建立可比较的基线。

改动与必要性

  • 原因:CLI 先写入当前消息,再拼接 history,导致当轮输入重复;改为先拼接后写入。
  • 默认只加载六个 Coding Tools,基础工具仍可显式加载。
  • 超时测试使用当前 Python 解释器,避免依赖 Unix sleep。
  • 新增源码统计和每个 stacked PR 的 Windows/Linux × Python 3.11/3.12 回归 CI。

验证

191 tests passed;四组 CI 全部通过。复现:python -m pytest tests -q;python scripts/source_stats.py。
官方 Python 物理行数 4009 → 4007。包含注释/空行,不含测试、文档和第三方依赖。本项是基线修复,未完成原计划的大规模删减。

兼容、边界与回滚

默认工具集合收缩;工具可显式加载。没有真实 Provider 验收。
本项为 1/6,base 为 main。后续顺序 #7 → #8 → #9 → #10 → #11;安全与最终产品补改在 #11,中间阶段不单独作为稳定发布。
合入优先使用 merge commit;若 squash,必须重设后续 base 并检查 diff。回滚时先逆序 revert 后续依赖,再 revert 本项。未创建 tag、未合并 main。

@ZhuLinsen ZhuLinsen added the bug Something isn't working label Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant