Skip to content

Fix Antigravity Windows hook quoting - #2645

Merged
nwparker merged 1 commit into
mainfrom
nwparker/antigravity-fiux
May 22, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/antigravity-fiux

Conversation

@nwparker

@nwparker nwparker commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace Antigravity Windows inline event setup with per-event wrapper .cmd files so hooks.json no longer contains the nested cmd /c quoting that Antigravity misparses
  • broaden Antigravity managed-hook cleanup so stale old PreToolUse and nested-quote entries are removed on install/remove/status
  • keep SSH Antigravity installs POSIX-only and covered by existing remote installer behavior

Fixes #2623

Verification

  • pnpm exec vitest run --config config/vitest.config.ts src/main/antigravity/hook-service.test.ts
  • pnpm exec vitest run --config config/vitest.config.ts src/main/agent-hooks/remote-hook-service-installers.test.ts
  • pnpm run typecheck
  • pnpm run lint
  • git diff --check
  • GitHub PR checks passed: verify, track-community-pr
  • Live generated ~/.gemini/config/hooks.json: PreInvocation, PostInvocation, Stop, and PostToolUse commands all exited 0; Stop emitted {"decision":""}, the others emitted {}
  • Real Antigravity CLI smoke: agy --print returned ORCA_ANTIGRAVITY_HOOK_OK without hook failure
  • Electron dev build via CDP on port 9333; verified attached identity was nwparker/antigravity-fiux, rendered the Orca window, and app API returned Antigravity hook status installed for ~/.gemini/config/hooks.json

Notes

  • The Windows failure mode is covered by a win32 unit regression that starts with the stale nested-quote PreToolUse hook and verifies install writes quote-free wrapper commands and removes PreToolUse. A real Windows Antigravity binary was not available in this macOS worktree.

@nwparker
nwparker merged commit 43439f5 into main May 22, 2026
2 checks passed
@nwparker
nwparker deleted the nwparker/antigravity-fiux branch May 22, 2026 23:17
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: AntiGravity CLI hook causes "Agent execution terminated due to error" on every restart

1 participant