omarchy
omarchy copied to clipboard
Avoid double-running child hook directories
Summary
Fixes hook dispatch so omarchy-hook does not execute <hook>.d/* entries after a parent hook has already run. This preserves parent-owned child dispatch behavior while retaining fallback execution for child-only hook directories.
What Changed
- Changed
bin/omarchy-hookto make parent hook execution and.dfallback dispatch mutually exclusive. - Added regression coverage for parent-owned child dispatch and child-only
.dhook execution intest/omarchy-cli-test.sh.
How it was Tested
- Ran
test/omarchy-cli-test.sh. - Ran
bin/omarchy commands --check. - Verified the PR diff contains only
bin/omarchy-hookandtest/omarchy-cli-test.sh.