Repository navigation
feat(acp): switch Antigravity to native agy acp CLI and add Turbo mode - #1335
Merged
xintaofei merged 11 commits intoNov 28, 2026
Merged
Conversation
- registry: Antigravity moves from a pinned agy_acp_server binary to the user-installed CLI (System distribution, `agy acp`, `agy update`). - auth: drive `agy acp --login` for the browser-free Google flow and the ACP `logout` request; stop writing antigravity-acp/settings.json. - GEMINI_HOME is translated to `--gemini-dir` because agy rejects the variable and fails session/new. - history: read ~/.gemini/antigravity-cli/conversations and conversation_summaries.workspace_uris, keeping old ACP sessions readable. - settings panel copy updated for the CLI flow.
- 新增权限模式配置(AGY_DANGEROUSLY_SKIP_PERMISSIONS)以按需为 agy acp 传递 --dangerously-skip-permissions(Turbo 模式),并 补充单元测试与多语言文案;默认不附加该参数,以保持原生会话模式 与权限规则。 - 在配置非交互认证(gemini-api-key 或 agent-platform)时,于 session/new 前主动发送 ACP authenticate,避免 agy acp 因缺少 acp-auth-state.json 报错或沿用旧的缓存认证方式。 - 在终止旧登录进程和等待登录链接前释放全局 SLOT 锁,并在退出时 排空 stdout/stderr 读取任务,防止长期持锁阻塞与剩余输出丢失。 - 将本地配置路径指向 antigravity-cli/settings.json 作为只读参考, 并跳过通用运行时配置的环境变量映射,防止将 CLI 原生顶层字段 (如 model)误导出为启动环境变量。 - 更新 Antigravity 会话解析器,并将 conversation_summaries.db 注册为独立备份源,在保持旧备份路径兼容且不打包凭据文件的前提下 保留 CLI 会话的工作区 URI。
- Windows: stop giving the built-in Antigravity a per-launch TMP (agy is a plain Go exe, not a PyInstaller onefile; a scratch TMP is spacering-net#1025). - Windows: probe %LOCALAPPDATA%\agy\bin where install.ps1 puts agy.exe. - Skills: install into the dirs agy acp actually loads (.agents/skills, .agent/skills, ~/.agents/skills); it does not read <cwd>/.gemini/skills. - Login: enforce the 300 s deadline the panel shows; agy acp --login otherwise waits on stdin until the next sign-in or app exit. - Auth: when the CLI's cached acp-auth-state names a different method than the panel's Google choice, authenticate that method at the handshake, so switching back from an API key no longer fails every session with Authentication required.
…acy backup - Sign-out cancels a code exchange already past the login slot and waits for its child to die before logout, so it cannot re-store the credential being signed out of. - Gemini Enterprise: agy acp --login only signs a personal account in, so the browser-free sign-in is offered (and accepted) for personal Google only; Enterprise always authenticates at the handshake, and a failed Google authenticate fails the launch instead of letting the CLI fall back to another cached method. - Back up the legacy antigravity-acp/conversations tree as its own source: sessions not yet reopened exist only there.
…ummaries DB from backups Each trajectory .db records its workspace in trajectory_metadata_blob (repeated field 7, folder first; field 1.1 on the CLI), so a restored session keeps its folder without the shared conversation_summaries.db row. The summaries DB is no longer archived: as one file indexing every conversation, a whole-file restore either skipped the restored rows or replaced rows of sessions created since the backup.
…translations agy acp reads no codeg-managed settings file, so the test-only legacy sync/merge/auth-type code and its tests, the no-op acp_sync_antigravity_settings RPC (Tauri command, web route, API client) and the sync report sign-out returned are removed; sign-out now returns nothing. agy acp --login always prints a link and never names a credential file, so AntigravityLoginStart loses its alreadySignedIn variant and AntigravityLoginOutcome its credentialPath. The panel drops the standing sync notice and the branches that rendered those fields, and the four translations only they used (syncSkipped, headless.alreadySignedIn, headless.credentialHint, toasts.antigravitySyncSkipped) leave all 10 locales. Also drops the unused scratch parameter of antigravity_launch_env and stale comments describing the old server.
…tilde-expansion note
Collaborator
|
结论:方案成立。改用系统已装的 已修复的问题
清理
验证:桌面与服务器的 clippy 和 Rust 测试全部通过,codeg-mcp 的 check/clippy 通过,前端 lint、vitest 全量和 build 通过。真实 Google/Enterprise 登录、Windows 和 Docker 以 root 运行的情况未实测。 留给作者:相对路径的 可以进入正式环境,前提是在真实账号上跑一次登录冒烟测试。 The changes were pushed to this pull request (27 files, +683/-1756). 🤖 Generated with Codeg |
Brings PR spacering-net#1335 (Antigravity via native `agy acp`) up to date with main. Conflicts resolved: - registry.rs: keep the System `agy acp` distribution; main's standalone agy_acp_server 1.5.2 bump and its version notes no longer apply. - connection.rs: keep main's native_antigravity_task_store (now keyed on ANTIGRAVITY_CLI_ACP_AGENT_NAME) next to the branch's CLI agent name, and give the native custom-agent row of the question-bridge table main's new skip_cancels column. - parsers/antigravity.rs: keep main's background/failure modules and read_trajectory watermark alongside the branch's CLI + legacy dirs, summaries-db cwd lookup and migration; main's OS-home fallback is kept for an identified session only (never listing) and now points at the CLI's default antigravity-cli tree. - antigravity-config-panel.tsx: main's AgentPanelGroup/Card/SaveBar layout, with the Turbo permission selector as its own card. - i18n (10 locales): keep the branch's agy acp wording for the reworded keys (main's tighter copy still described auth.type and the old browser flow) and the removal of the now-unused credentialHint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge of origin/main took the branch side of the zh-TW conflict hunks wholesale, which wrote 12 Antigravity keys the branch never changed back to their old Simplified text. Take main's value for each; a per-key three-way check (merge base, branch, main) now leaves only the branch's own agy acp copy differing from main, in every locale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ir test On Windows child_home_dir reads USERPROFILE, not HOME, so the tilde case expanded against the runner's real profile and failed the Rust server job on windows-latest. Key the fixture on the platform's home variable and build the expected path with join().
child_home_dir rejects a non-absolute home, and "/srv" has no drive prefix on Windows, so the USERPROFILE fixture still fell back to the runner's real profile. Use C:\srv there (as file_system_runtime's CHILD_HOME_FIXTURE does) and derive the tilde and cleared-GEMINI_HOME expectations from the same root.
xintaofei
added a commit
that referenced
this pull request
Nov 28, 2026
This release switches Antigravity to the native Antigravity CLI with a Turbo mode, lets you open file references with their default app, reworks the personal assistant's activity panel around who needs to act next, makes token stats count sub-agent and fork spend correctly, and updates OpenCode, Cline, Kimi Code, Qoder, ZCode and Command Code. ## New - **Antigravity now runs on the Antigravity CLI you install (`agy acp`).** You can sign in to Google with no browser by pasting a code, turn on Turbo mode to skip permission prompts, and switch the terminal sandbox and telemetry on or off. Your earlier Antigravity sessions still open. (#1335, @maoxian-1) - **File references in a conversation can now be opened in their default app** (desktop only). Programs and scripts are refused, so a link cannot run code with one click. (#1345, @zxbdzh) - **The assistant's activity panel is now grouped by who acts next:** "Needs you", "Running", "Watching", "Routines & reminders" and "Done today". You can retry failed work, merge a PR, or answer a permission, question or plan right on the row. - **You can ignore rows waiting on you.** An ignored row comes back only when what it waits on changes, for example when a PR with slow checks can no longer be read. - **PR watches now show their health:** an account that can't be read, checks running too long, or a review waiting over a day. You can set both time limits. - **The assistant's input box now keeps your draft**, along with pasted images and attachments, when you leave the page or switch assistants. ## Improved - **Token stats now include spend that used to be missed:** sub-agents, workflow agents, compactions and summaries for Claude Code, Codex, CodeBuddy, Kimi, Hermes, Pi, OpenCode, Gemini, DeepSeek, Cline and more. Forked conversations are no longer billed again for the history they copied. Existing history is recounted on the next sync, and a recount cut short picks up where it stopped. - **Interrupting a turn no longer stops the sub-agents it delegated work to**, and the agent picks up their results later. Pressing Stop still stops them. (#1330, @asteroida123) - **After a reload, each Codex reply now shows its own token usage.** Before, some replies showed none and others showed two rounds' worth. - **By default, assistants now ask you before they merge, close, comment on or fix a PR they are watching.** Settings you already saved stay as they are. - **When one scan finds many suggestions, they now come as one card** with a "Show all" option instead of flooding the conversation. - **The assistant's Workspace tab now shows just the work cards, each with a "View session" button.** - **With a workspace background image set, conversation cards are now see-through.** Card buttons use neutral colors, so the "Assistant accent colour" setting has been removed. - **The assistant's side panel remembers the width you dragged it to.** - **Clicking a Markdown image now opens it at full size**, in conversations, Markdown file previews and issue/PR descriptions. - **Wide tables in cards now scroll sideways inside the card** instead of stretching past it. - **Updated OpenCode to 2.4.2, Cline to 3.0.76, Kimi Code to 2.8.1, Qoder to 1.1.100, ZCode to 0.96.4 and Command Code to 1.93.5.** - **The end of OpenCode Code Mode image and video jobs now shows on their card.** - **When ZCode fails during a turn, the turn no longer looks like it finished normally.** ZCode installed from Arch's zcode-bin package is now found too. ## Fixed - **Fixed the personal assistant getting stuck at "waking up" on its first message after a fresh install.** (#1329, @Sube-py) - **Fixed the newest Codex reply losing its completion time, tokens and model after a /compact.** (#1312, @ker2xu) - **Fixed local images not showing in assistant conversations.** (#1347 reported by @zxbdzh) - **Antigravity replies now show their model again.** - **Fixed lost focus, cut-off typing and flickering hover in the "New assistant" dialog while an assistant is working.** Thanks to @maoxian-1, @zxbdzh, @ker2xu, @asteroida123 and @Sube-py for contributing to this release. ----------------------------- # 发布版本 0.50.0 这一版 Antigravity 改用原生 Antigravity CLI,并新增 Turbo 模式;会话中的文件引用可以用默认应用打开;个人助手的动态面板按「轮到谁处理」重新编排;Token 统计能正确计入子智能体和分叉会话的消耗;OpenCode、Cline、Kimi Code、Qoder、ZCode 和 Command Code 也有更新。 ## 新增 - **Antigravity 改为通过你自己安装的 Antigravity CLI(`agy acp`)运行。** 登录 Google 账号不用打开浏览器,粘贴验证码即可;可以开启 Turbo 模式跳过权限确认,也可以开关终端沙箱和遥测。之前的 Antigravity 会话仍然可以打开。(#1335,@maoxian-1) - **会话中的文件引用可以用系统默认应用打开**(仅桌面版)。程序和脚本会被拒绝打开,链接无法一键运行代码。(#1345,@zxbdzh) - **助手的动态面板改为按「轮到谁处理」分组**:「等你处理」「进行中」「跟进中」「例程与提醒」「今日已完成」。重试失败的工作、合并拉取请求、回答授权、问题或计划,都能直接在这一行完成。 - **等你处理的条目可以忽略。** 被忽略的条目只有在它等待的事情发生变化时才会重新出现,比如检查运行过久的拉取请求变得无法读取时。 - **拉取请求跟进会显示健康状态**:账号无法读取、检查运行过久、评审等待超过一天时都会标出,两个时长都可以在设置里调整。 - **助手输入框会保留草稿**,离开页面或切换助手后,已粘贴的图片和附件也会保留。 ## 改进 - **Token 统计补上了之前漏算的消耗**:Claude Code、Codex、CodeBuddy、Kimi、Hermes、Pi、OpenCode、Gemini、DeepSeek、Cline 等的子智能体、工作流智能体、上下文压缩和摘要的消耗都会计入。分叉会话不再重复计算复制过来的历史。下次同步时会重新统计已有历史,中途中断的话,下次会接着上次的进度继续。 - **打断一个回合不会再停掉它委托出去的子智能体**,智能体之后会继续收取它们的结果;点「停止」仍会一起停止。(#1330,@asteroida123) - **重新加载后,Codex 每条回复都会显示自己的 Token 用量**。之前有的回复没有用量,有的回复显示了两轮的用量。 - **助手默认会先征求你的同意,再合并、关闭、评论或修复它跟进的拉取请求**,你已经保存的设置保持不变。 - **一次扫描发现多条建议时,会合并成一张卡片**,可以点「显示全部」查看,不会再刷满整个会话。 - **助手的「工作区」标签页只显示工作卡片,每张卡片都可以点「查看会话」。** - **设置了工作区背景图时,会话卡片改为半透明。** 卡片按钮改用中性色,因此移除了「助手强调色」设置。 - **助手侧边栏会记住你拖动调整后的宽度。** - **点击 Markdown 图片会打开原尺寸预览**,会话、Markdown 文件预览以及议题和拉取请求的描述中都适用。 - **卡片中的宽表格改为在卡片内横向滚动**,不再撑出卡片。 - **OpenCode 更新至 2.4.2,Cline 更新至 3.0.76,Kimi Code 更新至 2.8.1,Qoder 更新至 1.1.100,ZCode 更新至 0.96.4,Command Code 更新至 1.93.5。** - **OpenCode Code Mode 的图片和视频任务结束时,结果会显示在卡片上。** - **ZCode 在回合中出错时,不会再显示为正常完成**;通过 Arch 的 zcode-bin 包安装的 ZCode 现在也能被识别。 ## 修复 - **修复全新安装后,向个人助手发送第一条消息时一直停在「正在唤醒」的问题。**(#1329,@Sube-py) - **修复执行 /compact 后,Codex 最新一条回复丢失完成时间、Token 用量和模型信息的问题。**(#1312,@ker2xu) - **修复助手会话中本地图片无法显示的问题。**(#1347 由 @zxbdzh 反馈) - **修复 Antigravity 回复下方不显示模型的问题。** - **修复助手工作时,「新建助手」对话框中输入框失去焦点、正在输入的内容被打断以及悬停效果反复闪烁的问题。** 感谢 @maoxian-1、@zxbdzh、@ker2xu、@asteroida123 和 @Sube-py 为本次发布做出的贡献。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
将 Google Antigravity 的 ACP 接入方式切换为系统已安装 CLI 的原生
agy acp,新增按需开启的 Turbo 权限模式,并完善认证、登录进程管理、配置隔离与历史会话解析/备份能力。Changes
1. 原生
agy acpCLI 迁移(b7be22871)agy_acp_server二进制切换为用户已安装的原生 CLI(System 分发,agy acp/agy update)。agy acp --login驱动无浏览器 Google 登录流程及 ACPlogout请求,停止写入旧的antigravity-acp/settings.json。GEMINI_HOME转换为--gemini-dir启动参数,避免agy拒绝该环境变量导致session/new失败。~/.gemini/antigravity-cli/conversations与conversation_summaries.workspace_uris,同时保持旧版 ACP 会话可读。2. Turbo 模式与原生
agy acp适配完善(c9aff9d7c)AGY_DANGEROUSLY_SKIP_PERMISSIONS权限模式配置,按需为agy acp传递--dangerously-skip-permissions;默认不附加该参数,保持原生会话模式与权限规则。gemini-api-key或agent-platform时,在session/new前主动发送 ACPauthenticate,避免因缺少acp-auth-state.json报错或沿用旧的缓存认证方式。SLOT锁,并在进程退出时排空stdout/stderr读取任务,防止长期持锁阻塞与尾部输出丢失。antigravity-cli/settings.json作为只读参考,跳过通用运行时配置的环境变量映射,避免将 CLI 原生顶层字段(如model)误导出为启动环境变量。conversation_summaries.db注册为独立备份源,在保持旧备份路径兼容且不打包凭据文件的前提下保留 CLI 会话的工作区 URI。antigravity-config-panel.test.tsx)并同步 10 种语言的 i18n 文案。Commits
b7be22871feat(acp): launch Google Antigravity through the CLI's native agy acpc9aff9d7cfeat(acp): 新增 Antigravity Turbo 模式并完善原生 agy acp 适配