← 返回更新日志

Kimi Code @moonshot-ai/[email protected]

2026-07-14 · GitHub 原文
### 次要更改 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) 感谢 [@sailist](https://github.com/sailist)! - 新增 v2 会话导出支持,用于打包诊断 ZIP 归档文件。 - [#1591](https://github.com/MoonshotAI/kimi-code/pull/1591) [`83e1753`](https://github.com/MoonshotAI/kimi-code/commit/83e175399f4dc3dfc3bb478543ff5897a24dfa3d) 感谢 [@liruifengv](https://github.com/liruifengv)! - 将超时的前台 Bash 命令移至后台运行而非直接终止,使长时间运行的命令能够存活并在完成后返回结果。在 `config.toml` 的 `[background]` 下设置 `bash_auto_background_on_timeout = false` 可恢复超时终止行为。 - [#1617](https://github.com/MoonshotAI/kimi-code/pull/1617) [`4ec2e7f`](https://github.com/MoonshotAI/kimi-code/commit/4ec2e7fab14ab89cddf77821082c3ff4911f737b) 感谢 [@sailist](https://github.com/sailist)! - 默认在 agent-core-v2 引擎上运行本地服务器(`kimi server run` / `kimi web`)——不再需要 `KIMI_CODE_EXPERIMENTAL_FLAG` 显式启用,且已移除旧的 v1 服务器包。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) 感谢 [@sailist](https://github.com/sailist)! - 将渐进式工具披露功能移植到新代理引擎:MCP 工具模式不再出现在顶层工具列表中,模型通过公告和 `select_tools` 工具按需按名称加载,以保持提示词缓存稳定。默认关闭;设置 `KIMI_CODE_EXPERIMENTAL_TOOL_SELECT=1` 以启用。 - [#1646](https://github.com/MoonshotAI/kimi-code/pull/1646) [`5eb6217`](https://github.com/MoonshotAI/kimi-code/commit/5eb62178b3b67d8659788bdf91132469f6588653) 感谢 [@wbxl2000](https://github.com/wbxl2000)! - Web 端:新增会话诊断导出功能,可将会话及受限的仅含元数据的故障排除日志打包为 ZIP 下载。运行 `/export` 或在会话的更多菜单中选择“导出会话”。Web 端下载限制为 64 MiB。 ### 补丁更新 - [#1638](https://github.com/MoonshotAI/kimi-code/pull/1638) [`7c889f3`](https://github.com/MoonshotAI/kimi-code/commit/7c889f3a960482cc9382203bda55d972b6fb6acd) 感谢 [@RealKai42](https://github.com/RealKai42)! - 在自动权限模式下,计划退出现在在工具结果和转录记录中均标记为“自动批准”(非用户审核),因此代理不再将自动批准计划视为用户发出的执行信号。 - [#1598](https://github.com/MoonshotAI/kimi-code/pull/1598) [`4feca6b`](https://github.com/MoonshotAI/kimi-code/commit/4feca6b0738ee0120ab8bea04604b8f467a72e48) 感谢 [@kermanx](https://github.com/kermanx)! - Web 端:恢复临时子代理速率限制,且不再将其显示为会话错误。 - [#1635](https://github.com/MoonshotAI/kimi-code/pull/1635) [`e49b3b8`](https://github.com/MoonshotAI/kimi-code/commit/e49b3b877750ba5ca0ea80e154549d5b53455575) 感谢 [@sailist](https://github.com/sailist)! - 会话关闭时请求任务专属工作停止,尊重独立进程的 `background.keep_alive_on_exit` 设置,并在尝试强制停止前遵循 `background.kill_grace_period_ms` 宽限期。 - [#1629](https://github.com/MoonshotAI/kimi-code/pull/1629) [`0527ca2`](https://github.com/MoonshotAI/kimi-code/commit/0527ca2267f8cf355d0c158953f3dbfc0c9692ac) 感谢 [@sailist](https://github.com/sailist)! - 修复会话分叉时除对话日志外全部丢失的问题:分叉的会话现在会继承媒体附件、计划文件、后台任务输出和定时任务,且分叉失败时不再留下损坏的半份副本。 - [#1627](https://github.com/MoonshotAI/kimi-code/pull/1627) [`28e9dd4`](https://github.com/MoonshotAI/kimi-code/commit/28e9dd4d627f01143b715976cb071e7d16cd2001) 感谢 [@chengluyu](https://github.com/chengluyu)! - Web 端:用户从目标控件恢复后,继续执行被阻塞的目标。 - [#1631](https://github.com/MoonshotAI/kimi-code/pull/1631) [`2d874fb`](https://github.com/MoonshotAI/kimi-code/commit/2d874fbd73eb511e4ef4c8d4c88bd47e429580b2) 感谢 [@sailist](https://github.com/sailist)! - 修复竞态条件:服务器关闭期间正在进行的的心跳写入可能在实例文件被删除后立即重新创建该文件。 - [#1663](https://github.com/MoonshotAI/kimi-code/pull/1663) [`1294a0e`](https://github.com/MoonshotAI/kimi-code/commit/1294a0e1ad739151573163505f9c58afb2d543e4) 感谢 [@7Sageer](https://github.com/7Sageer)! - 修复 OAuth 登录在浏览器授权后挂起的问题,该问题发生在登录过程中提供商配置发生变化时。 - [#1657](https://github.com/MoonshotAI/kimi-code/pull/1657) [`32a89c3`](https://github.com/MoonshotAI/kimi-code/commit/32a89c36432f9aea452a697734102a7956e42e92) 感谢 [@RealKai42](https://github.com/RealKai42)! - 防止超大图像读取污染会话,并通过从提供商请求中移除不安全媒体来恢复现有的“请求过大”失败情况。 - [#1635](https://github.com/MoonshotAI/kimi-code/pull/1635) [`e49b3b8`](https://github.com/MoonshotAI/kimi-code/commit/e49b3b877750ba5ca0ea80e154549d5b53455575) 感谢 [@sailist](https://github.com/sailist)! - 再次按代理存储后台任务记录,以便在恢复时能找到旧版本写入的任务,且一个代理的恢复操作不再将另一个代理的任务标记为丢失。 - [#1632](https://github.com/MoonshotAI/kimi-code/pull/1632) [`a4aae87`](https://github.com/MoonshotAI/kimi-code/commit/a4aae87cd9a240d3567601ed1a9aefaab540b075) 感谢 [@sailist](https://github.com/sailist)! - 修复未配置 `base_url` 的提供商被拒绝的问题:Anthropic/OpenAI 及其他协议提供商现在会像以前一样回退到其官方默认端点。 - [#1588](https://github.com/MoonshotAI/kimi-code/pull/1588) [`2061590`](https://github.com/MoonshotAI/kimi-code/commit/20615902c2c3776d17c6c334cedec1c8723222b1) Thanks [@liruifengv](https://github.com/liruifengv)! - 修复从 /skill 和插件命令参数中粘贴的媒体内容丢失的问题。 - [#1588](https://github.com/MoonshotAI/kimi-code/pull/1588) [`2061590`](https://github.com/MoonshotAI/kimi-code/commit/20615902c2c3776d17c6c334cedec1c8723222b1) Thanks [@liruifengv](https://github.com/liruifengv)! - 修复在使用 Ctrl-S 进行引导时粘贴的图片丢失的问题。 - [#1629](https://github.com/MoonshotAI/kimi-code/pull/1629) [`0527ca2`](https://github.com/MoonshotAI/kimi-code/commit/0527ca2267f8cf355d0c158953f3dbfc0c9692ac) Thanks [@sailist](https://github.com/sailist)! - 修复 v2 引擎从未激活工具调用去重的问题:同一步骤中发出的相同工具调用不再重复执行,跨步骤重复发出的相同调用会再次收到递增的提醒。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) Thanks [@sailist](https://github.com/sailist)! - 修复实验性 v2 配置服务中的竞态条件,该问题可能导致刚写入的配置设置从配置响应中丢失。 - [#1614](https://github.com/MoonshotAI/kimi-code/pull/1614) [`3c0e368`](https://github.com/MoonshotAI/kimi-code/commit/3c0e368cbdfebff9632cffca3b18365615a146b8) Thanks [@chengluyu](https://github.com/chengluyu)! - 修复在 v2 代理仍在启动时提交首个目标模式提示词导致服务器崩溃的问题。 - [#1631](https://github.com/MoonshotAI/kimi-code/pull/1631) [`2d874fb`](https://github.com/MoonshotAI/kimi-code/commit/2d874fbd73eb511e4ef4c8d4c88bd47e429580b2) Thanks [@sailist](https://github.com/sailist)! - 当 OAuth 托管的模型在令牌刷新后持续返回 401 错误时,显示提供商的实际拒绝消息,而不是误导性的重新登录提示。 - [#1631](https://github.com/MoonshotAI/kimi-code/pull/1631) [`2d874fb`](https://github.com/MoonshotAI/kimi-code/commit/2d874fbd73eb511e4ef4c8d4c88bd47e429580b2) Thanks [@sailist](https://github.com/sailist)! - 重写重复工具调用提醒逻辑,改为引导代理执行其他操作而非禁止调用,并将已忽略的提问提示视为无回答,而非默认选项。 - [#1636](https://github.com/MoonshotAI/kimi-code/pull/1636) [`8027fe2`](https://github.com/MoonshotAI/kimi-code/commit/8027fe291b03fbfce6dc60aa06f8699ad0976ec5) Thanks [@sailist](https://github.com/sailist)! - 使文件工具能够在 v2 引擎(实验性)中访问工作目录之外的技能目录,并在 v2 打印模式及服务器的 skillDirs 选项中正确识别 --skillsDir 参数。 - [#1630](https://github.com/MoonshotAI/kimi-code/pull/1630) [`0303b82`](https://github.com/MoonshotAI/kimi-code/commit/0303b82c3e691836163ecf906febfb6324c81d74) Thanks [@sailist](https://github.com/sailist)! - 修复在 v2 服务器后端重新加载或恢复会话后,ReadMediaFile 结果丢失图片渲染的问题。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) Thanks [@sailist](https://github.com/sailist)! - 修复实验性 v2 引擎中的存储竞态条件,该问题可能导致在写入与压缩重叠时读取值失败。 - [#1601](https://github.com/MoonshotAI/kimi-code/pull/1601) [`dc309a7`](https://github.com/MoonshotAI/kimi-code/commit/dc309a7dfb38b6ef885b8ae80be51b49f8486207) Thanks [@kermanx](https://github.com/kermanx)! - web: 修复重新打开会话或会话列表重新加载(例如侧边栏搜索后)时上下文使用指示器归零的问题——现在保留缓存的实时使用情况,而非使用会话记录的全零占位符。 - [#1620](https://github.com/MoonshotAI/kimi-code/pull/1620) [`e91a616`](https://github.com/MoonshotAI/kimi-code/commit/e91a616f2196ab9ffc69b3fcc0f2015398d86bd4) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web: 修复会话快照重新同步后出现重复的用户消息气泡的问题。 - [#1672](https://github.com/MoonshotAI/kimi-code/pull/1672) [`88629ba`](https://github.com/MoonshotAI/kimi-code/commit/88629bac3add2a8a17ae8288ee4edbdc9313d55a) Thanks [@yicun](https://github.com/yicun)! - web: 修复在非回环服务器连接上上传并持久化的图片无法显示的问题。 - [#1609](https://github.com/MoonshotAI/kimi-code/pull/1609) [`e223549`](https://github.com/MoonshotAI/kimi-code/commit/e223549a79c80e442850947c0cf60d58b2d18667) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web: 修复页面在运行多步回合期间重新连接或刷新后,渲染出重复文本墙的问题。 - [#1611](https://github.com/MoonshotAI/kimi-code/pull/1611) [`32cbd0c`](https://github.com/MoonshotAI/kimi-code/commit/32cbd0cf6109f4f3f124e6e4ee7c4c87fa344247) Thanks [@chengluyu](https://github.com/chengluyu)! - web: 修复工作区选择器菜单宽度设置过窄导致内容显示不全的问题。 - [#1635](https://github.com/MoonshotAI/kimi-code/pull/1635) [`e49b3b8`](https://github.com/MoonshotAI/kimi-code/commit/e49b3b877750ba5ca0ea80e154549d5b53455575) Thanks [@sailist](https://github.com/sailist)! - 修复在恢复需要迁移 wire log 的会话时可能丢失记录的问题,并拒绝缺少版本信封的会话日志,而非静默误读。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) Thanks [@sailist](https://github.com/sailist)! - 修复会话启动后的第一个回合中 MCP 工具不可用的问题。 - [#1580](https://github.com/MoonshotAI/kimi-code/pull/1580) [`83370f1`](https://github.com/MoonshotAI/kimi-code/commit/83370f17ef38770561a421e3b3a15f6244219aa5) Thanks [@wszqkzqk](https://github.com/wszqkzqk)! - 修复在 Windows 上,当 git 来自原生 MSYS2 工具链(ucrt64/clang64/clangarm64)时 bash 自动检测失败的问题。 - [#1676](https://github.com/MoonshotAI/kimi-code/pull/1676) [`d1820ff`](https://github.com/MoonshotAI/kimi-code/commit/d1820ff0f853689e84b3e9d4c482532c481eb9bd) Thanks [@RealKai42](https://github.com/RealKai42)! - 跨提供商保留空白的模型推理块,以便多步工具调用能够继续。 - [#1669](https://github.com/MoonshotAI/kimi-code/pull/1669) [`490303d`](https://github.com/MoonshotAI/kimi-code/commit/490303db16ed374eae20572e4c6f9880db911547) Thanks [@chengluyu](https://github.com/chengluyu)! - web: 通过动画条交互、预算感知进度以及设计系统取消确认,优化目标模式控制。 - [#1597](https://github.com/MoonshotAI/kimi-code/pull/1597) [`d601847`](https://github.com/MoonshotAI/kimi-code/commit/d601847f22366b041d949d7c9f7857471be8970c) Thanks [@7Sageer](https://github.com/7Sageer)! - 在提供商注册表(api.json)和模型目录获取时发送 kimi-code-cli 的 User-Agent,以便注册表能够识别客户端版本。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) Thanks [@sailist](https://github.com/sailist)! - 修复连接到 v2 服务器的 web 客户端中,审批和问题提示无法实时显示的问题;此前它们仅在页面刷新后才会出现。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) Thanks [@sailist](https://github.com/sailist)! - 当技能解析失败时记录警告而非静默丢弃,并修复技能目录,使扫描到的技能根目录和策略跳过的技能能够正确报告。 - [#1589](https://github.com/MoonshotAI/kimi-code/pull/1589) [`f338fcd`](https://github.com/MoonshotAI/kimi-code/commit/f338fcdac4fa8d4235c44310953e5d512f6549fb) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web: 修复在子代理仍在运行时,页面刷新后 AgentSwarm 成员列表消失的问题。 - [#1591](https://github.com/MoonshotAI/kimi-code/pull/1591) [`83e1753`](https://github.com/MoonshotAI/kimi-code/commit/83e175399f4dc3dfc3bb478543ff5897a24dfa3d) Thanks [@liruifengv](https://github.com/liruifengv)! - 优化 TaskOutput 工具提示,避免对后台任务进行阻塞式等待。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) Thanks [@sailist](https://github.com/sailist)! - 为 v2 引擎遥测事件实施类型化注册表,并从出站遥测属性中脱敏 URL、令牌和文件路径。 - [#1624](https://github.com/MoonshotAI/kimi-code/pull/1624) [`3215129`](https://github.com/MoonshotAI/kimi-code/commit/321512986099037acb4b2677d4455db316d27b50) Thanks [@kermanx](https://github.com/kermanx)! - 修复实验性 v2 引擎在新建对话后立即发送首个提示词(例如在网页新建对话页面发送 /goal)时崩溃的问题:代理创建现在会加入进行中的引导流程而非失败,且 v2 代理生命周期被划分为专注存在、子代理和会话 MCP 领域。 - [#1637](https://github.com/MoonshotAI/kimi-code/pull/1637) [`0e0a6e9`](https://github.com/MoonshotAI/kimi-code/commit/0e0a6e9a5170c28c5e6809c1b2cf6d6f8904de73) Thanks [@sailist](https://github.com/sailist)! - 在 v2 引擎(实验性)的会话创建中支持调用方提供的 MCP 服务器配置,该配置将覆盖文件配置并位于插件服务器之下。 - [#1626](https://github.com/MoonshotAI/kimi-code/pull/1626) [`1c85f94`](https://github.com/MoonshotAI/kimi-code/commit/1c85f94472ead2746ad6860ec0e09f4384dd95ec) Thanks [@sailist](https://github.com/sailist)! - v2 引擎:通过 /api/v2 为原生客户端暴露提示词调度器,并添加实验性故障注入服务(KIMI_CODE_EXPERIMENTAL_FAULT_INJECTION),用于触发一次性提供商故障,从而端到端测试媒体降级/媒体剥离恢复重传。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) Thanks [@sailist](https://github.com/sailist)! - 为 v2 引擎的文件系统、存储和传输层引入分级错误分类法,将原始 OS 和解析失败转换为特定错误代码,而非通用内部错误。 - [#1626](https://github.com/MoonshotAI/kimi-code/pull/1626) [`1c85f94`](https://github.com/MoonshotAI/kimi-code/commit/1c85f94472ead2746ad6860ec0e09f4384dd95ec) Thanks [@sailist](https://github.com/sailist)! - v2 引擎:在所有数据摄入点拦截不支持的图片格式(AVIF、HEIC、BMP、TIFF、ICO),使其无法污染会话历史,并通过媒体剥离重传自动恢复提供商的图片格式拒绝。 - [#1626](https://github.com/MoonshotAI/kimi-code/pull/1626) [`1c85f94`](https://github.com/MoonshotAI/kimi-code/commit/1c85f94472ead2746ad6860ec0e09f4384dd95ec) Thanks [@sailist](https://github.com/sailist)! - v2 引擎:通过将旧媒体降级为文本标记并重传来恢复因提供商请求大小拒绝(HTTP 413)而失败的图片密集型会话;对超大的 WebP 图片进行重新编码而非直接透传;并在尺寸低于 1000px 时切换为 JPEG 以保持缩放后 PNG 的可读性。 - [#1613](https://github.com/MoonshotAI/kimi-code/pull/1613) [`b2daa40`](https://github.com/MoonshotAI/kimi-code/commit/b2daa405f075cb6847c0a313809b1bcac750b611) 感谢 [@7Sageer](https://github.com/7Sageer)! - 在 v2 引擎中支持 WebSearch 的 `services.moonshot_search` api-key 配置,与 v1 保持一致:该工具现在无需 OAuth 登录即可使用,且显式配置优先于 OAuth 派生的提供商。 - [#1590](https://github.com/MoonshotAI/kimi-code/pull/1590) [`8a4ee05`](https://github.com/MoonshotAI/kimi-code/commit/8a4ee05951ebe4f804fd1fb0989aaf44b3b7a3ed) 感谢 [@sailist](https://github.com/sailist)! - 修复在实验性 v2 引擎中,当 git 来自原生 MSYS2 工具链(ucrt64/clang64/clangarm64)时,Windows 上的 bash 自动检测问题。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) 感谢 [@sailist](https://github.com/sailist)! - 从实验性 v2 服务器发出的出站请求中携带 CLI 身份头(User-Agent 和设备标识),以匹配直接运行 CLI 的行为。 - [#1593](https://github.com/MoonshotAI/kimi-code/pull/1593) [`2185237`](https://github.com/MoonshotAI/kimi-code/commit/2185237c2f5c5fb3cc6b44c01ac158c6e2b81fe6) 感谢 [@kermanx](https://github.com/kermanx)! - 使用必需的 zod schema 声明 v2 引擎的 wire op 负载,并从 schema 派生其类型,在模型上声明 op,并将每种 op 类型注册用于回放分类。 - [#1441](https://github.com/MoonshotAI/kimi-code/pull/1441) [`ceb158d`](https://github.com/MoonshotAI/kimi-code/commit/ceb158dc54586f254819edbc83c27e21dca1ecf6) 感谢 [@sailist](https://github.com/sailist)! - 保持新代理引擎的会话与现有的会话回放兼容。 - [#1592](https://github.com/MoonshotAI/kimi-code/pull/1592) [`924d5c9`](https://github.com/MoonshotAI/kimi-code/commit/924d5c914143d178020c2dddc56906ce15088680) 感谢 [@wbxl2000](https://github.com/wbxl2000)! - web:在设置中显示已连接的后端引擎(v1 / v2),并在侧边栏品牌旁添加一个开发模式后端胶囊标签(pill),可在运行时切换两个引擎间的开发代理。 - [#1606](https://github.com/MoonshotAI/kimi-code/pull/1606) [`2da45fc`](https://github.com/MoonshotAI/kimi-code/commit/2da45fc419cf5285a9353df8690bba444037ffe4) 感谢 [@liruifengv](https://github.com/liruifengv)! - web:修复在会话目标处于活动状态时刷新页面后目标卡片消失的问题。 - [#1587](https://github.com/MoonshotAI/kimi-code/pull/1587) [`49a8c84`](https://github.com/MoonshotAI/kimi-code/commit/49a8c84a493610c2b2cc2c7da0a8ec0261d876db) 感谢 [@wbxl2000](https://github.com/wbxl2000)! - web:允许桌面端聊天中的宽 Markdown 表格宽度最大扩展至 1040px,每列上限为 700px,以便长单元格内容换行;表格经过对话大纲时暂时隐藏大纲;更宽的表格仍可在表格内部滚动。