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
False "No hook installed" for Copilot and for project-scope Codex and Droid installs #4756
After #4343, rtk gain and the daily reminder no longer print No hook installed — run rtk init -g when another agent's rtk hook is configured. Three installs are not covered by that check yet, so they still get the warning when ~/.claude exists without a Claude hook:
The global Codex and Droid installs, and the project-scope Trae, Antigravity, Pi and OMP installs, are silenced by #4343.
The check lives in AGENT_PROBES (src/hooks/hook_check.rs), with one is_configured() per agent under src/hooks/init/. Copilot has no probe. The Codex and Droid probes read only the global directory (resolve_codex_dir(), resolve_droid_dir()), while their installers also write project-scope hooks in the working directory.
A fix passes when, for each row above, the files the install writes silence the warning in rtk gain and rtk ls ., and the warning comes back after the matching --uninstall. #3642 has Copilot detection written against the earlier single-file init.rs layout.
Repro, with ~/.claude present and no Claude hook:
rtk init --codex
rtk gain # [warn] No hook installed — run `rtk init -g` for automatic token savings
Missing/incomplete hook probes (Copilot has none; Codex/Droid only check global dir) cause false 'No hook installed' warnings for several project-scope and Copilot installs
📁 Relevant files
src/hooks/hook_check.rs
src/hooks/init/mod.rs
src/hooks/init/codex.rs
src/hooks/init/droid.rs
Suggested Actions
Add an is_configured() probe for Copilot under src/hooks/init/ and register it in AGENT_PROBES
Extend resolve_codex_dir()/resolve_droid_dir() checks to also look at project-scope .codex/.factory dirs
Verify fix against all 4 table rows plus the --uninstall warning-returns case
Activity
rtk-wshm-sync-bot commentedon Oct 23, 2026
🔍 Automated Triage
bugmediumSummary
Missing/incomplete hook probes (Copilot has none; Codex/Droid only check global dir) cause false 'No hook installed' warnings for several project-scope and Copilot installs
📁 Relevant files
src/hooks/hook_check.rssrc/hooks/init/mod.rssrc/hooks/init/codex.rssrc/hooks/init/droid.rsSuggested Actions
Triaged automatically by wshm · This is an automated analysis, not a human review.