claude-code - 💡(How to fix) Fix [Bug] Prompt execution interrupted immediately upon submission [1 comments, 2 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#52937Fetched 2026-04-25 06:16:44
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n at async B4A (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2712:12663)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2880:7278","timestamp":"2026-04-24T16:59:30.271Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n at async B4A (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2712:12663)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2880:7278","timestamp":"2026-04-24T16:59:30.271Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:31.199Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:31.678Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:32.034Z"}]

Code Example

[{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at async B4A (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2712:12663)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2880:7278","timestamp":"2026-04-24T16:59:30.271Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at async B4A (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2712:12663)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2880:7278","timestamp":"2026-04-24T16:59:30.271Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n    at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n    at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:31.199Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n    at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n    at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:31.678Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n    at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n    at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:32.034Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Every time I type a prompt, it immediately gets interrupted as soon as I send it

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.0.76
  • Feedback ID: 93a43488-d02c-4d25-8236-ea8184607777

Errors

[{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at async B4A (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2712:12663)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2880:7278","timestamp":"2026-04-24T16:59:30.271Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at async B4A (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2712:12663)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2880:7278","timestamp":"2026-04-24T16:59:30.271Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n    at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n    at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:31.199Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n    at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n    at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:31.678Z"},{"error":"TypeError: Cannot read properties of null (reading 'effortLevel')\n    at hH0 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1845:3909)\n    at ew (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2207:4166)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:1990\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:2831\n    at async J07 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:4939)\n    at async rK1 (file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2640:3678)\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2709:3796\n    at async file:///Users/richard/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2625:3877","timestamp":"2026-04-24T16:59:32.034Z"}]

extent analysis

TL;DR

The issue is likely caused by a null value being passed to a function that expects an object with an 'effortLevel' property, and a potential workaround is to check the input data for null values before processing.

Guidance

  • The error messages indicate a TypeError caused by trying to read properties of null, specifically 'effortLevel', which suggests that the input data is missing or null.
  • To mitigate this issue, you can add null checks before processing the input data to ensure that it is not null or undefined.
  • You can also try to identify the source of the null input data and fix the issue at the root cause.
  • Additionally, you can try to update the code to handle null input data more robustly, such as by providing a default value or skipping the processing of null data.

Example

if (inputData && inputData.effortLevel) {
  // process the input data
} else {
  // handle the null or missing input data
}

Notes

The provided error messages are all similar and indicate a TypeError caused by trying to read properties of null. Without more information about the code and the input data, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Add null checks to the input data before processing to prevent the TypeError. This will allow the code to handle null input data more robustly and prevent the error from occurring.

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] Prompt execution interrupted immediately upon submission [1 comments, 2 participants]