← 返回更新日志

Gemini CLI v0.30.0

2026-02-25 · GitHub 原文
## 变更内容 * feat(ux): 由 @devr0306 在 https://github.com/google-gemini/gemini-cli/pull/18240 为 markdown 表格添加了文本换行功能 * Revert "fix(mcp): 确保 MCP 传输关闭以防止内存泄漏" 由 @skeshive 在 https://github.com/google-gemini/gemini-cli/pull/18771 * chore(release): 由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/18772 将版本提升至 0.30.0-nightly.20260210.a2174751d * chore: 由 @adamfweidman 在 https://github.com/google-gemini/gemini-cli/pull/18762 清理未使用的依赖项并在 packages/core 中添加未列出的依赖项 * chore(core): 由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/18605 更新 activate_skill 提示措辞以更直接 * 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/18510 向对话框添加自动配置内存使用设置 * fix(core): 由 @braddux 在 https://github.com/google-gemini/gemini-cli/pull/18506 防止策略持久化中的竞态条件 * fix(evals): 由 @Abhijit-2592 在 https://github.com/google-gemini/gemini-cli/pull/18777 防止分层内存测试中的误报 * test(evals): 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18786 由于不可靠性,将所有 `save_memory` 评估标记为 `USUALLY_PASSES` * feat(cli): 由 @LyalinDotCom 在 https://github.com/google-gemini/gemini-cli/pull/18562 添加设置以隐藏快捷键提示 UI * feat(core): 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18759 正式化 5 阶段顺序规划工作流 * 由 @gundermanc 在 https://github.com/google-gemini/gemini-cli/pull/18767 为搜索结果引入限制。 * fix(cli): 由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/18795 允许在通过闪烁自动打开后关闭调试控制台 * feat(masking): 由 @abhipatel12 在 https://github.com/google-gemini/gemini-cli/pull/18564 默认启用工具输出掩码 * perf(ui): 由 @devr0306 在 https://github.com/google-gemini/gemini-cli/pull/18770 通过记忆样式字符优化表格渲染 * feat: 由 @jackwotherspoon 在 https://github.com/google-gemini/gemini-cli/pull/18741 在 ask-user 工具中支持多行文本回答 * perf(cli): 由 @mattKorwel 在 https://github.com/google-gemini/gemini-cli/pull/18663 截断大型调试日志并限制消息历史 * fix(core): 由 @LyalinDotCom 在 https://github.com/google-gemini/gemini-cli/pull/18586 在配置的服务器被跳过时完成 MCP 发现 * fix(core): 由 @sehoon38 在 https://github.com/google-gemini/gemini-cli/pull/18793 缓存 CLI 版本以确保会话期间的一致性 * fix(cli): 由 @braddux 在 https://github.com/google-gemini/gemini-cli/pull/18704 解决 shpool 中的双重渲染并修复 vscode lint 警告 * feat(plan): 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18825 记录和验证计划模式策略覆盖 * 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/18421 修复按任意键退出选择模式。 * fix(cli): 由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/18829 更新 F12 行为以仅在浏览器失败时打开抽屉 * feat(plan): 由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/18817 允许在计划模式下启用技能 * docs(plan): 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18827 添加计划模式工具文档 * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/18822 移除扩展设置文档中的实验性说明 * 由 @gundermanc 在 https://github.com/google-gemini/gemini-cli/pull/18780 更新提示和 grep 工具定义以限制上下文大小 * docs(plan): 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18830 添加 `ask_user` 工具文档 * 由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/18840 还原意外的凭据泄露 * feat(core): 由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/18773 将内部实用程序模型更新为 Gemini 3 * feat(a2a): 由 @adamfweidman 在 https://github.com/google-gemini/gemini-cli/pull/18653 添加用于身份验证凭据解析的值解析器 * 由 @devr0306 在 https://github.com/google-gemini/gemini-cli/pull/18848 移除 getPlainTextLength * 由 @gundermanc 在 https://github.com/google-gemini/gemini-cli/pull/18846 更多 grep 提示调整 * refactor(cli): 由 @psinha40898 在 https://github.com/google-gemini/gemini-cli/pull/14915 响应式 useSettingsStore 钩子 * fix(mcp): 由 @richieforeman 在 https://github.com/google-gemini/gemini-cli/pull/18832 确保 stdio MCP 服务器执行时填充 `GEMINI_CLI=1` 环境变量。 * fix(core): 由 @galz10 在 https://github.com/google-gemini/gemini-cli/pull/18855 改进标志和查询参数的无头模式检测 * refactor(cli): 由 @abhipatel12 在 https://github.com/google-gemini/gemini-cli/pull/18566 简化 UI 并移除遗留的内联工具确认逻辑 * feat(cli): 由 @Abhijit-2592 在 https://github.com/google-gemini/gemini-cli/pull/18508 弃用 --allowed-tools 和 excludeTools,转而使用策略引擎 * fix(workflows): 由 @bdmorgan 在 https://github.com/google-gemini/gemini-cli/pull/18869 改进自动化 PR 操作中的维护者检测 * refactor(cli): 由 @abhipatel12 在 https://github.com/google-gemini/gemini-cli/pull/18567 合并 useToolScheduler 并删除遗留实现 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/18819 更新 v0.28.0 和 v0.29.0-preview0 的更新日志 * fix(core): 由 @mattKorwel 在 https://github.com/google-gemini/gemini-cli/pull/18870 确保无论 tools.allowed 如何都注册子代理 * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/17890 当与扩展命令冲突时显示通知 * fix(cli): 由 @LyalinDotCom 在 https://github.com/google-gemini/gemini-cli/pull/18583 在热键和活动状态下 dismissing '?' 快捷键帮助 * fix(core): 由 @Abhijit-2592 在 https://github.com/google-gemini/gemini-cli/pull/18882 优先处理条件策略规则并强化计划模式 * feat(core): 由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/18799 为代理执行优化计划模式系统提示 * feat(plan): 由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/18820 创建 `AskUser` 工具使用情况的指标 * feat(cli): 由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/18931 支持 Ctrl-Z 挂起 * fix(github-actions): 由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/18794 使用机器人 PAT 进行发布创建以触发发行说明 * feat: 由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/18876 添加严格的安全带配置文件并移除不可用的封闭配置文件 * chore: 由 @adamfweidman 在 https://github.com/google-gemini/gemini-cli/pull/18916 清理未使用的依赖项并在 packages/a2a-server 中添加未列出的依赖项 * fix(plan): 由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/18757 按会话隔离计划文件 * fix: 由 @jackwotherspoon 在 https://github.com/google-gemini/gemini-cli/pull/18938 原始 markdown 模式中的字符截断 * feat(cli): 由 @LyalinDotCom 在 https://github.com/google-gemini/gemini-cli/pull/18683 原型化干净 UI 切换和最小模式渗透 * ui(polish) 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/18802 混合背景颜色与主题 * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/18838 向后退设置和扩展添加通用可搜索列表 * feat(ui): 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18943 使 `AskUser` 配色方案与 UX 规范对齐 * 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18954 从 UI 中隐藏 AskUser 工具验证错误(代理自我纠正) * bug(cli) 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/18958 修复由于 AppContainer 持续初始化导致的闪烁 * feat(admin): 由 @skeshive 在 https://github.com/google-gemini/gemini-cli/pull/18644 添加管理员控制文档 * feat(cli): 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/18887 在备用缓冲区模式外禁用 ctrl-s 快捷键 * fix(vim): 由 @ppgranger 在 https://github.com/google-gemini/gemini-cli/pull/18755 修复感觉(更)完整的 vim 支持 * feat(policy): 由 @allenhutchison 在 https://github.com/google-gemini/gemini-cli/pull/18500 添加用户定义策略的 --policy 标志 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/18823 更新安装指南 * refactor(core): 由 @aishaneeshah 在 https://github.com/google-gemini/gemini-cli/pull/18944 集中工具定义(第 1 组:替换、搜索、grep) * refactor(cli): 由 @abhipatel12 在 https://github.com/google-gemini/gemini-cli/pull/18569 完成事件驱动转换并移除交互桥 * 由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/18965 修复拖放转义 * feat(sdk): 由 @mbleigh 在 https://github.com/google-gemini/gemini-cli/pull/18861 SDK 的初始程序包引导 * feat(sdk): 由 @mbleigh 在 https://github.com/google-gemini/gemini-cli/pull/18862 为 SDK 工具调用实现 SessionContext * fix(plan): 由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/18959 使 AskUser 工具中的问题类型成为必需 * fix(core): 由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/18976 确保 --yolo 不强制无头模式 * refactor(core): 由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/18998 采用 `CoreToolCallStatus` 枚举以提高类型安全性 * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/18957 为团队启用 CLI 中的扩展管理命令 * 由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/18970 调整 lint 规则以避免不必要的警告。 * fix(vscode): 由 @ehedlund 在 https://github.com/google-gemini/gemini-cli/pull/19006 解决不安全的类型断言 lint 错误 * 由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/19015 移除不必要的 eslint 配置文件 * fix(core): 由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/18975 防止具有长共享前缀的列表中的循环检测误报 * feat(core): 由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/19016 在使用无法识别的模型进行聊天时回退到 chat-base * docs: 由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/19027 修复策略引擎中不一致的 commandRegex 示例 * fix(plan): 由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/18955 即使在代理思考时也在 UI 中持久化批准模式 * feat(sdk): 由 @mbleigh 在 https://github.com/google-gemini/gemini-cli/pull/18863 实现动态系统指令 * Docs: 由 @jkcinouye 在 https://github.com/google-gemini/gemini-cli/pull/18403 刷新文档以组织和标准化参考资料。 * fix windows escaping (and broken tests) 由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/19011 * refactor: 由 @jerop 在 https://github