Skip to content

fix: add missing hook fields and event types to settings schema#377

Merged
nhorton merged 1 commit intomainfrom
fix/settings-schema-hooks-if-field
Apr 14, 2026
Merged

fix: add missing hook fields and event types to settings schema#377
nhorton merged 1 commit intomainfrom
fix/settings-schema-hooks-if-field

Conversation

@nhorton
Copy link
Copy Markdown
Contributor

@nhorton nhorton commented Apr 14, 2026

Summary

  • Adds if, asyncRewake, once, shell fields to hookCommand definitions (all four hook types: command, prompt, agent, http)
  • Adds missing hook event types: StopFailure, PermissionDenied, TaskCreated, FileChanged, CwdChanged
  • The if field was blocking plugin hooks that use permission rule syntax to filter tool events

Test plan

  • JSON validates successfully
  • All 1289 tests pass
  • Reviewed by claude-code-guide agent for completeness against official docs — all 27 hook events and all hook fields confirmed present

🤖 Generated with Claude Code

Add `if`, `asyncRewake`, `once`, `shell` fields to hookCommand
definitions and add missing hook events: StopFailure, PermissionDenied,
TaskCreated, FileChanged, CwdChanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nhorton nhorton added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 27fc309 Apr 14, 2026
5 checks passed
@nhorton nhorton deleted the fix/settings-schema-hooks-if-field branch April 14, 2026 20:04
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.

1 participant