Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Follow symlinks during file search (#4453)

Ricardo Ander-Egg553db8def1f0
diff --git a/codex-rs/file-search/src/lib.rs b/codex-rs/file-search/src/lib.rs
index 0ae512102a..0afc9ea6a2 100644
--- a/codex-rs/file-search/src/lib.rs
+++ b/codex-rs/file-search/src/lib.rs
@@ -159,6 +159,8 @@ pub fn run(
.threads(num_walk_builder_threads)
// Allow hidden entries.
.hidden(false)
+ // Follow symlinks to search their contents.
+ .follow_links(true)
// Don't require git to be present to apply to apply git-related ignore rules.
.require_git(false);
if !respect_gitignore {