docs: add devlog for upstream sync 2.6.5→2.6.11

This commit is contained in:
James Feng 2026-06-07 03:57:00 +08:00
parent 3e29504ca3
commit 00a0c86cc0

View File

@ -0,0 +1,54 @@
# 01-上游同步-2.6.5-2.6.11
| | |
|---|---|
| 日期 | 2026-06-06 |
| 范围 | 上游 CCB 2.6.5 → 2.6.11 版本同步 |
| 分支 | `acp` |
## 目标
将 CCP 从 2.6.5 同步到上游最新版本 2.6.11,合入期间的 bug 修复和性能优化。
## 结果
| | 同步前 | 同步后 |
|---|---|---|
| 版本 | 2.6.5 | **2.6.11** |
| 构建 | ✅ | ✅ |
| 测试 | 3082 tests, 56 errors | 3082 tests, 56 errors (**零回归**) |
| 类型错误 | 270 | 270 (**零新增**) |
## 合入的 commit5 个)
| 上游 commit | CCP commit | 内容 |
|---|---|---|
| `dab04af7` | `060bd6fe` | **Vite 构建 code splitting** — Bun RSS 从 966MB 降至 35MB |
| `230eb489` | `ddf5e268` | ACP 模式加载 agent 定义并透传 subagent 层级信息 |
| `a972ed79` | `3a261f74` | **cacheWarningEnabled** — /config 面板可关闭缓存率警告 |
| `01f26cf4` | `1ce561ca` | ACP loadSession 用 `resolveSessionFilePath` 修复历史恢复失败 |
| `7e3d825f` | `f2393903` | ACP prompt sessionId 对齐,修复 transcript 写入错误会话 |
## 确认已存在7 个)
代码已在 CCP 中,仅 hash 不同:
- `d7001b87` — Node v22 `markResourceTiming` polyfill
- `efc218d8` — searchSkills 缓存 IDF 索引一致性校验
- `ed619327` — OpenAI stream adapter cached_tokens 修正
- `6dd378bf` — 退出启动对话框终端残留修复
- `9d17597e` — autofix-pr 回流机制
- `a077ec8d` — ACP 文本重复显示修复
- `b1c4f40f` — ACP extended thinking + tool_use 导致 400 修复
## 有意跳过1 个)
| 上游 commit | 原因 |
|---|---|
| `a91653a0` — 删除 edit tool 旧逻辑 | CCP FileEditTool fork 仍依赖 `preserveQuoteStyle`/`normalizeQuotes`,是真正的架构分叉点,不跟 |
## 决策
- **bug fix 紧跟上,架构分叉慎重保留** — 上游修的运行时 bug 必须跟,设计取舍不盲目照搬
- CCP 的类型错误270与上游共享同一份"反编译遗产",非 CCP 独有债务
- `a91653a0` 是有意分叉CCP 保留了 FileEditTool 的 quote 标准化逻辑,与 Hermes skill 体系一致