claude-code - 💡(How to fix) Fix [Bug] UserPromptSubmit hook error: Missing required field "hookEventName" in hookSpecificOutput [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55172Fetched 2026-05-01 05:44:22
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/nix010825/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n at n68 (/$bunfs/root/src/entrypoints/cli.js:2770:2177)\n at sM6 (/$bunfs/root/src/entrypoints/cli.js:2770:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T02:02:37.358Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/nix010825/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n    at n68 (/$bunfs/root/src/entrypoints/cli.js:2770:2177)\n    at sM6 (/$bunfs/root/src/entrypoints/cli.js:2770:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T02:02:37.358Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description essas mensagens ficam aparecendo toda hora ⎿ UserPromptSubmit hook error ⎿ Hook JSON output validation failed — hookSpecificOutput is missing required field "hookEventName"

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 2.1.126
  • Feedback ID: 4a5bcb04-de62-47fc-88bd-04493e673acf

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/nix010825/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n    at n68 (/$bunfs/root/src/entrypoints/cli.js:2770:2177)\n    at sM6 (/$bunfs/root/src/entrypoints/cli.js:2770:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-01T02:02:37.358Z"}]

extent analysis

TL;DR

The issue is likely caused by a missing required field "hookEventName" in the hookSpecificOutput, which can be fixed by ensuring the output validation includes this field.

Guidance

  • Review the UserPromptSubmit hook configuration to ensure it includes the required "hookEventName" field in its output.
  • Verify that the hookSpecificOutput is correctly formatted and includes all necessary fields, including "hookEventName".
  • Check the documentation for the UserPromptSubmit hook to confirm the required output fields and their formats.
  • Investigate the error message "Lock acquisition failed" to determine if it's related to the main issue or a separate problem.

Example

No code snippet is provided as the issue does not include sufficient code context.

Notes

The "Lock acquisition failed" error may be a separate issue related to multi-process scenarios, and its relation to the main problem is unclear.

Recommendation

Apply workaround: Ensure the "hookEventName" field is included in the hookSpecificOutput to resolve the JSON output validation error, and investigate the "Lock acquisition failed" error separately.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] UserPromptSubmit hook error: Missing required field "hookEventName" in hookSpecificOutput [1 participants]