Repository navigation
chore: sync release 2.7.0 and desktop 1.4.0 back to main - #5158
kimi-agent-bot wants to merge 4 commits into
Conversation
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review
|
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e2d0c7d40
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2186eb23c5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Requirement or Bug
关联 #5094。CLI
2.7.0、Desktop1.4.0已从release/2026-11-19@a5e355e2718a2ebf70d8229fa5a05fe35d5f98a1发布;本 PR 将本批 release-only 修复与发布元数据选择性回同步到main,保留 main 后续提交、未消费 changesets 以及已独立合入的 #5121、#5131、#5134。main(当前9364a3f8b07ec085ef4f96cf586270659ca7d79b;初始为094771711c4d82b42c579936bc2daa7b1ae1040c,后续 main 已无冲突合入)chore/sync-release-2026-11-19-back-to-main(574c46b4409ceb929da281f50f03327b84b9c5b6)08997afe2b49b67f790cecb7c2c6a8fab86c40af本 PR 只回同步,不合入整个 release 分支,不触发正式版/npm/VS Code/Desktop/CDN。请人工 review 后按门禁⑥合并。
Bug Reproduction Steps
N/A — 已发布正式版的回同步;各项修复的回归覆盖随本 PR 一并同步。
Root Cause
N/A — 本 PR 不引入新的修复机理,而是将已经发布验证的修复移植到最新 main,并保留 main 的后续架构与行为。
Code Changes
核心思路是逐项移植 release-only 差异,而不是用 release 覆盖 main。
git cherry的 patch 等价结果显示 #5092、#5100 已在 main;本 PR 只移植 #5096、#5099、#5098、#5102 和 #5094 的发布元数据。这样组织是因为 Flow A/B 与 #5134 已经有独立合入路径;完整回同步只补齐代码、版本和已消费 changesets,不重复改文档或 release-notes。
修复与回归测试
localOnly,真正未知才保留本机 fanout,SSH host 异常时本地项目仍可用。与 main 后续改动重叠处采用三方适配:
packages/app-core/src/api/daemon/client.ts同时保留localOnly本机搜索与 workspace cursor 条件:localOnly始终不跨 host;cursor 仅在includeHosts !== true的所属 daemon 上省略hosts。packages/app-core/src/api/hostRouting.ts显式记录已知本机工作区;已知本机 cursor 使用localOnly,真正未知归属才 fanout,避免远程工作区误回本机空页,也避免本机分页无谓等待 SSH。packages/app-core/test/daemon-client.test.ts同时保留 main 的 local-only 回归和 release 的 cursor 回归,并分别覆盖已知远程、已知本机与未知归属。packages/core/test/llm/anthropic/anthropic.test.ts保留 main transport harness 的anthropic参数,再追加 output ceiling 用例。发布元数据与文案边界
2.6.3 → 2.7.0,Desktop1.3.7 → 1.4.0,内部 kap-server0.3.0 → 0.3.1;VSCode 保持0.9.0。kap-agent-collaboration.md与kap-agent-http-and-json-boot.md,因此最终删除 52 个。其余 5 个只在 release 产生并已消费,不在 main 伪造新增/删除。apps/kimi-code/CHANGELOG.md2.7.0 按已审口径删除 feat(kap): add agent-to-agent HTTP wait/interactions/kap.md, web --json, and KAP guide #4966 与两条 refactor(kap-server): converge sessions and mcp APIs onto /api/v1 #4891 API 迁移项。apps/desktop/CHANGELOG.md1.4.0 删除外部 Agent 会话协作的 Minor 条目及空标题,并删除 Qwen Coding Plan 条目。.changeset/release-plan.json、pnpm-lock.yaml、Flow A docs、Flow B release-notes、docs(changelog): remove KAP commitments from 2.7.0 and 1.4.0 #5134 清理结果均不修改;版本提交本身没有锁文件差异,pnpm install --frozen-lockfile已验证。阅读指南
先读
packages/app-core/src/api/daemon/client.ts与packages/kap-server/src/services/hosts/hostFanout.ts看两处 main/release 行为如何共存,再读packages/core/src/llm/builtin/protocol/anthropic/legalize.ts和packages/app-markdown/src/lib/tableWide.ts。其余为对应回归测试、发布元数据和已消费 changeset 清理。Behavior Changes and Affected Users
localOnly只查本机以上修复均已在 CLI 2.7.0 / Desktop 1.4.0 发布;本 PR 不新增默认开关、不实施代码层面的 KAP 移除,也不改变 release/tag 已发布内容。
验证详情
24.15.0、pnpm10.33.0下pnpm install --frozen-lockfile:通过,锁文件无差异。pnpm typecheck:首轮通过;审稿增量修改后 Desktop 与 kap-server typecheck 再次通过。pnpm lint:通过;先清理了 typecheck 构建产生的 325 个未跟踪.d.ts临时文件,未改 lint 规则或基线。git diff --check:通过;无未解决冲突、无未跟踪文件进入提交。test-windows按既有设计 SKIPPED。Didn't find any major issues;未决线程 0。未在本机重跑完整 monorepo 测试、Windows 专项或完整 Desktop E2E;这些由 PR CI 与人工 review 继续覆盖。未做 npm/VSCode/Desktop 发布、手动 dispatch、CDN 或广播。
合并前风险:main 可能继续前进,合并前需重新确认 mergeable 与最新 CI。两个 KAP changesets 按本批要求暂缓清理,后续版本 PR 前需按独立指令处理,避免相关文案再次进入版本节。
最终 diff 文件清单(71)
修复与回归测试(13)
发布元数据(6)
已消费 changeset 删除(52)
Checklist
gen-changesetsskill;这是已发布版本回同步,不新增未消费 changeset,两个明确暂缓处理的 KAP changesets 保留。gen-docsskill;Flow A/B 与 docs(changelog): remove KAP commitments from 2.7.0 and 1.4.0 #5134 已独立合入,本 PR 不重复更新 docs 或 release-notes。