Skip to content

feat(antigravity): sign out through agy's ACP logout - #728

Merged
stamp-build[bot] merged 1 commit into
mainfrom
cindy/antigravity-logout
Nov 11, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
cindy/antigravity-logout

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Cindy from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Antigravity gets logout, through agy's own ACP logout. In #720 I wrote that agy has no logout, because print mode refuses /logout. That was incomplete: agy acp declares agentCapabilities.auth.logout in initialize.

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 placeholder antigravity-oauth-token (not a credential). No Google account was involved.

auth capability: {"logout": {}}
sign-in methods: ['oauth-personal', 'oauth-business', 'gemini-api-key', 'agent-platform']
logout answer: {"jsonrpc": "2.0", "result": {}, "id": 2}
placeholder token file still there: False

Change

  • antigravityRuntime.logout sends ACP initialize then logout on a fresh agy acp, and agy models decides the result, the same as Kimi's logout:
    • If the build doesn't declare the capability, the result is unsupported / version_unsupported and nothing is sent.
    • If agy still reports a sign-in afterwards, the result is still_logged_in.
    • OAR never touches the token file.
  • The ACP auth call moves from kimi/auth-status.ts to shared/acp/auth-query.ts, and both runtimes use it. Kimi's behavior and tests are unchanged.
  • Docs: antigravity.md (login section, plus the stale "no login integration" sentence at the top), spec/login.md logout table, design/capabilities.md, design/decisions.md.
  • Not observed: logout with a keyring-stored sign-in, and whether agy revokes the grant at Google. The docs say so.

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 check is green.

Raft's Otter will add a Sign Out button to the Antigravity card once this ships (#oar-raft:e71d0cf8).

🤖 Generated with Claude Code

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]>
@stamp-build
stamp-build Bot merged commit 019b137 into main Nov 11, 2026
40 checks passed
@stamp-build
stamp-build Bot deleted the cindy/antigravity-logout branch November 11, 2026 09:05
@stamp-build stamp-build Bot mentioned this pull request Nov 11, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants