claude-code - 💡(How to fix) Fix [BUG] Claude Code hangs indefinitely after Glob "**/*.h" with 101 results — Stop button unresponsive [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#54128Fetched 2026-04-28 06:38:29
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×1

Error Message

Error Messages/Logs

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?

Version: Claude Code VSCode Extension OS: Windows 11 Pro 10.0.26200 Model: claude-sonnet-4-6 Claude Code became completely unresponsive for 30+ minutes after a Glob tool call returned 101 results (pattern: "**/*.h"). The UI showed "Forging..." indefinitely. The Stop/Interrupt button was visible but did not respond to clicks. The only recovery option was to forcefully close VSCode.

What Should Happen?

Either completes the task or the Stop button interrupts execution.

Error Messages/Logs

Steps to Reproduce

  1. Ask Claude to find where a macro is defined in a C project
  2. Claude reads main.c, then runs Glob pattern "**/*.h"
  3. Glob returns 101 files
  4. Claude hangs at the next step ("Forging..." state) indefinitely

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude Code VSCode Extension

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by optimizing the Glob pattern to reduce the number of results, potentially preventing Claude Code from becoming unresponsive.

Guidance

  • Review the Glob pattern "**/*.h" to ensure it's necessary to search all header files, as this might be causing the performance issue.
  • Consider limiting the search scope or using a more specific pattern to reduce the number of results returned by Glob.
  • Test the Glob pattern in a smaller project or with a limited number of files to see if the issue persists.
  • If the issue is reproducible, try to identify the exact point at which Claude Code becomes unresponsive to provide more insight into the problem.

Example

No code snippet is provided as the issue is related to the performance of the Claude Code VSCode Extension and not a specific code error.

Notes

The root cause of the issue is unclear, but it's likely related to the performance of the Claude Code extension when handling a large number of files returned by the Glob pattern. Further investigation is needed to determine the exact cause.

Recommendation

Apply workaround: Optimize the Glob pattern to reduce the number of results, as this is a non-invasive change that can potentially resolve the issue without introducing new risks.

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] Claude Code hangs indefinitely after Glob "**/*.h" with 101 results — Stop button unresponsive [1 comments, 2 participants]