← 返回更新日志

Kimi Code @moonshot-ai/[email protected]

2026-07-01 · GitHub 原文
### 次要更新 - [#1204](https://github.com/MoonshotAI/kimi-code/pull/1204) [`5cb80ce`](https://github.com/MoonshotAI/kimi-code/commit/5cb80ce879406d239048c32d61202778cb860e58) - 插件现在可以通过清单中的 `commands` 字段提供斜杠命令,注册为 `<plugin>:<command>`,并通过 `$ARGUMENTS` 扩展进行调用。 - [#1214](https://github.com/MoonshotAI/kimi-code/pull/1214) [`86e0c92`](https://github.com/MoonshotAI/kimi-code/commit/86e0c9201ed58c7c1ce5543b1dfb47a4cf5117f6) - 重构对话压缩: - 仅保留最近的用戶提示词及单条用户角色摘要;丢弃助手和工具消息。 - 在发送前修复 `tool_use`/`tool_result` 的相邻关系,解决因工具调用及其结果不连续导致的严格提供商 HTTP 400 错误。 - 对严格提供商(Gemini/Vertex)合并连续的用户轮次,修复压缩后或工具结果后立即插入轮次时的 HTTP 400(“角色必须交替”)错误。 - 微压缩(Micro-compaction)现在默认关闭。 - [#1132](https://github.com/MoonshotAI/kimi-code/pull/1132) [`108299b`](https://github.com/MoonshotAI/kimi-code/commit/108299be3cdffc31a23f64efd3ff5ba50976b412) - 重构思考力度系统 ### 补丁更新 - [#1231](https://github.com/MoonshotAI/kimi-code/pull/1231) [`ceb27f5`](https://github.com/MoonshotAI/kimi-code/commit/ceb27f5e449e177493f320d90e292487a8fc3410) - 新增服务端键值存储 API,用于将 Web UI 偏好设置持久化到用户数据目录。 - [#1220](https://github.com/MoonshotAI/kimi-code/pull/1220) [`ec51324`](https://github.com/MoonshotAI/kimi-code/commit/ec51324230484f2ebaad1ab0aebf2e38f531d914) - 新增双击 Esc 快捷键以打开撤销选择器。在空闲状态下连续按两次 Esc 即可撤销。 - [#1223](https://github.com/MoonshotAI/kimi-code/pull/1223) [`80e6888`](https://github.com/MoonshotAI/kimi-code/commit/80e6888e34e4362247c0eac5b77340df014ba286) - 修复在斜杠命令参数内输入 `@` 文件提及时无法打开的问题。 - [#1233](https://github.com/MoonshotAI/kimi-code/pull/1233) [`020992c`](https://github.com/MoonshotAI/kimi-code/commit/020992c286f0f6bff6a038a7c7bd7e9db639e3c9) - 强制退出无头运行(`kimi -p`),防止运行残留的引用句柄使已完成运行存活至外部超时;并限制提示词清理操作,防止卡住的关闭步骤导致关机挂起。 - [#1225](https://github.com/MoonshotAI/kimi-code/pull/1225) [`659062d`](https://github.com/MoonshotAI/kimi-code/commit/659062d11cc272fe631fc6d4faf64d0e0b1a0142) - 在 Shell 模式(`!`)下输入 `/` 时显示文件路径补全。 - [#1236](https://github.com/MoonshotAI/kimi-code/pull/1236) [`bfe8e6a`](https://github.com/MoonshotAI/kimi-code/commit/bfe8e6ace3cda76b1991bf29c25b9444611d5512) - 修复 Web UI 中通过路径添加工作区时,若守护进程拒绝该路径会静默失败的问题;现在会显示错误提示而非显示损坏的工作区。 - [#1221](https://github.com/MoonshotAI/kimi-code/pull/1221) [`a3f9cec`](https://github.com/MoonshotAI/kimi-code/commit/a3f9cec8a975f11e37e992e42f954789ed394207) - 修复同一文件夹被多次注册时,Web 侧边栏显示重复工作区的问题。 - [#1241](https://github.com/MoonshotAI/kimi-code/pull/1241) [`8ac337a`](https://github.com/MoonshotAI/kimi-code/commit/8ac337a2b2ac800aa79a373459308abb6c9e63bb) - 防止格式错误的消息历史在严格提供商(Anthropic)上永久导致会话损坏。发送前会修复请求——关闭孤立工具调用并丢弃空/纯空白文本块——若提供商仍拒绝其结构,则使用符合传输协议的重新构建版本重试一次。 - [#1228](https://github.com/MoonshotAI/kimi-code/pull/1228) [`42e37eb`](https://github.com/MoonshotAI/kimi-code/commit/42e37eb898b722829d2ec83e909525ff18e336a5) - 将会话日志和 `KIMI_CODE_DEBUG=1` 输出中的 LLM 流式传输时间拆分为客户端与 API 服务端两部分,以便在不解析传输日志的情况下定位慢轮次。首字延迟(Time-to-first-token)拆分为 API 服务端部分(网络+服务器)和客户端部分(进程内请求构建);解码窗口拆分为等待服务器令牌的时间与客户端处理每个流式块的时间。 - [#1234](https://github.com/MoonshotAI/kimi-code/pull/1234) [`882cf35`](https://github.com/MoonshotAI/kimi-code/commit/882cf355a9cb45bb5b3424a27b953bde8e106bb0) - 在服务器支持之前,在 Web UI 中隐藏提供商管理对话框。 - [#1226](https://github.com/MoonshotAI/kimi-code/pull/1226) [`7f05f58`](https://github.com/MoonshotAI/kimi-code/commit/7f05f589e7bc77a2f26463a41317ff7087e3c3a0) - 为 Web 聊天添加 Mermaid 图表渲染功能。助手回复中的围栏 `mermaid` 代码块现在会渲染为图表。KaTeX 数学公式和 Mermaid 图表解析也运行在 Web Workers 中,以确保流式传输期间 UI 保持响应。 - [#1232](https://github.com/MoonshotAI/kimi-code/pull/1232) [`aa6b0d0`](https://github.com/MoonshotAI/kimi-code/commit/aa6b0d065ee888056c3812781483ddb74739897f) - 在 Web 设置中始终显示使用数据退出选项的开关,并附带更清晰的标签和描述。 - [#1234](https://github.com/MoonshotAI/kimi-code/pull/1234) [`882cf35`](https://github.com/MoonshotAI/kimi-code/commit/882cf355a9cb45bb5b3424a27b953bde8e106bb0) - 修复 Web 工作区重命名在页面刷新后未持久化的问题。