Repository navigation
Conversation
Refresh persisted Windows PATH for managed hook detection and reconcile an explicit enable even when status hooks are already enabled. Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
|
Added the missing Windows PATH modules to the CLI TypeScript project in 1341a12. The CLI now includes the same dependencies used by hook discovery; this is a follow-up to this PR, not an additional feature. Rechecked on Windows: CLI typecheck passed; the two local-agent-cli-presence test files reported 11 passed / 1 skipped. Full runtime, packaged app and macOS/Linux/SSH checks were not rerun in this update. Prepared with Codex. |
|
Thank you, @lurunzi, for tracking this down and for the clear write-up. The same fix has since landed on main in #38899: on Windows, hook CLI detection now reads the persisted registry PATH the way terminal launch does, and |
ELI5
After installing Antigravity while Orca is already open on Windows, a new terminal can run it while its status hooks remain missing. Asking Orca to enable hooks again can also do nothing when the setting is already on. This fixes those two recovery gaps.
What Changed
agentStatusHooksEnabled: trueupdate as a repair request, using the existing serialized reconciliation and cancellation checks. The connected-runtimeorca agent hooks onpath can now retry installation without toggling every agent off first.Why
The terminal launch path already refreshes Windows PATH, while the hook detector previously relied on the older inherited environment. Reusing that reader aligns detection without adding install-directory guesses or changing the process-wide PATH. Reusing reconciliation repairs missing hooks without a new poller or another status store.
Linked Issue
Related to #17672. This is a focused recovery fix, not a claim to resolve every cause in that report.
Visual Proof
Pending: this draft has no rendered before/after proof. On the affected Windows machine, Antigravity's hooks were backed up and repaired with the existing installer, and the production CLI confirmed
installed. The already-running agent has not published a new status row; no session was interrupted to obtain a screenshot. Live sidebar/dashboard recovery remains unverified.Testing
Both new failure regressions fail on the unmodified upstream implementation: PATH detection returns
missing, and repeated enable makes zero reconciliation calls. They pass with the fix.Validated on this branch against current upstream:
Full lint/test/build, native macOS/Linux execution, live SSH, and rendered Electron checks were not run. No application package was built or installed.
AI Disclosure
Developed and checked with Codex (OpenAI).
Review
Self-reviewed the Windows-only registry access, explicit PATH isolation, serialization, and disabled-agent cancellation checks. This does not add automatic hook reconciliation on every new agent launch, identify the writer of an empty hooks config, or force running agents to reload their hooks.
Agent skill upstream boundary
Notes
No RPC field or status schema is added. Paired settings updates run the repair on the runtime owning execution. Unrelated settings updates retain their existing behavior.
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass; only the focused checks above were run locally