{"version":"2.0.63","anchor":"ripgrep-eagain-error-auto-retry","canonical_anchor":"ripgrep-eagain-error-auto-retry","heading":"Ripgrep EAGAIN Error Auto-Retry","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.63\/e\/ripgrep-eagain-error-auto-retry","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.63","markdown":"### Ripgrep EAGAIN Error Auto-Retry\n\n**What:** Automatic retry mechanism when ripgrep encounters \"Resource temporarily unavailable\" (EAGAIN\/error 11) errors.\n\n**How it works:** When ripgrep fails with an EAGAIN error (common in high-concurrency environments), Claude Code now:\n\n- Detects the error from stderr output\n- Logs a debug message\n- Retries the search with single-threaded mode (`-j 1`)\n- Sets a global flag to use single-threaded mode for all subsequent ripgrep calls\n\n**Details:**\n\n- Error detection function `lJ9()` checks for \"os error 11\" or \"Resource temporarily unavailable\" strings\n- Only retries once to prevent infinite loops\n- Telemetry event `tengu_ripgrep_eagain_retry` is logged when this occurs\n- **Evidence:** `lJ9()` function at line 17125, retry logic at lines 17163-17178"}