Repository navigation
test(exec-server): stabilize detached session resume - #726
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Code Review
This pull request enhances the test harness for the execution server by introducing a robust session resumption mechanism (resume_initialize) and refactoring event-waiting logic to use absolute deadlines (timeout_at). Additionally, tests in process.rs have been updated to use this new helper and to handle unexpected responses more gracefully with anyhow::bail! instead of panics. The reviewer pointed out a critical race condition in wait_for_resume_initialize_response where asynchronous notifications or requests received before the initialization response would cause the method to fail immediately, and suggested looping to ignore these events.
Summary
This is a focused downstream port of the upstream detached-session test stabilization, retaining the existing harness deadline and response-routing hardening.
Validation
Hosted macOS ARM and Linux validation should run on this pull request; no heavy local validation was run.