# Solution for latest version cursor CPU HIGH ISSUE

**URL:** <https://forum.cursor.com/t/solution-for-latest-version-cursor-cpu-high-issue/173599>\
**Category:** Guides\
**Tags:** linux, performance\
**Created:** [October 2, 2026, 1:30pm UTC](https://forum.cursor.com/t/solution-for-latest-version-cursor-cpu-high-issue/173599 "2026-10-02T13:30:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Em\_Strange](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@Em\_Strange](https://forum.cursor.com/u/Em_Strange)\
**Post date:** [October 2, 2026, 1:30pm UTC](https://forum.cursor.com/t/solution-for-latest-version-cursor-cpu-high-issue/173599/1 "2026-10-02T13:30:03Z")

</div>

entirely:

```auto
sudo nano /tmp/rgwrap

```

Paste this into nano:

```auto
#!/bin/bash
RG_ORIG="/usr/bin/rg"
LOG="/tmp/rg-cursor.log"
TIMEOUT=30
args=()
for arg in "$@"; do
  [["$arg" == "--follow"]] && continue
  [["$arg" == "--no-ignore"]] && continue
  [["$arg" == "--no-ignore-parent"]] && continue
  [["$arg" == "--no-ignore-global"]] && continue
  args+=("$arg")
done
echo "[$(date '+%H:%M:%S')] PID=$$ ARGS: ${args[*]}" >> "$LOG"
start=$(date +%s)
timeout "$TIMEOUT" "$RG_ORIG" "${args[@]}"
rc=$?
elapsed=$(( $(date +%s) - start ))
if [[$rc -eq 124]]; then
  echo "[$(date '+%H:%M:%S')] KILLED after ${elapsed}s" >> "$LOG"
else
  echo "[$(date '+%H:%M:%S')] DONE in ${elapsed}s (rc=$rc)" >> "$LOG"
fi
exit $rc

```

Save (Ctrl+O, Enter, Ctrl+X), then:

```auto
sudo cp /tmp/rgwrap /usr/share/cursor/resources/app/node_modules/@vscode/ripgrep/bin/rg
sudo chmod +x /usr/share/cursor/resources/app/node_modules/@vscode/ripgrep/bin/rg

```
