← 返回更新日志

Gemini CLI v0.40.0-preview.2 预发布

2026-04-23 · GitHub 原文
## 更新内容 * chore(release): 将版本升级至 0.40.0-nightly.20260414.g5b1f7375a,由 @gemini-cli-robot 提交于 https://github.com/google-gemini/gemini-cli/pull/25420 * fix(core): 修复流式传输期间额外的 OpenSSL 3.x SSL 错误重试问题 (#16075),由 @rcleveng 提交于 https://github.com/google-gemini/gemini-cli/pull/25187 * fix(core): 防止 YOLO 模式被降级,由 @galz10 提交于 https://github.com/google-gemini/gemini-cli/pull/25341 * feat: 将 ripgrep 二进制文件捆绑到 SEA 中以支持离线使用,由 @scidomino 提交于 https://github.com/google-gemini/gemini-cli/pull/25342 * v0.39.0-preview.0 的更新日志,由 @gemini-cli-robot 提交于 https://github.com/google-gemini/gemini-cli/pull/25417 * feat(test): 为性能测试添加大型对话场景,由 @cynthialong0-0 提交于 https://github.com/google-gemini/gemini-cli/pull/25331 * improve(core): 在提取技能前要求提供重复性证据,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25147 * test(evals): 添加子代理委托评估测试,由 @anj-s 提交于 https://github.com/google-gemini/gemini-cli/pull/24619 * feat: 添加 GitHub 色盲友好主题,由 @Z1xus 提交于 https://github.com/google-gemini/gemini-cli/pull/15504 * fix(core): 尊重 GOOGLE_GEMINI_BASE_URL 和 GOOGLE_VERTEX_BASE_URL 环境变量,由 @chrisjcthomas 提交于 https://github.com/google-gemini/gemini-cli/pull/25357 * fix(cli): 清理斜杠命令 IDE 监听器,由 @jasonmatthewsuhari 提交于 https://github.com/google-gemini/gemini-cli/pull/24397 * v0.38.0 的更新日志,由 @gemini-cli-robot 提交于 https://github.com/google-gemini/gemini-cli/pull/25470 * fix(evals): 针对 invoke_agent 遥测和项目范围内存更新评估测试,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25502 * v0.38.1 的更新日志,由 @gemini-cli-robot 提交于 https://github.com/google-gemini/gemini-cli/pull/25476 * feat(core): 将技能创建器集成到技能提取代理中,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25421 * feat(cli): 为技能命令提供默认提交后提示,由 @ruomengz 提交于 https://github.com/google-gemini/gemini-cli/pull/25327 * feat(core): 添加列出和读取 MCP 资源的工具,由 @ruomengz 提交于 https://github.com/google-gemini/gemini-cli/pull/25395 * fix(evals): 为 evals、integration-tests 和 memory-tests 添加类型检查覆盖率,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25480 * 使用 OSC 777 实现终端通知,由 @jackyliuxx 提交于 https://github.com/google-gemini/gemini-cli/pull/25300 * fix(extensions): 修复示例的打包问题,由 @abhipatel12 提交于 https://github.com/google-gemini/gemini-cli/pull/25542 * fix(cli): 在 /clear 时重置计划会话状态,由 @jasonmatthewsuhari 提交于 https://github.com/google-gemini/gemini-cli/pull/25515 * feat(core): 为 get-internal-docs 工具添加 .mdx 支持,由 @g-samroberts 提交于 https://github.com/google-gemini/gemini-cli/pull/25090 * docs(policy): 提及工作区策略已损坏,由 @6112 提交于 https://github.com/google-gemini/gemini-cli/pull/24367 * fix(core): 允许在沙箱中通过显式写入权限覆盖治理文件保护,由 @galz10 提交于 https://github.com/google-gemini/gemini-cli/pull/25338 * feat(sandbox): 优先从 $HOME/.gemini 解析自定义 seatbelt 配置文件,由 @mvanhorn 提交于 https://github.com/google-gemini/gemini-cli/pull/25427 * 减少空行,由 @gundermanc 提交于 https://github.com/google-gemini/gemini-cli/pull/25563 * fix(ui): 在对话框卸载时恢复预览主题,由 @JayadityaGit 提交于 https://github.com/google-gemini/gemini-cli/pull/22542 * fix(core): 修复 ShellExecutionConfig 展开问题并添加 ProjectRegistry 保存退避机制,由 @mahimashanware 提交于 https://github.com/google-gemini/gemini-cli/pull/25382 * feat(core): 为子代理禁用主题更新,由 @gundermanc 提交于 https://github.com/google-gemini/gemini-cli/pull/25567 * feat(core): 默认启用主题更新叙述并提升至通用功能,由 @gundermanc 提交于 https://github.com/google-gemini/gemini-cli/pull/25586 * docs: 使用带选项卡布局的 mdx 迁移安装和认证文档,由 @g-samroberts 提交于 https://github.com/google-gemini/gemini-cli/pull/25155 * feat(config): 将 memoryManager 标志拆分为 autoMemory,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25601 * fix(core): 允许 Cloud Shell 用户使用 PRO_MODEL_NO_ACCESS 实验功能,由 @sehoon38 提交于 https://github.com/google-gemini/gemini-cli/pull/25702 * fix(cli): 将缓慢的渲染延迟四舍五入以避免 OpenTelemetry 浮点警告,由 @scidomino 提交于 https://github.com/google-gemini/gemini-cli/pull/25709 * docs(tracker): 引入实验性任务跟踪器功能,由 @anj-s 提交于 https://github.com/google-gemini/gemini-cli/pull/24556 * docs(cli): 修复系统提示文档中 system.md 的大小写不一致问题,由 @Bodlux 提交于 https://github.com/google-gemini/gemini-cli/pull/25414 * feat(cli): 添加简化的 `gemini gemma` 本地模型设置流程,由 @Samee24 提交于 https://github.com/google-gemini/gemini-cli/pull/25498 * v0.38.2 的更新日志,由 @gemini-cli-robot 提交于 https://github.com/google-gemini/gemini-cli/pull/25593 * 修复:禁止通过工作区 .env 覆盖 IDE stdio(远程代码执行漏洞),由 @M0nd0R 提交于 https://github.com/google-gemini/gemini-cli/pull/25022 * feat(test): 重构内存使用测试,以使用 CLI 进程而非测试运行器的指标,由 @cynthialong0-0 提交于 https://github.com/google-gemini/gemini-cli/pull/25708 * feat(vertex): 添加 Vertex AI 请求路由设置,由 @gordonhwc 提交于 https://github.com/google-gemini/gemini-cli/pull/25513 * 修复/允许会话持久化,由 @ahsanfarooq210 提交于 https://github.com/google-gemini/gemini-cli/pull/25176 * 允许 GEMINI_API_KEY 包含点号,由 @DKbyo 提交于 https://github.com/google-gemini/gemini-cli/pull/25497 * feat(telemetry): 添加专门启用跟踪的标志,由 @spencer426 提交于 https://github.com/google-gemini/gemini-cli/pull/25343 * fix(core): 解决嵌套计划目录重复和相对路径策略问题,由 @mahimashanware 提交于 https://github.com/google-gemini/gemini-cli/pull/25138 * feat: 通过基于监视器的更新在 @ 推荐中检测新文件,由 @prassamin 提交于 https://github.com/google-gemini/gemini-cli/pull/25256 * fix(cli): 在 shell 命令包装中使用换行符以避免破坏 heredocs,由 @cocosheng-g 提交于 https://github.com/google-gemini/gemini-cli/pull/25537 * fix(cli): 确保所有主题的对话框标签都能正确渲染,由 @JayadityaGit 提交于 https://github.com/google-gemini/gemini-cli/pull/24599 * fix(core): 在 Bun 中禁用分离模式以防止子进程立即收到 SIGHUP 信号,由 @euxaristia 提交于 https://github.com/google-gemini/gemini-cli/pull/22620 * feat: 添加 /new 作为 /clear 的别名并优化命令描述,由 @ved015 提交于 https://github.com/google-gemini/gemini-cli/pull/17865 * fix(cli): 在 ACP 会话中启动自动内存功能,由 @jasonmatthewsuhari 提交于 https://github.com/google-gemini/gemini-cli/pull/25626 * fix(core): 移除刷新代理时的重复初始化调用,由 @adamfweidman 提交于 https://github.com/google-gemini/gemini-cli/pull/25670 * test(e2e): 将默认集成测试设置为 Flash Preview,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25753 * refactor(memory): 用跨四层的提示驱动内存编辑替换 MemoryManagerAgent,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25716 * fix(cli): 修复 "/clear (new)" 命令,由 @mini2s 提交于 https://github.com/google-gemini/gemini-cli/pull/25801 * fix(core): 为 IDE 客户端使用动态 CLI 版本而非硬编码的 '1.0.0',由 @thekishandev 提交于 https://github.com/google-gemini/gemini-cli/pull/24414 * fix(core): 处理忽略文件解析中的换行符,由 @xoma-zver 提交于 https://github.com/google-gemini/gemini-cli/pull/23895 * 修复/命令注入 shell,由 @Famous077 提交于 https://github.com/google-gemini/gemini-cli/pull/24170 * fix(ui): 移除输入的背景颜色,由 @devr0306 提交于 https://github.com/google-gemini/gemini-cli/pull/25339 * fix(devtools): 减少内存使用并延迟连接,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/24496 * fix(core): 在内存和摘要服务中支持 jsonl 会话日志,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25816 * fix(release): 从 npm tarballs 中排除 ripgrep 二进制文件,由 @SandyTao520 提交于 https://github.com/google-gemini/gemini-cli/pull/25841 ## 新贡献者 * @rcleveng 在 https://github.com/google-gemini/gemini-cli/pull/25187 中完成了首次贡献 * @Z1xus 在 https://github.com/google-gemini/gemini-cli/pull/15504 中完成了首次贡献 * @jackyliuxx 在 https://github.com/google-gemini/gemini-cli/pull/25300 中完成了首次贡献 * @6112 在 https://github.com/google-gemini/gemini-cli/pull/24367 中完成了首次贡献 * @mvanhorn 在 https://github.com/google-gemini/gemini-cli/pull/25427 中完成了首次贡献 * @Bodlux 在 https://github.com/google-gemini/gemini-cli/pull/25414 中完成了首次贡献 * @M0nd0R 在 https://github.com/google-gemini/gemini-cli/pull/25022 中完成了首次贡献 * @gordonhwc 在 https://github.com/google-gemini/gemini-cli/pull/25513 中完成了首次贡献 * @ahsanfarooq210 在 https://github.com/google-gemini/gemini-cli/pull/25176 中完成了首次贡献 * @DKbyo 在 https://github.com/google-gemini/gemini-cli/pull/25497 中完成了首次贡献 * @prassamin 在 https://github.com/google-gemini/gemini-cli/pull/25256 中完成了首次贡献 * @mini2s 在 https://github.com/google-gemini/gemini-cli/pull/25801 中完成了首次贡献 * @thekishandev 在 https://github.com/google-gemini/gemini-cli/pull/24414 中完成了首次贡献 * @xoma-zver 在 https://github.com/google-gemini/gemini-cli/pull/23895 中完成了首次贡献 **完整更新日志**:https://github.com/google-gemini/gemini-cli/compare/v0.39.0-preview.2...v0.40.0-preview.2