Skip to content

fix(file-search): serialize matcher query completion - #719

Merged
GraciousGazelles merged 2 commits into
mainfrom
repair/file-search-health-w12498
Sep 2, 2026
Merged

GraciousGazelles merged 2 commits into
mainfrom
repair/file-search-health-w12498

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • keep query updates in flight until the matcher reports a changed snapshot
  • coalesce updates while matching is active and complete only after the walk and query are both settled
  • preserve the existing bounded matcher cadence and session-local shutdown behavior

Why

On slower scheduling, a canceled Nucleo pass could be followed by a running=false result while the Rayon worker was still queued. That allowed completion against a stale snapshot after the filesystem walk had finished.

Validation

  • cargo fmt --all -- --check
  • cargo test -p codex-file-search --lib -- --nocapture (15 tests, 10 consecutive runs)
  • targeted post-walk query and sibling-session tests

The change is limited to codex-rs/file-search/src/lib.rs; it does not change matching, walking, filtering, scoring, or cancellation ownership.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 2, 2026
Merged via the queue into main with commit e04e091 Sep 2, 2026
105 of 111 checks passed
@GraciousGazelles
GraciousGazelles deleted the repair/file-search-health-w12498 branch September 2, 2026 04:08
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.

1 participant