← 返回更新日志

Kimi Code @moonshot-ai/[email protected]

2026-07-15 · GitHub 原文
### 补丁更新 - [#1704](https://github.com/MoonshotAI/kimi-code/pull/1704) [`38a2363`](https://github.com/MoonshotAI/kimi-code/commit/38a2363a006d8ed32ff6100ccff2dc7d1a70b2b0) Thanks [@sailist](https://github.com/sailist)! - 统一各引擎的打印模式运行生命周期:`print_background_mode` 和 `print_max_turns` 现在对实验引擎中的 `kimi -p` 生效,具有与默认引擎相同的退出/排空/引导语义和默认值,且 `kimi -p "/goal ..."` 现在会保持存活直到目标达到终止状态,而不是在第一次交互轮次后退出。 - [#1704](https://github.com/MoonshotAI/kimi-code/pull/1704) [`38a2363`](https://github.com/MoonshotAI/kimi-code/commit/38a2363a006d8ed32ff6100ccff2dc7d1a70b2b0) Thanks [@sailist](https://github.com/sailist)! - 统一各引擎的子代理超时时间:固定 2 小时默认值,可通过 `config.toml` 中的 `[subagent] timeout_ms` 或 `KIMI_SUBAGENT_TIMEOUT_MS` 环境变量覆盖。 - [#1727](https://github.com/MoonshotAI/kimi-code/pull/1727) [`286d3e7`](https://github.com/MoonshotAI/kimi-code/commit/286d3e7aca40a778cc4136eb377e14f14c70141c) Thanks [@liruifengv](https://github.com/liruifengv)! - 新增内置 `check-kimi-code-docs` 技能,可根据官方文档(附带来源链接)回答 Kimi Code 产品相关问题(CLI 使用、配置、会员、错误代码)。它会在遇到产品问题时自动触发,也可运行 `/check-kimi-code-docs` 手动执行。 - [#1707](https://github.com/MoonshotAI/kimi-code/pull/1707) [`8490c3e`](https://github.com/MoonshotAI/kimi-code/commit/8490c3e36b6a6cc3ba5c0f15d93b87347ce23878) Thanks [@sailist](https://github.com/sailist)! - 在会话网络日志的 LLM 请求追踪中,增加压缩重试期间丢弃的消息数量。 - [#1740](https://github.com/MoonshotAI/kimi-code/pull/1740) [`a74ab44`](https://github.com/MoonshotAI/kimi-code/commit/a74ab44ac7d5656e2dd9cf93b8e484936b05a0c8) Thanks [@sailist](https://github.com/sailist)! - 将默认的每步 LLM 重试预算从 3 次增加到 10 次,以便在交互轮次失败前,对临时性提供商故障(429 / 过载)进行指数退避重试,持续数分钟。可通过 `config.toml` 中的 `loop_control.max_retries_per_step` 进行调整。 - [#1707](https://github.com/MoonshotAI/kimi-code/pull/1707) [`8490c3e`](https://github.com/MoonshotAI/kimi-code/commit/8490c3e36b6a6cc3ba5c0f15d93b87347ce23878) Thanks [@sailist](https://github.com/sailist)! - 将动态工具加载模型能力从 `select_tools` 重命名为 `dynamically_loaded_tools`,以匹配模型目录词汇表;`select_tools` 工具和 `tool-select` 标志保持不变。 - [#1698](https://github.com/MoonshotAI/kimi-code/pull/1698) [`722694a`](https://github.com/MoonshotAI/kimi-code/commit/722694adf99c53dc608d417ea6d8c90a5712c33f) Thanks [@chengluyu](https://github.com/chengluyu)! - 在模型或工具工作仍在运行时,严格执行目标实际耗时预算。 - [#1730](https://github.com/MoonshotAI/kimi-code/pull/1730) [`72f425e`](https://github.com/MoonshotAI/kimi-code/commit/72f425e18d0264010e1442af67ee8d9acf5f0659) Thanks [@wbxl2000](https://github.com/wbxl2000)! - 修复 Gemini 协议模型跨交互轮次的调用 ID 冲突问题,该问题会导致 Web UI 中将多个独立的 Swarm 运行合并为同一张卡片。 - [#1695](https://github.com/MoonshotAI/kimi-code/pull/1695) [`5c0f17c`](https://github.com/MoonshotAI/kimi-code/commit/5c0f17cfcf99c27eb697be11ae9b61243d993e4a) Thanks [@chengluyu](https://github.com/chengluyu)! - 在崩溃恢复期间保留活跃目标的已用时间。 - [#1743](https://github.com/MoonshotAI/kimi-code/pull/1743) [`481b28b`](https://github.com/MoonshotAI/kimi-code/commit/481b28b8f4d527c43c640c4d742c52aa006c3bb0) Thanks [@chengluyu](https://github.com/chengluyu)! - 修正无法暂停或恢复目标时显示的引导文本。 - [#1692](https://github.com/MoonshotAI/kimi-code/pull/1692) [`e53cd79`](https://github.com/MoonshotAI/kimi-code/commit/e53cd799572db6b2c73f6938703d586b83013cec) Thanks [@chengluyu](https://github.com/chengluyu)! - 允许目标在交互轮次预算停止进一步工作前,使用所有已配置的交互轮次。 - [#1719](https://github.com/MoonshotAI/kimi-code/pull/1719) [`b24a347`](https://github.com/MoonshotAI/kimi-code/commit/b24a347e20a3efa7bba948316784a76439ed7cf5) Thanks [@wbxl2000](https://github.com/wbxl2000)! - Web 端:在 v2 后端上刷新页面后,恢复 AgentSwarm 成员列表。 - [#1704](https://github.com/MoonshotAI/kimi-code/pull/1704) [`38a2363`](https://github.com/MoonshotAI/kimi-code/commit/38a2363a006d8ed32ff6100ccff2dc7d1a70b2b0) Thanks [@sailist](https://github.com/sailist)! - 修复同一台机器上新构建创建的文件无法在旧 CLI 版本中打开的问题;新会话将以兼容格式写入,现有会话在首次打开时会自动修复。 - [#1708](https://github.com/MoonshotAI/kimi-code/pull/1708) [`ddfdfb0`](https://github.com/MoonshotAI/kimi-code/commit/ddfdfb0b09b59d95888eca7e9ddb7bb63be5e204) Thanks [@wbxl2000](https://github.com/wbxl2000)! - 修复子代理完成被错误标记为会话交互轮次完成的问题,该问题会导致在主交互轮次仍在运行时触发过早的完成通知、提示音和未读标记。 - [#1714](https://github.com/MoonshotAI/kimi-code/pull/1714) [`20b6972`](https://github.com/MoonshotAI/kimi-code/commit/20b69724aafc8fb0b56a414988eb762a8b8a3ed1) Thanks [@wbxl2000](https://github.com/wbxl2000)! - Web 端:修复当 Web UI 通过纯 HTTP 提供服务时代码块复制按钮失效的问题。 - [#1643](https://github.com/MoonshotAI/kimi-code/pull/1643) [`d8d4e8c`](https://github.com/MoonshotAI/kimi-code/commit/d8d4e8ceb55d7a5cae7ce9b579996c9ff5601914) Thanks [@wbxl2000](https://github.com/wbxl2000)! - Web 端:防止标签页进入后台后长流式响应停滞。 - [#1715](https://github.com/MoonshotAI/kimi-code/pull/1715) [`de493ae`](https://github.com/MoonshotAI/kimi-code/commit/de493aeec973623bc0e258d6598f6d9215693a5f) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web:在最小化的计划审查和问题卡片上,将展开按钮的图标改为向上箭头,使其与卡片展开的方向一致。 - [#1641](https://github.com/MoonshotAI/kimi-code/pull/1641) [`b6ae0a1`](https://github.com/MoonshotAI/kimi-code/commit/b6ae0a1054635fc71efde61dafa03da8a8b0c4c8) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web:显示会话列表加载失败的情况,同时保留仍可用的会话不被丢弃。 - [#1719](https://github.com/MoonshotAI/kimi-code/pull/1719) [`b24a347`](https://github.com/MoonshotAI/kimi-code/commit/b24a347e20a3efa7bba948316784a76439ed7cf5) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web:当子代理仍在运行时,默认展开 AgentSwarm 卡片。 - [#1693](https://github.com/MoonshotAI/kimi-code/pull/1693) [`7de218a`](https://github.com/MoonshotAI/kimi-code/commit/7de218a909d8f3e676ea3c160834090c9f19ca54) Thanks [@chengluyu](https://github.com/chengluyu)! - web:选择“恢复”时继续执行暂停的目标。 - [#1700](https://github.com/MoonshotAI/kimi-code/pull/1700) [`3107f96`](https://github.com/MoonshotAI/kimi-code/commit/3107f963a532de88d0affd0a08c60749455c5013) Thanks [@chengluyu](https://github.com/chengluyu)! - 防止被替换目标的延迟活动更改或消耗替换目标的预算。 - [#1459](https://github.com/MoonshotAI/kimi-code/pull/1459) [`6eb8e13`](https://github.com/MoonshotAI/kimi-code/commit/6eb8e13417f28a553b4183f113e5b96eb31e4211) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web:修复移动端安全区域处理问题,包括 iOS 上输入框悬浮于屏幕键盘上方、横屏边距翻倍、PWA 顶部栏位于刘海下方,以及输入框放大时与提示框重叠等问题。 - [#1696](https://github.com/MoonshotAI/kimi-code/pull/1696) [`b781e8c`](https://github.com/MoonshotAI/kimi-code/commit/b781e8cbcfac2cd0e73e3b1b79fa3386c632fa5b) Thanks [@chengluyu](https://github.com/chengluyu)! - 当自动目标续接达到预算上限或报告阻塞问题时,保留最终状态消息。 - [#1722](https://github.com/MoonshotAI/kimi-code/pull/1722) [`3703d03`](https://github.com/MoonshotAI/kimi-code/commit/3703d0346e79e42f18b5097f5606e6ef7b0ff2dd) Thanks [@sailist](https://github.com/sailist)! - 在打印模式(`kimi -p`)下,默认在后台任务挂起时保持运行状态,并将每次完成结果作为新回合反馈给主代理。等待上限和回合数限制实际上已解除,子代理超时时间设为 72 小时。设置 `print_background_mode = "exit"`(或 `"drain"`)可恢复之前单回合后退出的行为。 - [#1737](https://github.com/MoonshotAI/kimi-code/pull/1737) [`5d6ff02`](https://github.com/MoonshotAI/kimi-code/commit/5d6ff022b1a3732cf0b12d1a87497870def52c0c) Thanks [@sailist](https://github.com/sailist)! - 在打印模式(`kimi -p`)下,后台 Bash 任务和子代理默认不再设置超时——它们将持续运行直至完成或被模型停止,前台 Bash 命令超时时将移至后台且不再设置新的截止时间。交互式默认值保持不变;可通过 `[background]` 下的 `bash_task_timeout_s` 或 `[subagent]` 下的 `timeout_ms`(`0` 表示无超时)按模式调整。 - [#1697](https://github.com/MoonshotAI/kimi-code/pull/1697) [`2bf009f`](https://github.com/MoonshotAI/kimi-code/commit/2bf009fe27d1b0259e90f285e94264a8bf6b5832) Thanks [@chengluyu](https://github.com/chengluyu)! - 一致性地拒绝子代理的目标请求,而不是启动它们无法完成的目标。 - [#1711](https://github.com/MoonshotAI/kimi-code/pull/1711) [`9eff230`](https://github.com/MoonshotAI/kimi-code/commit/9eff230f976c6bdcc757678293276d8dec013d8) Thanks [@wbxl2000](https://github.com/wbxl2000)! - 在 Web UI 服务器中记录失败的请求、WebSocket 认证拒绝、关闭操作以及关键操作(中止、取消、审批、配置更改),以便通过日志诊断守护进程问题。 - [#1704](https://github.com/MoonshotAI/kimi-code/pull/1704) [`38a2363`](https://github.com/MoonshotAI/kimi-code/commit/38a2363a006d8ed32ff6100ccff2dc7d1a70b2b0) Thanks [@sailist](https://github.com/sailist)! - 修复 `kimi server` 在元数据中报告内部服务器包版本而非 CLI 版本的问题;Web UI 设置现在显示 CLI 版本。 - [#1741](https://github.com/MoonshotAI/kimi-code/pull/1741) [`8a3f1ff`](https://github.com/MoonshotAI/kimi-code/commit/8a3f1ffa6fbd7855fd0b10d96587afc6b690ebe3) Thanks [@chengluyu](https://github.com/chengluyu)! - web:修复当第一条消息为技能斜杠命令时未生成会话标题的问题。 - [#1694](https://github.com/MoonshotAI/kimi-code/pull/1694) [`513f374`](https://github.com/MoonshotAI/kimi-code/commit/513f374aa08bd86b428f62697c1ca12594d533e9) Thanks [@chengluyu](https://github.com/chengluyu)! - 在会话恢复期间拒绝格式错误的持久化目标记录。 - [#1704](https://github.com/MoonshotAI/kimi-code/pull/1704) [`38a2363`](https://github.com/MoonshotAI/kimi-code/commit/38a2363a006d8ed32ff6100ccff2dc7d1a70b2b0) Thanks [@sailist](https://github.com/sailist)! - web:重新加载会话后,在聊天记录中显示每条消息的实际发送时间,而非会话创建时间。 - [#1711](https://github.com/MoonshotAI/kimi-code/pull/1711) [`9eff230`](https://github.com/MoonshotAI/kimi-code/commit/9eff230f976c6bdcc757678293276d8dec013d8) Thanks [@wbxl2000](https://github.com/wbxl2000)! - web:当停止会话、归档或切换模式等操作失败时,显示服务器错误详情而非静默失败,并将每次操作失败记录到控制台和导出的 Web 日志中。 - [#1701](https://github.com/MoonshotAI/kimi-code/pull/1701) [`07c3632`](https://github.com/MoonshotAI/kimi-code/commit/07c3632415fa77972c49c39d7171ee5a4790bd01) 感谢 [@sailist](https://github.com/sailist)!- 保持工作区目录的完整性和持久性:创建会话时会将其目录注册为工作区;服务器在启动时会根据会话历史补全缺失的工作区;被移除的工作区在重启后不会再重新出现。