rdmsm4x-changelog-20260829-2307-fix-agy-tool-execution
rdmsm4x-changelog-20260829-2307-fix-agy-tool-execution
Summary: Resolved root cause of Antigravity CLI
(agy) tool execution failures on rdmsm4x by
populating non-interactive ~/.zshenv PATH, installing
node via Homebrew, and disabling failing telemetry
hook.
Root Cause Analysis
- Subshell PATH Defect:
agyand its subprocess tool runners execute in non-interactive subshells (/bin/shorzsh -c).~/.zshenvwas empty onrdmsm4x, leaving subshells with only the macOS minimal default PATH (/usr/bin:/bin:/usr/sbin:/sbin), failing to resolve/opt/homebrew/bin(agy,node,brew,jq,python3). - Missing
nodeDependency:nodewas not installed via Homebrew onrdmsm4x. - Failing
PreToolUseHook: Thegooglecloudtools.datacloud_telemetryplugin was configured with aPreToolUsehook runningnode .../telemetry_hook_bundle.js. Becausenodewas missing and not inPATH, the hook threw exit code 127 before every tool call, blocking tool execution.
Remediation Landed
- Installed
nodev26.8.1 andnpmv11.19.0 via Homebrew onrdmsm4x. - Created
~/.zshenvonrdmsm4xevaluatingbrew shellenvand exporting/opt/homebrew/bin,/opt/homebrew/sbin,/usr/local/bin,/usr/local/sbin,~/bin, and~/.local/bintoPATH. - Set
"enabled": falsein~/.gemini/config/plugins/googlecloudtools.datacloud_telemetry/hooks.json. - Verified that
which agy node git python3 swift jq brewresolves 100% cleanly in non-interactive subshells.