fix(copilot): DetectPresence delegates to AreHooksInstalled#590
Conversation
PR SummaryLow Risk Overview Adjusts tests to cover the new behavior (no hooks dir, hooks dir without Written by Cursor Bugbot for commit 3516afb. Configure here. |
There was a problem hiding this comment.
Pull request overview
Updates Copilot CLI agent presence detection to only report “present” when Entire-managed Copilot CLI hooks are actually installed (via .github/hooks/entire.json), aligning detection behavior with the hook installation logic.
Changes:
- Change
DetectPresenceto delegate toAreHooksInstalled(instead of checking only for a.github/hooksdirectory). - Expand/adjust unit tests to cover “hooks dir exists but no
entire.json” vs “entire.jsoncontains Entire hooks”. - Update Copilot CLI agent documentation to describe the new presence detection criteria.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| cmd/entire/cli/agent/copilotcli/copilotcli.go | Makes presence detection rely on AreHooksInstalled for accurate detection of Entire hooks. |
| cmd/entire/cli/agent/copilotcli/copilotcli_test.go | Updates/extends tests to validate presence detection based on entire.json contents, not just directory existence. |
| cmd/entire/cli/agent/copilotcli/AGENT.md | Documents the new presence detection behavior and the required hook prefixes. |
No description provided.