omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Avoid double-running child hook directories

Open khushveer007 opened this issue 5 months ago • 0 comments

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-hook to make parent hook execution and .d fallback dispatch mutually exclusive.
  • Added regression coverage for parent-owned child dispatch and child-only .d hook execution in test/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-hook and test/omarchy-cli-test.sh.

khushveer007 avatar Jun 09 '26 10:06 khushveer007