Antigravity CLI grants the workspace read and write access, but also sets read_file(.env) to “ask” and write_file(.env) to “ask”. However, Gemini assumes .env is within the workspace and reads it directly without requesting permission.
expected results:
Even if the workspace has full access, .env read/write permission should still be requested.
Hi,
I’ve simplified the environment. I hope this helps you replicate the issue.
Antigravity CLI 1.1.1
Model Gemini 3.5 Flash (High)
OS win10 22H2, run agy under cygwin
permissions:
Read & Write Access: C:\software\antigravity_project\test_env
Always Prompts for Permission ( ask ):
Any file edits or reads in .env , .env.* , .npmrc , .pypirc , .netrc , .git-credentials , .vscode , .cache , .git
/cygdrive/c/software/antigravity_project/test_env
$ more test.py
from dotenv import load_dotenv
import os
load_dotenv()
var = os.getenv("HAHAHA")
print(var)
$ more .env
YOU CANT READ THIS lol