From 00a0c86cc0d5b42fc9a03f70a2093c66cf0e1e82 Mon Sep 17 00:00:00 2001 From: James Feng <47167674+GhostDragon124@users.noreply.github.com> Date: Sun, 7 Jun 2026 03:57:00 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20add=20devlog=20for=20upstream=20sync=20?= =?UTF-8?q?2.6.5=E2=86=922.6.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/devlog/01-上游同步-2.6.5-2.6.11.md | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 docs/devlog/01-上游同步-2.6.5-2.6.11.md diff --git a/docs/devlog/01-上游同步-2.6.5-2.6.11.md b/docs/devlog/01-上游同步-2.6.5-2.6.11.md new file mode 100644 index 000000000..a97132114 --- /dev/null +++ b/docs/devlog/01-上游同步-2.6.5-2.6.11.md @@ -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 (**零新增**) | + +## 合入的 commit(5 个) + +| 上游 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 体系一致