Skip to content

fix(app-server): keep bounded facade control responsive - #747

Merged
GraciousGazelles merged 7 commits into
mainfrom
successor/w13408-appserver-facade-20260905
Sep 5, 2026
Merged

GraciousGazelles merged 7 commits into
mainfrom
successor/w13408-appserver-facade-20260905

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

This is a current-main successor to #729. It preserves the bounded in-process app-server facade while keeping request, cancellation, server-request, and shutdown control responsive when the caller has not drained events.

  • Keep the public event queue bounded and sequence events through a dedicated forwarder.
  • Retain FIFO custody for required notifications and server requests; report best-effort loss with Lagged.
  • Reject unsupported in-process auth-refresh requests without blocking the event/control worker.
  • Bound shutdown and close the event consumer in the correct order.
  • Add regressions for unread required notifications, request custody, consumer closure, and shutdown ordering.

The candidate is based on current main (a8a117155ca4971dd85c18592e14e2cc70a177ba) and changes only:

  • codex-rs/app-server-client/src/lib.rs
  • codex-rs/app-server/src/in_process.rs

The current downstream protocol does not yet expose the newer upstream ThreadQueueChanged notification or async ItemCompleted delivery discriminator. This bounded implementation retains all current downstream ItemCompleted notifications and records the protocol reconciliation for a future sync rather than importing upstream-only types here.

Validation

Hosted CI is required for the exact head. The candidate must pass the repository's protected checks, focused app-server/client coverage, and the fresh review gate before merge.

@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

chatgpt-codex-connector Bot commented Sep 4, 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-04T23:40:20.205939Z f4c939d PR opened
ℹ️ 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.

@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Fresh Luna review identified one bounded accounting defect in the two-stage facade: if the outer queue drops an inner Lagged { skipped: N } marker, it must preserve N rather than count the marker as one event. Commit 233b15a5ae fixes this with cumulative nested-marker accounting and adds forward_in_process_event_preserves_nested_lag_counts.

The same review found the current downstream/upstream taxonomy reconciliation truthful: downstream lacks ThreadQueueChanged and async ItemCompleted delivery metadata, so current all-ItemCompleted required classification remains conservative and documented. No remote architecture or monolith changes were added.

Local formatting passed. The focused local test was attempted at low priority but the shared /dev/shm filesystem exhausted space during dependency compilation (rustc: No space left on device, exit 101); hosted exact-head checks remain authoritative.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 1a27c9c Sep 5, 2026
89 checks passed
@GraciousGazelles
GraciousGazelles deleted the successor/w13408-appserver-facade-20260905 branch September 5, 2026 03:38
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