Repository navigation
feat(antigravity): sign out through agy's ACP logout - #728
Merged
Merged
Conversation
agy 1.5.5's ACP server declares agentCapabilities.auth.logout and, given `logout`, removes its stored token file itself (probed in an empty HOME with a placeholder token, experiments/antigravity-login/logout-probe.py). Antigravity now has `logout`: ACP initialize then logout on a fresh `agy acp`, then `agy models` decides. A build without the capability is unsupported (version_unsupported); a sign-in agy still reports reads still_logged_in. OAR never touches the token file. The ACP auth call Kimi used moves to shared/acp/auth-query.ts so both runtimes share it. Docs that said Antigravity has no logout are updated, including the stale "no login integration" sentence at the top of its page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
stamp-build Bot
added a commit
that referenced
this pull request
Nov 11, 2026
<!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg" width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_908d7191b6acde72bc1f92564cae8a72"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp →</a></sup> --- <!-- /stamp:review:v1 --> Minor release: Cursor sessions take `SessionOptions.mcpServers`, and Antigravity can sign out. ## Cursor: session MCP servers (#729) - `SessionOptions.mcpServers` is no longer refused on Cursor. The list goes to `Agent.create` and again to `Agent.resume` as the SDK's `mcpServers` record: stdio `{type: "stdio", command, args, env}` and http `{type: "http", url, headers}`. - Empty, repeated or reserved names are refused before the SDK loads, as on every runtime. - Cursor sessions now open under the shared [known-credential rule](https://github.com/botiverse/oar/blob/main/docs/spec/record-stream.md#the-rules), which Cursor sessions did not use before. Values that rule recognizes are replaced with `[redacted]` in records, errors and control answers. The SDK gets every value unchanged. What the rule recognizes: - `env` values under credential names (`*_TOKEN`, `*_KEY`, ...). - `Authorization` / `Proxy-Authorization` values, plus the token after the scheme, and values of credential-named headers. - `env` values that are URLs with a password; the whole URL is recognized. - It never recognizes a value shorter than eight characters or shaped like a path, and it does not scan an http entry's `url`. - Evidence: a live run on SDK 1.3.1, Linux x64, `gpt-5.4-nano` ([probe](https://github.com/botiverse/oar/blob/main/experiments/cursor-mcp.ts)). - Cursor's agent called a stdio and an http echo server's tool, on create and again after resume. The tool-call deltas named the tool and the server. - Each server received its synthetic credential. No credential appeared in the SDK's stream. - Afterwards, neither credential was found as plain text in Cursor's local storage. - The probe drove the SDK directly; OAR's mapping and redaction are covered by unit tests against a stand-in SDK. - Not observed: whether the SDK sends a local agent's MCP entries to Cursor's servers, any other on-disk encoding, other models, macOS and Windows, and a name clash with the user's own MCP files (checked only against a stand-in backend). - A server whose command fails to start is dropped by the SDK without an error (seen against the stand-in backend). - With this, every runtime except Pi Durable takes per-session MCP servers. Antigravity and dsh still refuse entries that carry `env` or `headers` (for Antigravity, because agy stores them in plain text). ## Antigravity: logout (#728) - `antigravityRuntime.logout` sends agy's own ACP `logout` on a fresh `agy acp`. `agy models` then decides the result. - agy 1.5.5 declares `agentCapabilities.auth.logout` and removes its stored token file itself. - A build without that capability returns `unsupported` (`version_unsupported`). - If agy accepts the logout but still reports a sign-in afterwards, the result is `failed` (`still_logged_in`). A failed logout call returns its own failure. - OAR never touches the token file. - Evidence: an empty-HOME probe with a placeholder token ([probe](https://github.com/botiverse/oar/blob/main/experiments/antigravity-login/README.md#logout)). Not observed: keyring-stored sign-ins, and revocation at Google. - The same probe found that agy also lists the sign-in methods `oauth-business`, `gemini-api-key` and `agent-platform`. OAR does not drive them yet. - Kimi's ACP auth call moved to a shared helper that both runtimes use. Kimi's behavior is unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
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.
Antigravity gets
logout, through agy's own ACPlogout. In #720 I wrote that agy has no logout, because print mode refuses/logout. That was incomplete:agy acpdeclaresagentCapabilities.auth.logoutininitialize.Evidence
experiments/antigravity-login/logout-probe.py, agy 1.5.5 on Linux, 2026-11-11. It ran in an empty temporary HOME holding only a placeholderantigravity-oauth-token(not a credential). No Google account was involved.Change
antigravityRuntime.logoutsends ACPinitializethenlogouton a freshagy acp, andagy modelsdecides the result, the same as Kimi's logout:unsupported/version_unsupportedand nothing is sent.still_logged_in.kimi/auth-status.tstoshared/acp/auth-query.ts, and both runtimes use it. Kimi's behavior and tests are unchanged.antigravity.md(login section, plus the stale "no login integration" sentence at the top),spec/login.mdlogout table,design/capabilities.md,design/decisions.md.Tests: the fake agy now speaks enough ACP for logout. Three new cases cover success, a sign-in that stays, and no capability.
pnpm run checkis green.Raft's Otter will add a Sign Out button to the Antigravity card once this ships (#oar-raft:e71d0cf8).
🤖 Generated with Claude Code