You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Antigravity: link global ~/.gemini/config/hooks.json (parity with #47994 MCP linking and Claude/Codex)
#49669
After #47994, T3's private Antigravity profile links AGENTS.md, GEMINI.md, skills, config/skills.json, and config/mcp_config.json from ~/.gemini, leaving config/hooks.json as the only unlinked global Antigravity customization file.
Problem
Interactive Claude Code and Codex threads in T3 inherit user-level PreToolUse hooks from ~/.claude/settings.json and ~/.codex/hooks.json. Interactive Antigravity threads do not inherit ~/.gemini/config/hooks.json, so shared safety guards (for example, blocking destructive git operations or hand-edits via shell across all repositories and worktrees) silently stop running in T3 Antigravity unless duplicated into every repo's .agents/hooks.json or symlinked into T3's private profile directory manually.
Proposal
Link ~/.gemini/config/hooks.json into <profile>/config/hooks.json (on POSIX; copy on Windows), either:
Opt-in per Antigravity provider instance (e.g. a setting on providerInstances.<id>), or
agy 1.5.25 reads <profile>/config/hooks.json once initialized (config/.migrated) and honors PreToolUsedeny decisions before session/request_permission (verified live on T3 0.1.13 + agy 1.5.25).
isAntigravityTextGenerationAvailable already checks config/hooks.json alongside config/mcp_config.json and falls back to another provider for title/commit helpers; fix(server): Antigravity helper processes run in an auth-only profile #43075 removes even that limitation by isolating helpers into an auth-only profile.
Related note on force_ask in full-access
Under runtimeMode: full-access, ACP session/request_permission requests are currently auto-approved in acpPermissionDisposition, so PreToolUseforce_ask does not prompt the user (unlike Claude's fullAccessOverride). Linking config/hooks.json is immediately useful for deny hooks; honoring hook-triggered force_ask in full-access would be a separate follow-up once ACP exposes hook escalation metadata.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
After #47994, T3's private Antigravity profile links
AGENTS.md,GEMINI.md,skills,config/skills.json, andconfig/mcp_config.jsonfrom~/.gemini, leavingconfig/hooks.jsonas the only unlinked global Antigravity customization file.Problem
Interactive Claude Code and Codex threads in T3 inherit user-level
PreToolUsehooks from~/.claude/settings.jsonand~/.codex/hooks.json. Interactive Antigravity threads do not inherit~/.gemini/config/hooks.json, so shared safety guards (for example, blocking destructive git operations or hand-edits via shell across all repositories and worktrees) silently stop running in T3 Antigravity unless duplicated into every repo's.agents/hooks.jsonor symlinked into T3's private profile directory manually.Proposal
Link
~/.gemini/config/hooks.jsoninto<profile>/config/hooks.json(on POSIX; copy on Windows), either:providerInstances.<id>), orWhy this fits existing T3 safeguards:
agy1.5.25 reads<profile>/config/hooks.jsononce initialized (config/.migrated) and honorsPreToolUsedenydecisions beforesession/request_permission(verified live on T3 0.1.13 +agy1.5.25).isAntigravityTextGenerationAvailablealready checksconfig/hooks.jsonalongsideconfig/mcp_config.jsonand falls back to another provider for title/commit helpers; fix(server): Antigravity helper processes run in an auth-only profile #43075 removes even that limitation by isolating helpers into an auth-only profile.Related note on
force_askinfull-accessUnder
runtimeMode: full-access, ACPsession/request_permissionrequests are currently auto-approved inacpPermissionDisposition, soPreToolUseforce_askdoes not prompt the user (unlike Claude'sfullAccessOverride). Linkingconfig/hooks.jsonis immediately useful fordenyhooks; honoring hook-triggeredforce_askinfull-accesswould be a separate follow-up once ACP exposes hook escalation metadata.Related: #47994, #43075, #42403, #37934, #41131.
All reactions