claude-code - 💡(How to fix) Fix [Bug] Lack of progress indication during long API response delays [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#48831Fetched 2026-04-16 06:49:43
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n at exithandler (node:child_process:424:5)\n at ChildProcess.errorhandler (node:child_process:436:5)\n at ChildProcess.emit (node:events:508:20)\n at abortChildProcess (node:child_process:759:13)\n at AbortSignal.onAbortListener (node:child_process:829:7)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:02.628Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n at dN.emit (node:events:508:20)\n at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n at listOnTimeout (node:internal/timers:605:17)\n at process.processTimers (node:internal/timers:541:7)\n at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at listOnTimeout (node:internal/timers:567:9)\n at process.processTimers (node:internal/timers:541:7)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19162\n at async za (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:494:3773)\n at async tOA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:18923)\n at async CA5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19557)","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n at dN.emit (node:events:508:20)\n at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n at listOnTimeout (node:internal/timers:605:17)\n at process.processTimers (node:internal/timers:541:7)\n at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:538:9)\n at async qFY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:7695)\n at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:9000","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n at exithandler (node:child_process:424:5)\n at ChildProcess.errorhandler (node:child_process:436:5)\n at ChildProcess.emit (node:events:508:20)\n at abortChildProcess (node:child_process:759:13)\n at AbortSignal.onAbortListener (node:child_process:829:7)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:05.410Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n at dN.emit (node:events:508:20)\n at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n at listOnTimeout (node:internal/timers:605:17)\n at process.processTimers (node:internal/timers:541:7)\n at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async mC1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:512:3865)","timestamp":"2026-04-15T23:16…

Fix Action

Fix / Workaround

Errors

[{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n    at exithandler (node:child_process:424:5)\n    at ChildProcess.errorhandler (node:child_process:436:5)\n    at ChildProcess.emit (node:events:508:20)\n    at abortChildProcess (node:child_process:759:13)\n    at AbortSignal.onAbortListener (node:child_process:829:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n    at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:02.628Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at listOnTimeout (node:internal/timers:567:9)\n    at process.processTimers (node:internal/timers:541:7)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19162\n    at async za (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:494:3773)\n    at async tOA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:18923)\n    at async CA5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19557)","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:538:9)\n    at async qFY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:7695)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:9000","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n    at exithandler (node:child_process:424:5)\n    at ChildProcess.errorhandler (node:child_process:436:5)\n    at ChildProcess.emit (node:events:508:20)\n    at abortChildProcess (node:child_process:759:13)\n    at AbortSignal.onAbortListener (node:child_process:829:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n    at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:05.410Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async mC1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:512:3865)","timestamp":"2026-04-15T23:16

Code Example

[{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n    at exithandler (node:child_process:424:5)\n    at ChildProcess.errorhandler (node:child_process:436:5)\n    at ChildProcess.emit (node:events:508:20)\n    at abortChildProcess (node:child_process:759:13)\n    at AbortSignal.onAbortListener (node:child_process:829:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n    at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:02.628Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at listOnTimeout (node:internal/timers:567:9)\n    at process.processTimers (node:internal/timers:541:7)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19162\n    at async za (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:494:3773)\n    at async tOA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:18923)\n    at async CA5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19557)","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:538:9)\n    at async qFY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:7695)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:9000","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n    at exithandler (node:child_process:424:5)\n    at ChildProcess.errorhandler (node:child_process:436:5)\n    at ChildProcess.emit (node:events:508:20)\n    at abortChildProcess (node:child_process:759:13)\n    at AbortSignal.onAbortListener (node:child_process:829:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n    at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:05.410Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async mC1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:512:3865)","timestamp":"2026-04-15T23:16
RAW_BUFFERClick to expand / collapse

Bug Description sometimes even if the network is great, claude code takes too much time to respond, just counting time without any indication of any kind... sometimes it takes up to 3 minutes.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.110
  • Feedback ID: 45785923-44f3-425e-99bc-2c0b13f668da

Errors

[{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n    at exithandler (node:child_process:424:5)\n    at ChildProcess.errorhandler (node:child_process:436:5)\n    at ChildProcess.emit (node:events:508:20)\n    at abortChildProcess (node:child_process:759:13)\n    at AbortSignal.onAbortListener (node:child_process:829:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n    at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:02.628Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at listOnTimeout (node:internal/timers:567:9)\n    at process.processTimers (node:internal/timers:541:7)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19162\n    at async za (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:494:3773)\n    at async tOA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:18923)\n    at async CA5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8670:19557)","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:538:9)\n    at async qFY (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:7695)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:6524:9000","timestamp":"2026-04-15T23:16:02.630Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n    at A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:235)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:759:455\n    at exithandler (node:child_process:424:5)\n    at ChildProcess.errorhandler (node:child_process:436:5)\n    at ChildProcess.emit (node:events:508:20)\n    at abortChildProcess (node:child_process:759:13)\n    at AbortSignal.onAbortListener (node:child_process:829:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:776:26)\n    at runAbort (node:internal/abort_controller:488:10)","timestamp":"2026-04-15T23:16:05.410Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at dN.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:13080)\n    at dN.emit (node:events:508:20)\n    at Timeout._onTimeout (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at GU6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async mC1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:512:3865)","timestamp":"2026-04-15T23:16

Note: Content was truncated.

extent analysis

TL;DR

The issue can be mitigated by adjusting the timeout settings for Ripgrep and Axios requests in the Claude Code CLI.

Guidance

  1. Increase Ripgrep timeout: The error messages indicate that Ripgrep searches are timing out after 20 seconds. Consider increasing this timeout value to allow for more time to complete searches.
  2. Adjust Axios timeout: Axios requests are timing out after 5000ms (5 seconds). Increasing this timeout may help prevent these errors, especially if the requests are taking longer than expected to complete.
  3. Optimize search paths and patterns: The error messages suggest searching a more specific path or pattern to reduce the time it takes for Ripgrep searches to complete.
  4. Monitor and analyze performance: Regularly monitor the performance of Claude Code CLI and analyze the errors to identify any patterns or recurring issues that may need to be addressed.

Example

No specific code snippet can be provided without modifying the existing codebase, but the adjustments would involve changing the timeout values for Ripgrep and Axios in the cli.js file.

Notes

The provided information does not specify how to directly modify the timeout values, so further investigation into the Claude Code CLI documentation or source code may be necessary. Additionally, increasing timeouts may not be suitable for all environments and should be tested to ensure it does not negatively impact performance.

Recommendation

Apply workaround: Adjust the timeout settings for Ripgrep and Axios requests to mitigate the issue, as the root cause seems to be related to these timeouts. This approach allows for immediate action to be taken without waiting for a potential update to the Claude Code CLI.

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] Lack of progress indication during long API response delays [1 comments, 2 participants]