Summary
In print mode on Windows, agy soft-denies a command that matches an allow rule. The same command, rules and folder give different results from run to run: 2 allowed, 13 denied. The same version and rules pass every time on macOS.
Environment
- Windows 10 Home 10.0.19045, shell reported by agy:
powershell(Windows PowerShell 5.1) - agy 1.3.3 (language server 1.3.3),
toolPermission=request-review - GitHub CLI 2.102.0, on the system PATH as
gh.exe
Steps to reproduce
-
%USERPROFILE%\.gemini\antigravity-cli\settings.jsoncontains:"permissions": { "allow": ["command(gh)", "command(git)", "command(cat)", "command(grep)","command(ls)", "command(find)", "command(git apply)"] }The folder is under a
trustedWorkspacesentry. The startup log confirms the rules load:CLI settings initialized: permissions=&{Allow:[command(gh) command(git) ...] Deny:[] Ask:[]} -
Run, several times:
agy --print-timeout 3m --print "Run exactly this shell command and print only its output, nothing else: gh api user --jq .login"
Expected
gh api user --jq .login runs every time, as it does on macOS.
Actual
Most runs print: jetski: no output produced — a tool required the "command" permission that headless mode cannot prompt for, so it was auto-denied. and the log shows Print mode: soft-denying tool confirmation "RunCommand" at step 2. Exit code is 0.
| Configuration | Runs | Allowed | Denied |
|---|---|---|---|
Rules in settings.json only (same as macOS) |
4 | 0 | 4 |
command(gh), command(git) also added to userSettings.globalPermissionGrants.allow in %USERPROFILE%\.gemini\config\config.json (log: stored shared config permissions: allow=3) |
11 | 2 | 9 |
Adding the rules to config.json made no reliable difference. git --version was denied in all 3 runs, in both configurations.
Identical tool-call records, different outcome
From the conversation databases (conversations\<id>.db), same Cwd in both:
Allowed (23:27:14):
{"CommandLine":"gh api user --jq .login","Cwd":"<same folder>","IsDaemon":false,"WaitMsBeforeAsync":5000,"toolAction":"Running gh command","toolSummary":"Run gh api user"}
Denied (23:25:31):
{"CommandLine":"gh api user --jq .login","Cwd":"<same folder>","IsDaemon":false,"WaitMsBeforeAsync":5000,"toolAction":"Running gh command","toolSummary":"Run gh api user"}
The command is a bare gh ..., not gh.exe and not wrapped in powershell or cmd. No other permission-related string differs between the two databases except the denial message.
Log lines present on both Windows and macOS
W declarative_config_loader.go:280] skipping component during resolution: empty component: pre-tool hook "command_assessor" is empty
W declarative_config_loader.go:280] skipping component during resolution: empty component: post-tool hook "command_assessor" is empty
macOS comparison
agy 1.3.3 with the same seven rules in settings.json, no config.json, and the same toolPermission=request-review: the same command is allowed on every run.