Skip to content

fix(permissions): store antigravity-cli agentMode default as "" - #3914

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2666-antigravity-cli-default-agent-mode
Nov 20, 2026
Merged

dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2666-antigravity-cli-default-agent-mode

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Refs #2666

Summary

Addresses the agentMode default gap from the 2026-11-19 re-check on #2666.

The CLI modes docs list the stored agentMode values as "" (Default), "accept-edits", "auto" and "plan", and say an omitted agentMode starts the CLI in auto where it is available (CLI 1.5.7 made Auto the default). rulesync wrote canonical default verbatim as "default", which is not a documented value, and dropped "", the value the CLI itself saves, on import with a warning.

  • antigravity-cli permissions now write canonical agentMode: "default" as "agentMode": "".
  • On import, "" maps back to default. A stored "default" written by earlier rulesync releases is still accepted.
  • docs/reference/file-formats.md (and the generated docs content) explains the mapping and that omitting agentMode now means Auto.

Remaining in #2666

  • rules (antigravity-ide, antigravity-cli, project): nested <subprojectPath>/.agents/rules/ folders are no longer loaded when Antigravity is opened at the repository root. The fix needs a design choice between flattening nested rules into the root .agents/rules/ with prefixed globs, or emitting .agents/rules.json entries, so it is left for a maintainer decision.
  • The older open items (sidecars and the others listed in earlier status comments).

Test plan

  • Added unit tests: canonical default is written as "" and round-trips back to default, and a legacy stored "default" still imports.
  • pnpm cicheck: all green. src/utils/glob.test.ts timed out once under parallel load and passed when rerun alone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

Antigravity CLI stores its Default Agent Mode as `"agentMode": ""`, and
since CLI 1.5.7 an omitted or unrecognized mode may start the
auto-approving Auto mode. rulesync wrote canonical `default` verbatim,
which is not a documented stored value, and dropped `""` on import.

Write canonical `default` as `""`, import `""` back as `default`, and
keep accepting a stored `"default"` written by earlier releases.

Refs #2666

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
@dyoshikawa
dyoshikawa merged commit c5979b2 into main Nov 20, 2026
11 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2666-antigravity-cli-default-agent-mode branch November 20, 2026 02:38
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