Skip to content

Make install hooks opt-in via --hooks#753

Open
Andy11-cpu wants to merge 1 commit into
DeusData:mainfrom
Andy11-cpu:fix/install-hooks-opt-in
Open

Make install hooks opt-in via --hooks#753
Andy11-cpu wants to merge 1 commit into
DeusData:mainfrom
Andy11-cpu:fix/install-hooks-opt-in

Conversation

@Andy11-cpu

Copy link
Copy Markdown
Contributor

Summary

  • PreToolUse / SessionStart augmenter hooks are not installed by default
  • Pass --hooks to install to opt in
  • Install plan receipts omit hook paths unless --hooks is set

Motivation

Split from #625 — avoids spawning hook augmenters on every Grep/Glob unless the user explicitly opts in.

Test plan

  • cli_install_plan_hooks_opt_in_default in test_cli.c
  • make -f Makefile.cbm test (CI)

Signed-off-by: Andy11-cpu canada11@duck.com

PreToolUse and SessionStart augmenter hooks are no longer installed by default. Pass --hooks to install to opt in. Install plan receipts omit hook paths unless --hooks is set.

Signed-off-by: Andy11-cpu <canada11@duck.com>
@Andy11-cpu Andy11-cpu requested a review from DeusData as a code owner July 2, 2026 01:56
@DeusData DeusData added enhancement New feature or request editor/integration Editor compatibility and CLI integration ux/behavior Display bugs, docs, adoption UX priority/normal Standard review queue; useful PR with ordinary maintainer urgency. labels Jul 3, 2026
@DeusData

DeusData commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Thanks for splitting out the hook opt-in behavior. Triage: installer/editor-integration UX change, currently conflicting.

Please rebase on current main. After that, review needs to confirm the product decision around default hook installation, that dry-run/install receipts are clear, and that uninstall remains idempotent for both old default-hook installs and new opt-in installs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor/integration Editor compatibility and CLI integration enhancement New feature or request priority/normal Standard review queue; useful PR with ordinary maintainer urgency. ux/behavior Display bugs, docs, adoption UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants