← 返回更新日志

Gemini CLI v0.31.0-preview.0 预发布

2026-02-25 · GitHub 原文
## 更新内容 * 由 @gundermanc 在 https://github.com/google-gemini/gemini-cli/pull/19240 中实现范围读取、有限搜索和模糊编辑改进 * 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/19266 中修复底部边框颜色 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/19363 中修复发行说明生成器 * test(evals):由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/19172 中添加工具输出掩码的行为测试 * docs:由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/19377 中澄清 GEMINI.md 中的预检说明 * feat(cli):由 @Mag1ck 在 https://github.com/google-gemini/gemini-cli/pull/16285 中添加退出时的 gemini --resume 提示 * fix:由 @jackwotherspoon 在 https://github.com/google-gemini/gemini-cli/pull/19017 中优化 ask_user 对话框的高度计算 * feat(cli):由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/19300 中添加 Alt+D 前向单词删除 * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/19455 中禁用失败的评估测试 * fix(cli):由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/19369 中在 ToolActionsContext 中支持遗留的 onConfirm 回调 * chore(deps):由 @dependabot[bot] 在 https://github.com/google-gemini/gemini-cli/pull/19367 中将 tar 从 7.5.7 升级至 7.5.8 * fix(plan):由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/19439 中允许在计划实验设置未启用但启动时批准模式为计划时的安全回退 * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/19460 中添加显式的 color-convert 依赖 * feat(devtools):由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/18936 中将 devtools 包迁移到 monorepo * fix(core):由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/19438 中澄清计划模式约束和退出机制 * feat(cli):由 @LyalinDotCom 在 https://github.com/google-gemini/gemini-cli/pull/19056 中添加 macOS 运行事件通知(仅交互模式) * 由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/19361 中生成 v0.29.0 的更新日志 * fix(ui):由 @devr0306 在 https://github.com/google-gemini/gemini-cli/pull/19014 中防止添加空历史条目 * 由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/19364 中生成 v0.30.0-preview.0 的更新日志 * feat(core):由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/19046 中添加对 MCP 进度更新的支持 * fix(core):由 @godwiniheuwa 在 https://github.com/google-gemini/gemini-cli/pull/18429 中确保在写入对话文件前目录存在 * fix(ui):由 @imadraude 在 https://github.com/google-gemini/gemini-cli/pull/17198 中将 ToolGroupMessage 的边距从上移到底部 * fix(cli):由 @skyvanguard 在 https://github.com/google-gemini/gemini-cli/pull/17393 中将未知的斜杠命令视为常规输入而非显示错误 * feat(core):由 @joshualitt 在 https://github.com/google-gemini/gemini-cli/pull/19307 中实现实验性进行中转向提示(第 2 部分,共 2 部分) * docs(plan):由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/19467 中添加计划模式命令的文档 * fix(core):由 @syvb 在 https://github.com/google-gemini/gemini-cli/pull/18858 中修复当模式类似 ripgrep 标志时 ripgrep 失败的问题 * fix(cli):由 @NTaylorMullen 在 https://github.com/google-gemini/gemini-cli/pull/19451 中禁用 Shift+Tab 上的自动补全以保留模式循环 * 由 @garrettsparks 在 https://github.com/google-gemini/gemini-cli/pull/17332 中对 OAuth 发现使用 issuer 而非 authorization_endpoint * feat(cli):由 @jasmeetsb 在 https://github.com/google-gemini/gemini-cli/pull/19246 中将 `/dir add` 目录包含在 @ 自动补全建议中 * feat(admin):由 @skeshive 在 https://github.com/google-gemini/gemini-cli/pull/19453 中管理员设置应仅在 adminControlsApplicable = true 时应用,且获取错误应为致命错误 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/19484 中格式化 strict-development-rules 命令 * feat(core):由 @spencer426 在 https://github.com/google-gemini/gemini-cli/pull/19478 中集中兼容性检查并添加 TrueColor 检测 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/19479 中删除未使用的文件并更新索引和侧边栏 * 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/19044 中将核心渲染工具迁移为使用 xterm.js 作为渲染循环的一部分 * 由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/19496 中生成 v0.30.0-preview.1 的更新日志 * build:由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/19502 中用用户land包替换已弃用的内置 punycode * 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/19508 中尝试修复 React 错误的推测性修复 * 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/19494 中修复间距 * fix(core):由 @abhiasap 在 https://github.com/google-gemini/gemini-cli/pull/18982 中确保用户拒绝更新工具结果以用于遥测 * fix(acp):由 @Mervap 在 https://github.com/google-gemini/gemini-cli/pull/18898 中初始化配置 (#18897) * fix(core):由 @yuvrajangadsingh 在 https://github.com/google-gemini/gemini-cli/pull/17981 中添加 IDE 获取失败的错误日志记录 * feat(acp):由 @Mervap 在 https://github.com/google-gemini/gemini-cli/pull/18891 中支持 set_mode 接口 (#18890) * fix(core):由 @ehedlund 在 https://github.com/google-gemini/gemini-cli/pull/18443 中实现健壮的工作区基础 IDE 连接发现 * 由 @jacob314 在 https://github.com/google-gemini/gemini-cli/pull/19511 中使 Windows 测试稳定。 * 由 @pdHaku0 在 https://github.com/google-gemini/gemini-cli/pull/17955 中修复:当没有 UI 监听器时避免工具确认超时 * 由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/19474 中格式化 md 文件 * feat(cli):由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/19488 中添加 experimental.useOSC52Copy 设置 * feat(cli):由 @LyalinDotCom 在 https://github.com/google-gemini/gemini-cli/pull/19347 中用枚举设置替换加载短语布尔值 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/19500 中更新技能以调整生成的结果。 * 由 @gundermanc 在 https://github.com/google-gemini/gemini-cli/pull/19499 中修复消息过大问题。 * fix(core):由 @Abhijit-2592 在 https://github.com/google-gemini/gemini-cli/pull/19487 中防止在 auto-saved.toml 中出现重复的工具批准条目 * fix(core):由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/19555 中修复当 os.cpus() 为空时 ClearcutLogger 中的崩溃 * chore(core):由 @adamfweidman 在 https://github.com/google-gemini/gemini-cli/pull/19556 中改进封装并删除未使用的导出 * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/19434 中恢复“添加通用可搜索列表到后退设置和扩展(...” * fix(core):由 @yunaseoul 在 https://github.com/google-gemini/gemini-cli/pull/19565 中改进遥测的错误类型提取 * fix:由 @jackwotherspoon 在 https://github.com/google-gemini/gemini-cli/pull/19529 中移除 Composer 中的额外内边距 * feat(plan):由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/19577 中支持配置自定义计划存储目录 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/19503 中将文件迁移到资源或引用文件夹。 * feat(policy):由 @Abhijit-2592 在 https://github.com/google-gemini/gemini-cli/pull/18682 中实现项目级策略支持 * feat(core):由 @joshualitt 在 https://github.com/google-gemini/gemini-cli/pull/18791 中为只读工具实现并行 FC。 * chore(skills):由 @mbleigh 在 https://github.com/google-gemini/gemini-cli/pull/19576 中添加 pr-address-comments 技能以处理 PR 反馈 * refactor(sdk):由 @mbleigh 在 https://github.com/google-gemini/gemini-cli/pull/19180 中引入基于会话的架构 * fix(ci):由 @bdmorgan 在 https://github.com/google-gemini/gemini-cli/pull/19593 中为问题分类工作流添加回退 JSON 提取 * feat(core):由 @SandyTao520 在 https://github.com/google-gemini/gemini-cli/pull/19476 中为 Gemini 3 优化 Edit 和 WriteFile 工具架构 * 由 @gemini-cli-robot 在 https://github.com/google-gemini/gemini-cli/pull/19585 中生成 v0.30.0-preview.3 的更新日志 * fix(plan):由 @Adib234 在 https://github.com/google-gemini/gemini-cli/pull/19570 中将 EnterPlanMode 工具从 YOLO 模式中排除 * chore:由 @mattKorwel 在 https://github.com/google-gemini/gemini-cli/pull/18880 中解决构建警告并更新依赖项 * feat(ui):由 @ehedlund 在 https://github.com/google-gemini/gemini-cli/pull/18839 中为斜杠命令添加源指示器 * docs:由 @jerop 在 https://github.com/google-gemini/gemini-cli/pull/19644 中细化计划模式文档结构和工作流 * Docs:由 @jkcinouye 在 https://github.com/google-gemini/gemini-cli/pull/19568 中更新关于 Gemini 3.1 的发行信息 * fix(security):由 @mattKorwel 在 https://github.com/google-gemini/gemini-cli/pull/19567 中对 web_fetch 工具实施速率限制以缓解通过提示注入进行的 DDoS * 由 @chrstnb 在 https://github.com/google-gemini/gemini-cli/pull/19029 中实现 `/extensions explore` 命令的初始版本 * fix:由 @maximus12793 在 https://github.com/google-gemini/gemini-cli/pull/19038 中对反应式 OAuth 流程使用 discoverOAuthFromWWWAuthenticate (#18760) * 由 @alisa-alisa 在 https://github.com/google-gemini/gemini-cli/pull/19482 中更新搜索 * feat(cli):由 @scidomino 在 https://github.com/google-gemini/gemini-cli/pull/19659 中添加对数字小键盘 SS3 序列的支持 * feat(cli):由 @galz10 在 https://github.com/google-gemini/gemini-cli/pull/19492 中通过配置发现和安全警告增强文件夹信任 * feat(ui):由 @spencer426 在 https://github.com/google-gemini/gemini-cli/pull/19584 中通过关闭和显示计数限制改进启动警告 UX * feat(a2a):由 @adamfweidman 在 https://github.com/google-gemini/gemini-cli/pull/19548 中添加 API 密钥身份验证提供程序 * 由 @gundermanc 在 https://github.com/google-gemini/gemini-cli/pull/19670 中发送已接受/已删除的行与 ACCEPT_FILE 遥测数据。 * feat(models):由 @sehoon38 在 https://github.com/google-gemini/gemini-cli/pull/19676 中支持 Gemini 3.1 Pro Preview 及修复 * feat(plan):由 @mattKorwel 在 https://github.com/google-gemini/gemini-cli/pull/19433 中在计划模式中强制执行只读约束 * fix(cli):由 @spencer426 在 https://github.com/google-gemini/gemini-cli/pull/19562 中允许完美的匹配 @-path 补全在 Enter 上提交 * fix(core):由 @sehoon38 在 https://github.com/google-gemini/gemini-cli/pull/19642 中将 503 Service Unavailable 视为可重试的配额错误 * 由 @g-samroberts 在 https://github.com/google-gemini/gemini-cli/pull/19595 中更新 sidebar.json 以允许顶部导航选项卡。 * security:由 @ehedlund 在 https://github.com/google-gemini/gemini-cli/pull/19026 中从终端输出中剥离欺骗性 Unicode 字符 * 由 @gundermanc 在 https://github.com/google-gemini/gemini-cli/pull/19691 中修复 Gemini CLI 中的 'input.on' 不是函数错误 * 由 @ehedlund 在 https://github.com/google-gemini/gemini-cli/pull/19695 中恢复“feat(ui):为斜杠命令添加源指示器” * security