#13399: Hooks: support gogcli executable fallback for Gmail
docs
stale
Cluster:
Hooks Enhancements and Fixes
Fixes #9420 linux issue by providing an alias in the code for gog to gogcli.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Updates the Gmail hook tooling to accept both `gog` and `gogcli` executable names. The hook setup/service paths now resolve the installed binary and use it consistently when starting/renewing the Gmail watch and when spawning the `gog gmail watch serve` process. `ensureDependency` was extended to support alternative binary names and improved error messaging on non-macOS platforms. Documentation and changelog were updated to reflect the new accepted executable names, and tests were added to validate binary resolution and Linux error messaging.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Changes are localized to Gmail hook setup/watcher logic and dependency checks; the new binary resolution is used consistently at call sites and covered by targeted unit tests. No functional regressions were identified in the changed code paths.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#9914: fix(hooks): resolve bundled hook dist paths and packaging checks
by zimmra · 2026-02-05
74.5%
#4445: fix: resolve Antigravity "unsupported version" and tool_use schema ...
by harry2690 · 2026-01-30
73.3%
#2535: fix(google-antigravity): use 127.0.0.1 instead of localhost for OAu...
by brian033 · 2026-01-27
71.5%
#7404: feat(slack): add Socket Mode bot + auto-join + bridge scaffolding; ad…
by zprager · 2026-02-02
71.4%
#4695: Fixed the default CLI image to use published GHCR image
by TASMAYU · 2026-01-30
71.3%
#5064: fix(auth): update deprecated User-Agent headers
by mfortin014 · 2026-01-31
71.3%
#15852: fix: pass agentId when resolving IRC session paths
by MisterGuy420 · 2026-02-14
71.1%
#8203: fix clawdbot references
by anton-roos · 2026-02-03
71.1%
#7781: fix: resolve Google Gemini CLI auth credential extraction #4585
by ManojPanda3 · 2026-02-03
71.0%
#3783: Fix/3038 cli name moltbot
by Shuimo03 · 2026-01-29
70.9%