Repository navigation
chore(claude): add granular hook timeouts per event type #1213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,13 +79,13 @@ | |
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/notify.sh", | ||
| "timeout": 10, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| }, | ||
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/pushover.sh", | ||
| "timeout": 10, | ||
| "timeout": 6, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -96,7 +96,7 @@ | |
| "hooks": [ | ||
| { | ||
| "command": "git-ai checkpoint claude --hook-input stdin", | ||
| "timeout": 10, | ||
| "timeout": 15, | ||
| "type": "command" | ||
| } | ||
| ], | ||
|
|
@@ -109,13 +109,13 @@ | |
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/notify.sh", | ||
| "timeout": 10, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| }, | ||
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/pushover.sh", | ||
| "timeout": 10, | ||
| "timeout": 6, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -126,6 +126,7 @@ | |
| "hooks": [ | ||
| { | ||
| "command": "$HOME/.claude/hooks/rtk-rewrite.sh", | ||
| "timeout": 5, | ||
| "type": "command" | ||
| }, | ||
| { | ||
|
|
@@ -142,13 +143,13 @@ | |
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/notify.sh", | ||
| "timeout": 10, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| }, | ||
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/pushover.sh", | ||
| "timeout": 10, | ||
| "timeout": 6, | ||
| "type": "command" | ||
| } | ||
| ], | ||
|
|
@@ -158,11 +159,20 @@ | |
| "hooks": [ | ||
| { | ||
| "command": "git-ai checkpoint claude --hook-input stdin", | ||
| "timeout": 10, | ||
| "timeout": 15, | ||
| "type": "command" | ||
| } | ||
| ], | ||
| "matcher": "Write|Edit|MultiEdit" | ||
| }, | ||
| { | ||
| "matcher": "Bash", | ||
| "hooks": [ | ||
| { | ||
| "type": "command", | ||
| "command": "dcg" | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved
|
||
| } | ||
| ] | ||
|
Comment on lines
+217
to
+226
Comment on lines
+218
to
+226
|
||
| } | ||
|
Comment on lines
+217
to
227
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This adds a duplicate hook configuration for } |
||
| ], | ||
| "PermissionRequest": [ | ||
|
|
@@ -171,13 +181,13 @@ | |
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/notify.sh", | ||
| "timeout": 10, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| }, | ||
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/pushover.sh", | ||
| "timeout": 10, | ||
| "timeout": 6, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -189,13 +199,13 @@ | |
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/notify.sh", | ||
| "timeout": 10, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| }, | ||
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/pushover.sh", | ||
| "timeout": 10, | ||
| "timeout": 6, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -207,13 +217,13 @@ | |
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/notify.sh", | ||
| "timeout": 10, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| }, | ||
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/pushover.sh", | ||
| "timeout": 10, | ||
| "timeout": 6, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -225,13 +235,13 @@ | |
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/notify.sh", | ||
| "timeout": 10, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| }, | ||
| { | ||
| "async": true, | ||
| "command": "$HOME/.claude/pushover.sh", | ||
| "timeout": 10, | ||
| "timeout": 6, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -243,7 +253,7 @@ | |
| { | ||
| "async": true, | ||
| "command": "jq -c '{timestamp: (now | todate), prompt: .prompt[0:500]}' >> ~/.claude/prompt-history.jsonl", | ||
| "timeout": 5, | ||
| "timeout": 3, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -254,6 +264,7 @@ | |
| "hooks": [ | ||
| { | ||
| "command": "bash -c 'NAME=$(jq -r .name); REPO=$(git rev-parse --show-toplevel); DIR=\"$REPO/.worktrees/$NAME\"; wt switch --create \"$NAME\" --no-cd -y >&2 && echo \"$DIR\"'", | ||
| "timeout": 30, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -264,6 +275,7 @@ | |
| "hooks": [ | ||
| { | ||
| "command": "bash -c 'WORKTREE_PATH=$(jq -r .worktree_path); BRANCH=$(basename \"$WORKTREE_PATH\"); wt remove \"$BRANCH\" -y >&2'", | ||
| "timeout": 30, | ||
| "type": "command" | ||
| } | ||
| ] | ||
|
|
@@ -389,4 +401,4 @@ | |
| "type": "command" | ||
| }, | ||
| "teammateMode": "tmux" | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.