We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143e881 commit 4f8bc30Copy full SHA for 4f8bc30
cycode/cli/apps/ai_guardrails/consts.py
@@ -6,6 +6,7 @@
6
"""
7
8
import platform
9
+from copy import deepcopy
10
from enum import Enum
11
from pathlib import Path
12
from typing import NamedTuple
@@ -123,17 +124,17 @@ def _get_claude_code_hooks_config(async_mode: bool = False) -> dict:
123
124
],
125
'UserPromptSubmit': [
126
{
- 'hooks': [hook_entry.copy()],
127
+ 'hooks': [deepcopy(hook_entry)],
128
}
129
130
'PreToolUse': [
131
132
'matcher': 'Read',
133
134
},
135
136
'matcher': 'mcp__.*',
137
138
139
140
0 commit comments