claude-code - 💡(How to fix) Fix [BUG] Cannot read properties of undefined (reading 'speed') [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#45002Fetched 2026-04-09 08:15:41
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×1

Error Message

没有完整 stack trace 因为 catch 块只输出了 error.message。

Code Example

没有完整 stack trace 因为 catch 块只输出了 error.message。
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

在 ~/.claude 目录下使用 Claude Code 时,statusline 偶尔显示 Cannot read properties of undefined (reading 'speed'),使用了 claude-hud插件 v0.0.11。没有完整 stack trace 因为 catch 块只输出了 error.message。

What Should Happen?

在 ~/.claude 目录下使用 Claude Code 时,statusline 偶尔显示 Cannot read properties of undefined (reading 'speed'),使用了 claude-hud插件 v0.0.11。

Error Messages/Logs

没有完整 stack trace 因为 catch 块只输出了 error.message。

Steps to Reproduce

None

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.92

Claude Code Version

2.1.92

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely caused by an incompatibility between the current version of Claude Code and the claude-hud plugin v0.0.11, and downgrading to version 2.1.92 may resolve the issue.

Guidance

  • Verify that the issue is indeed related to the claude-hud plugin by disabling it and checking if the error persists.
  • Check the release notes of Claude Code and claude-hud plugin to see if there are any known issues or compatibility problems between the two versions.
  • Since the issue is reported as a regression, try to reproduce the issue with the last working version (2.1.92) to confirm that it was indeed working previously.
  • Consider reaching out to the developers of the claude-hud plugin to report the issue and ask for their assistance in resolving the compatibility problem.

Notes

The lack of a complete stack trace and steps to reproduce the issue makes it difficult to provide a more specific solution. Additionally, the fact that the issue is reported as a regression suggests that the problem may be related to a change in the Claude Code or claude-hud plugin.

Recommendation

Apply workaround: Downgrade to version 2.1.92, as it is reported to be the last working version. This may resolve the issue until a compatible version of the claude-hud plugin is released.

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