Skip to content

test(exec-server): stabilize detached session resume - #726

Merged
GraciousGazelles merged 3 commits into
mainfrom
successor/exec-server-session-stability-w13397
Sep 3, 2026
Merged

GraciousGazelles merged 3 commits into
mainfrom
successor/exec-server-session-stability-w13397

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • keep the detached-session test process alive through piped stdin
  • centralize transient session-attachment recovery behind one bounded absolute deadline
  • surface unexpected JSON-RPC responses with their identifiers and error details

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 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-03T12:14:00.938646Z e6bca56 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.

@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 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.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit d3dcf9f Sep 3, 2026
89 checks passed
@GraciousGazelles
GraciousGazelles deleted the successor/exec-server-session-stability-w13397 branch September 3, 2026 13:56
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