← 返回更新日志

Gemini CLI v0.20.0

2025-12-09 · GitHub 原文
## 更新内容 * 修复 gemini cli 进程退出时的错误代码,由 @megha1188 在 https://github.com/google-gemini/gemini-cli/pull/13728 提交 * 版本更新至 0.20.0-nightly.20251126.d2a6cff4d,由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/13835 提交 * 提升请求令牌计算的准确性,由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/13824 提交 * 调整系统指令以适应 Gemini 3.0,确保 CLI 在调用工具前解释其操作,由 @silviojr 在 https://github.com/google-gemini/gemini-cli/pull/13810 提交 * 集成 Hook 工具执行功能,由 @Edilmo 在 https://github.com/google-gemini/gemini-cli/pull/9108 提交 * 在配置选项后添加对 MCP 服务器指令的支持,由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/13432 提交 * 更新交互式与非交互式模式的系统指令,由 @aishaneeshah 在 https://github.com/google-gemini/gemini-cli/pull/12315 提交 * 为 Link 命令添加同意标志,由 @kevinjwang1 在 https://github.com/google-gemini/gemini-cli/pull/13832 提交 * 在 McpClient 中注入 GoogleCredentialProvider 头部信息,由 @sai-sunder-s 在 https://github.com/google-gemini/gemini-cli/pull/13783 提交 * 实现面向策略驱动的模型回退机制,由 @adamfweidman 在 https://github.com/google-gemini/gemini-cli/pull/13781 提交 * 为 shell 命令添加可配置的非活动超时时间,由 @galz10 在 https://github.com/google-gemini/gemini-cli/pull/13531 提交 * 改进 API 密钥认证流程,由 @galz10 在 https://github.com/google-gemini/gemini-cli/pull/13829 提交 * 集成 Hook LLM 请求/响应功能,由 @Edilmo 在 https://github.com/google-gemini/gemini-cli/pull/9110 提交 * 在 ConfigInitDisplay 中显示等待中的 MCP 服务器,由 @werdnum 在 https://github.com/google-gemini/gemini-cli/pull/13721 提交 * 在 /stats 中添加剩余使用量限制显示,由 @sehoon38 在 https://github.com/google-gemini/gemini-cli/pull/13843 提交 * 将模型执行的 shell 分页器标准化为 'cat',由 @galz10 在 https://github.com/google-gemini/gemini-cli/pull/13878 提交 * 版本更新至 0.20.0-nightly.20251127.5bed97064,由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/13877 提交 * 恢复默认 LICENSE(撤销 #13449),由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/13876 提交 * 更新遥测:OTel API 响应事件包含完成原因,由 @kiranani 在 https://github.com/google-gemini/gemini-cli/pull/13849 提交 * Hook 功能全面集成测试,由 @Edilmo 在 https://github.com/google-gemini/gemini-cli/pull/9112 提交 * 修复会话浏览器测试并跳过 Hook 系统测试,由 @jackwotherspoon 在 https://github.com/google-gemini/gemini-cli/pull/14099 提交 * 为 ApiRequestEvents 添加语义化日志记录,由 @kiranani 在 https://github.com/google-gemini/gemini-cli/pull/13912 提交 * 在设置模式中添加对 $schema 属性的验证,由 @maryamariyan 在 https://github.com/google-gemini/gemini-cli/pull/13497 提交 * 修复 `/clear` 命令,在清除上下文窗口和屏幕的同时保留上箭头导航的输入历史记录,由 @korade-krushna 在 https://github.com/google-gemini/gemini-cli/pull/14182 提交 * 修复 Hook 运行器在写入 stdin 时处理 EPIPE 错误的问题,由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/14231 提交 * 修复:在默认非交互式模式下排除 web-fetch 工具执行,以避免 CLI 挂起,由 @MayV 在 https://github.com/google-gemini/gemini-cli/pull/14244 提交 * 始终使用 MCP 服务器指令,由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/14297 提交 * 按 Enter 键时自动执行简单的斜杠命令,由 @jackwotherspoon 在 https://github.com/google-gemini/gemini-cli/pull/13985 提交 * 版本更新至 0.20.0-nightly.20251201.2fe609cb6,由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/14304 提交 * 添加启动性能分析器以测量和记录应用程序初始化阶段,由 @kevin-ramdass 在 https://github.com/google-gemini/gemini-cli/pull/13638 提交 * 修复:避免在 `executor` 中使用有状态的工具,由 @joshualitt 在 https://github.com/google-gemini/gemini-cli/pull/14305 提交 * 添加内置节日主题 🎁,由 @jackwotherspoon 在 https://github.com/google-gemini/gemini-cli/pull/14301 提交 * 更新文档介绍中的目录;更新标题大小写以符合 Google 风格,由 @pcoet 在 https://github.com/google-gemini/gemini-cli/pull/13717 提交 * 紧急修复 - 处理 modelInfo 代理消息,由 @cocosheng-g 在 https://github.com/google-gemini/gemini-cli/pull/14315 提交 * 通过包装回退和单模型策略增强可用性路由,由 @adamfweidman 在 https://github.com/google-gemini/gemini-cli/pull/13874 提交 * 记录 #12122 的问题事件,由 @briandealwis 在 https://github.com/google-gemini/gemini-cli/pull/14092 提交 * 修复:移除 bug_report.yml 中的无效类型键,由 @fancive 在 https://github.com/google-gemini/gemini-cli/pull/13576 提交 * 更新截图,由 @Transient-Onlooker 在 https://github.com/google-gemini/gemini-cli/pull/13976 提交 * 修复发布周期(Nightly 部分)中的语法错误,由 @JuanCS-Dev 在 https://github.com/google-gemini/gemini-cli/pull/13866 提交 * 防止异步错误绕过 catch 处理程序,由 @amsminn 在 https://github.com/google-gemini/gemini-cli/pull/13714 提交 * 修复 zed 集成:从 acp 认证请求中移除额外字段,由 @marcocondrache 在 https://github.com/google-gemini/gemini-cli/pull/13646 提交 * 添加模型配置文档,由 @joshualitt 在 https://github.com/google-gemini/gemini-cli/pull/12967 提交 * 修复:错位的 Markdown 表格渲染,由 @dumbbellcode 在 https://github.com/google-gemini/gemini-cli/pull/8336 提交 * 更新 4 个文件,由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/13628 提交 * 修复:在 setup-github 命令中有条件地添加 set -eEuo pipefail,由 @Smetalo 在 https://github.com/google-gemini/gemini-cli/pull/8550 提交 * 修复:修复在渲染不同组件时更新组件的问题,由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/14319 提交 * 增加不稳定测试的超时时间,由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/14377 提交 * 移除对已删除的 kind/bug 标签的引用,由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/14383 提交 * 如果无法清理,则不使测试失败,由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/14389 提交 * 实现 JIT 上下文管理器及设置,由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/14324 提交 * 对 extensions-reload 集成测试使用轮询,由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/14391 提交 * 在 GEMINI.md 中添加文档指令,由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/14327 提交 * 隐藏没有用户消息的会话,由 @bl-ue 在 https://github.com/google-gemini/gemini-cli/pull/13994 提交 * 如果不在 "latest" npm 频道,则将 GitHub 发布标记为预发布版本,由 @ljxfstorm 在 https://github.com/google-gemini/gemini-cli/pull/7386 提交 * 修复:将 d284fa6 拣选到 release/v0.20.0-preview.0-pr-14545 [存在冲突],由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/14559 提交 * 修复:将 828afe1 拣选到 release/v0.20.0-preview.1-pr-14159 以修补版本 v0.20.0-preview.1 并创建版本 0.20.0-preview.2,由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/14733 提交 * 修复:将 171103a 拣选到 release/v0.20.0-preview.2-pr-14742 以修补版本 v0.20.0-preview.2 并创建版本 0.20.0-preview.5,由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/14752 提交 ## 新贡献者 * @aishaneeshah 在 https://github.com/google-gemini/gemini-cli/pull/12315 首次贡献 * @sai-sunder-s 在 https://github.com/google-gemini/gemini-cli/pull/13783 首次贡献 * @maryamariyan 在 https://github.com/google-gemini/gemini-cli/pull/13497 首次贡献 * @korade-krushna 在 https://github.com/google-gemini/gemini-cli/pull/14182 首次贡献 * @pcoet 在 https://github.com/google-gemini/gemini-cli/pull/13717 首次贡献 * @Transient-Onlooker 在 https://github.com/google-gemini/gemini-cli/pull/13976 首次贡献 * @JuanCS-Dev 在 https://github.com/google-gemini/gemini-cli/pull/13866 首次贡献 * @marcocondrache 在 https://github.com/google-gemini/gemini-cli/pull/13646 首次贡献 * @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/13628 首次贡献 **完整更新日志**: https://github.com/google-gemini/gemini-cli/compare/v0.19.4...v0.20.0