Skip to content

fix: don't --follow by default for grep and other things using ripgrep#11415

Merged
rekram1-node merged 1 commit intodevfrom
ripgrep-adjustment
Jan 31, 2026
Merged

fix: don't --follow by default for grep and other things using ripgrep#11415
rekram1-node merged 1 commit intodevfrom
ripgrep-adjustment

Conversation

@rekram1-node
Copy link
Collaborator

fixes: #9676

(Not following symlinks is the default behaviour of almost all traditional UNIX CLI tools)

…p (Not following symlinks is the default behaviour of almost all traditional UNIX CLI tools)
@rekram1-node rekram1-node merged commit c0e71c4 into dev Jan 31, 2026
6 checks passed
@rekram1-node rekram1-node deleted the ripgrep-adjustment branch January 31, 2026 05:38
alexyaroshuk pushed a commit to alexyaroshuk/opencode that referenced this pull request Feb 1, 2026
kdcokenny added a commit to kdcokenny/cerebras-code-cli that referenced this pull request Feb 3, 2026
Port upstream fixes from anomalyco/opencode:
- PR #11415: Don't follow symlinks by default (prevents CPU exhaustion)
- PR #11553: Show hidden files by default in @ autocomplete

Changes:
- ripgrep.ts files(): Add hidden/follow params with conditional logic
  - --follow only added when follow: true (opt-in)
  - --hidden added unless hidden: false (opt-out)
- ripgrep.ts search(): Add follow param with conditional logic
- grep.ts: Add --hidden to args for hidden file search

Refs:
- anomalyco/opencode#11415
- anomalyco/opencode#11553
ishaksebsib pushed a commit to ishaksebsib/opencode that referenced this pull request Feb 4, 2026
ishaksebsib pushed a commit to ishaksebsib/opencode that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ripgrep processes get stuck and consume 700% CPU, freezing entire system

1 participant