Repository navigation
fix(permissions): store antigravity-cli agentMode default as "" - #3914
Merged
dyoshikawa merged 1 commit intoNov 20, 2026
Merged
Conversation
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
deleted the
resolve-issue-2666-antigravity-cli-default-agent-mode
branch
November 20, 2026 02:38
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.
Refs #2666
Summary
Addresses the
agentModedefault gap from the 2026-11-19 re-check on #2666.The CLI modes docs list the stored
agentModevalues as""(Default),"accept-edits","auto"and"plan", and say an omittedagentModestarts the CLI inautowhere it is available (CLI 1.5.7 made Auto the default). rulesync wrote canonicaldefaultverbatim as"default", which is not a documented value, and dropped"", the value the CLI itself saves, on import with a warning.antigravity-clipermissions now write canonicalagentMode: "default"as"agentMode": "".""maps back todefault. 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 omittingagentModenow means Auto.Remaining in #2666
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.jsonentries, so it is left for a maintainer decision.Test plan
defaultis written as""and round-trips back todefault, and a legacy stored"default"still imports.pnpm cicheck: all green.src/utils/glob.test.tstimed out once under parallel load and passed when rerun alone.🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4