Skip to content

Switch Glob to rg with fallbacks and backend logging#334

Merged
GCWing merged 1 commit intoGCWing:mainfrom
wgqqqqq:codex/improve-explore-search-flow
Apr 2, 2026
Merged

Switch Glob to rg with fallbacks and backend logging#334
GCWing merged 1 commit intoGCWing:mainfrom
wgqqqqq:codex/improve-explore-search-flow

Conversation

@wgqqqqq
Copy link
Copy Markdown
Collaborator

@wgqqqqq wgqqqqq commented Apr 2, 2026

Summary

  • switch Glob local execution to prefer rg --files --glob while keeping a Rust walker fallback when rg is unavailable
  • switch remote Glob execution to prefer rg and fall back to find when the remote host does not have ripgrep installed
  • add explicit backend-selection logs so session logs show whether Glob ran via rg, remote rg, fallback walker, or remote find

Why

  • align Glob behavior more closely with the Claude-style ripgrep-backed implementation
  • avoid hard failure on local or remote environments that do not have rg
  • make backend choice observable in runtime logs for verification and debugging

Validation

  • cargo test -q -p bitfun-core glob_tool

@wgqqqqq wgqqqqq changed the title [codex] Switch Glob to rg with fallbacks and backend logging Switch Glob to rg with fallbacks and backend logging Apr 2, 2026
@wgqqqqq wgqqqqq marked this pull request as ready for review April 2, 2026 08:08
@GCWing GCWing merged commit 9265ed7 into GCWing:main Apr 2, 2026
4 checks passed
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.

2 participants