Skip to content

fix(app-server): preserve fuzzy search completion delivery - #799

Merged
GraciousGazelles merged 7 commits into
mainfrom
fix/fuzzy-file-search-completion-backpressure-20260907
Sep 7, 2026
Merged

GraciousGazelles merged 7 commits into
mainfrom
fix/fuzzy-file-search-completion-backpressure-20260907

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • Serialize fuzzy-file-search notifications through one bounded forwarder.
  • Coalesce intermediate updates while preserving callback FIFO and completion custody.
  • Treat fuzzy-search completions as required in the in-process bounded event lane; updates remain best effort.
  • Stop blocked delivery and release pending payloads when a session is cancelled or the consumer closes.

Scope

This change is limited to the app-server fuzzy forwarder and in-process event-delivery seam. It does not change transport, telemetry, protocol schemas, remote-client behavior, or other event families.

Validation

Hosted GitHub validation is required for acceptance; no local build or test was run.

@GraciousGazelles
GraciousGazelles marked this pull request as ready for review September 7, 2026 00:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-07T00:35:30.629028Z ee53aa0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the fuzzy file search session to forward notifications asynchronously using a dedicated task and a custom queue, ensuring notification order is preserved. It also updates the in-process event delivery to handle the new session completion notification. The feedback suggests reverting the change from saturating_add to checked_add(1).expect(...) for the skipped_events counter in in_process.rs to prevent potential panic vectors in production.

Comment thread codex-rs/app-server/src/in_process.rs Resolved
Comment thread codex-rs/app-server/src/in_process.rs Resolved
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit b9c1e16 Sep 7, 2026
116 of 119 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/fuzzy-file-search-completion-backpressure-20260907 branch September 7, 2026 06:11
sedna-release-publisher Bot pushed a commit that referenced this pull request Sep 15, 2026
* fix(app-server): preserve fuzzy search notification delivery

* fix(app-server): bound fuzzy completion burst fairness

* fix(app-server): preserve fuzzy callback FIFO

* codex: format fuzzy search forwarder (#799)

* codex: apply nightly rustfmt to fuzzy search (#799)

* fix(app-server): avoid expect in skipped-event accounting

* test(app-server): cover post-update completion ordering
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