Skip to content

feat(permissions): accept agentMode "auto" for antigravity-cli - #3647

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2666-antigravity-cli-auto-mode
Oct 26, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-2666-antigravity-cli-auto-mode

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

The Antigravity CLI modes page now documents auto (Preview) as a persisted agentMode value in ~/.gemini/antigravity-cli/settings.json. ANTIGRAVITY_CLI_AGENT_MODES only had default / accept-edits / plan, so an antigravity-cli override with agentMode: "auto" failed validation of the whole permissions file, and import dropped the value.

  • Add "auto" to ANTIGRAVITY_CLI_AGENT_MODES (shared by the zod enum and the import filter).
  • Note in the JSDoc and docs/reference/file-formats.md that auto needs the terminal sandbox and is not available for business or enterprise accounts.
  • Add a generate/import round-trip test for agentMode: "auto".

Not changed: the docs now spell default by omitting the key (or ""); rulesync still emits "default" verbatim. Left as is (low confidence it matters).

Refs #2666

🤖 Generated with Claude Code

https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth

dyoshikawa and others added 2 commits October 26, 2026 16:22
The Antigravity CLI modes page now documents `auto` (Preview) as a
persisted `agentMode` value in settings.json. rulesync's enum lacked it,
so an `antigravity-cli` override with `agentMode: "auto"` failed
validation of the whole permissions file and import dropped it.

Refs #2666

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
…tigravity-cli-auto-mode

# Conflicts:
#	src/generated/docs-content.ts
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.

1 participant