You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Troubleshooting section for UserPromptSubmit hook timeout error
Document the known hook timeout issue when NER engine takes >30s on
first run. Recommend increasing timeout to 60000ms or switching to
regex engine for faster processing. Added to both EN and ZH READMEs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,53 @@ privacy-mask follows the [agentskills.io](https://agentskills.io) SKILL.md stand
99
99
100
100
---
101
101
102
+
## Troubleshooting
103
+
104
+
### `UserPromptSubmit hook error`
105
+
106
+
If you see this error when sending images in Claude Code, it means the privacy-mask hook **timed out** before finishing. This is a known issue — the NER engine needs time to load the GLiNER model (~170MB) on first run. The image is usually still masked successfully despite the error message.
107
+
108
+
**Fix: increase the hook timeout** in `~/.claude/settings.json`:
0 commit comments