Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [{"type": "command", "command": "npx block-no-verify@1.1.2"}]
Copy link

Copilot AI Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npx block-no-verify@1.1.2 can prompt to install the package when it isn’t already available (npm exec confirmation). In a hook this can hang/block all Bash tool usage. Use a non-interactive invocation (e.g., add the appropriate "yes"/non-interactive flag or use an equivalent exec command that never prompts).

Suggested change
"hooks": [{"type": "command", "command": "npx block-no-verify@1.1.2"}]
"hooks": [{"type": "command", "command": "npx --yes block-no-verify@1.1.2"}]

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PreToolUse hook is matched on all Bash tool calls, so it will run for every shell command an agent executes. Running npx each time adds noticeable startup/network overhead and introduces a failure point unrelated to git. Consider a lightweight local wrapper script that first checks tool_input.command for git + --no-verify and only then invokes the heavier logic (or blocks directly).

Suggested change
"hooks": [{"type": "command", "command": "npx block-no-verify@1.1.2"}]
"hooks": [{"type": "command", "command": "bash .claude/hooks/block-no-verify.sh"}]

Copilot uses AI. Check for mistakes.
}
],
"PostToolUse": [
{
"matcher": "Edit|Write",
Expand Down
Loading