Skip to content

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Jan 15, 2026

The policy_stop_hook.sh was passing --changed-files argument to the Python evaluate_policies module, but the module doesn't accept this argument. This caused argparse to fail, which was suppressed by 2>/dev/null || echo '{}', resulting in the hook always outputting empty JSON instead of blocking JSON when policies fire.

Changes:

  • Sync installed hooks (.deepwork/jobs/) with source (src/deepwork/standard_jobs/)
  • Remove obsolete get_changed_files.sh and capture_work_tree.sh
  • Add capture_prompt_work_tree.sh for compare_to: prompt mode
  • Add shell script tests in tests/shell_script_tests/ to verify the hook correctly outputs blocking JSON when policies fire

claude and others added 4 commits January 15, 2026 19:43
The policy_stop_hook.sh was passing --changed-files argument to the
Python evaluate_policies module, but the module doesn't accept this
argument. This caused argparse to fail, which was suppressed by
`2>/dev/null || echo '{}'`, resulting in the hook always outputting
empty JSON instead of blocking JSON when policies fire.

Changes:
- Sync installed hooks (.deepwork/jobs/) with source (src/deepwork/standard_jobs/)
- Remove obsolete get_changed_files.sh and capture_work_tree.sh
- Add capture_prompt_work_tree.sh for compare_to: prompt mode
- Add shell script tests in tests/shell_script_tests/ to verify
  the hook correctly outputs blocking JSON when policies fire
Running `deepwork install` synced several updates from source:
- Added browser automation capability guidance to job definition steps
- Added supplemental_file_references.md documentation
- Updated generated commands in .claude/ and .gemini/
nhorton and others added 3 commits January 15, 2026 12:55
- Update architecture.md to reflect current hook files:
  - capture_work_tree.sh → capture_prompt_work_tree.sh
  - Removed get_changed_files.sh (logic in Python evaluator)
- Add Fixed section to CHANGELOG for stop hook blocking bug
@nhorton nhorton merged commit 1b2cb53 into main Jan 15, 2026
2 checks passed
@nhorton nhorton deleted the claude/fix-duplicate-stop-hooks-oFlql branch January 15, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants