Skip to content

[Bug]: Switching to Turbo mode in UI wipes globalPermissionGrants but omits permissionPreset in config.json #972

Description

@D2KC

Environment

  • Product: Antigravity Desktop App / CLI
  • Version: 1.1.27
  • OS: Windows 11 Pro

Summary

When selecting "Turbo Mode" in the Antigravity Desktop App Settings, the UI serializes globalPermissionGrants as an empty object {} inside ~/.gemini/config/config.json, but fails to persist "permissionPreset": "AGENT_PERMISSION_PRESET_TURBO".

As a consequence, the backend engine (language_server.exe) loads an empty grant allowlist without an active Turbo preset, causing file write and modification tools (write_to_file, replace_file_content) to continuously trigger permission confirmation modals in the UI.

Steps to Reproduce

  1. Configure explicit permission grants (e.g. write_file(C:\)).
  2. Open Settings in the Antigravity Desktop interface and select "Turbo Mode" / unrestricted mode.
  3. Save settings and inspect ~/.gemini/config/config.json.
  4. Prompt the agent to create or edit a file.

Observed Behavior

In ~/.gemini/config/config.json:

  • artifactReviewMode is set to "ARTIFACT_REVIEW_MODE_TURBO".
  • browserJsExecutionPolicy is set to "BROWSER_JS_EXECUTION_POLICY_TURBO".
  • autoExecutionPolicy is set to "CASCADE_COMMANDS_AUTO_EXECUTION_EAGER".
  • globalPermissionGrants is cleared to {}.
  • permissionPreset is omitted entirely.

Because globalPermissionGrants is now empty and the top-level enum AGENT_PERMISSION_PRESET_TURBO was not written, the PolicyGuardian engine treats all file writes as unapproved and prompts the user for confirmation on every edit.

Expected Behavior

Selecting "Turbo Mode" in the UI should write "permissionPreset": "AGENT_PERMISSION_PRESET_TURBO" to userSettings in config.json (or preserve necessary file write grants), allowing the agent to perform file operations autonomously without modal prompts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

othersIssues not falling in bug, performance, support, build and install or featurestat:awaiting responseStatus - Awaiting response from author

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions