[BUG] Claude Code Issue Report: type: "prompt" hook causes JavaScript heap out of memory

Resolved 💬 3 comments Opened Dec 6, 2025 by maojiususu Closed Feb 5, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Using type: "prompt" hooks in settings.local.json causes JavaScript heap out of memory crash, regardless of which hook event is used (UserPromptSubmit, Stop, etc.).

What Should Happen?

The prompt hook should work without crashing. Haiku should evaluate the prompt and return a decision, then Claude
Code continues normally.

Error Messages/Logs

Steps to Reproduce

claude_code_prompt_hook_bug_report.md

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude Code v2.0.55

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗