Skip to content

Fix races in remote environment and session replacement tests - #52591

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/886112a56ff6e1016efe30dbbd0256807bc1cc85
Oct 9, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/886112a56ff6e1016efe30dbbd0256807bc1cc85

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Fix races in remote environment and session replacement tests

Why

The remote environment test can steer before the wait tool call is recorded, discarding the call. The session replacement test can close the client while agents overview RPCs are still pending, leaving the proxy writing to a closed socket.

What changed

  • Wait for the wait-for-active-environment function call event before steering the active turn.
  • Wait for AgentsOverviewThreadsLoaded before shutting down session replacement test cases that open the agents overview.

## Why

The remote environment test can steer before the wait tool call is recorded, discarding the call. The session replacement test can close the client while agents overview RPCs are still pending, leaving the proxy writing to a closed socket.

## What changed

- Wait for the `wait-for-active-environment` function call event before steering the active turn.
- Wait for `AgentsOverviewThreadsLoaded` before shutting down session replacement test cases that open the agents overview.

GitOrigin-RevId: 886112a56ff6e1016efe30dbbd0256807bc1cc85
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/886112a56ff6e1016efe30dbbd0256807bc1cc85 branch from 81b3129 to 9a59289 Compare October 9, 2026 14:21
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-09T14:21:29.297814Z 81b3129 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.

@copyberry
copyberry Bot merged commit 9a59289 into main Oct 9, 2026
5 of 8 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/886112a56ff6e1016efe30dbbd0256807bc1cc85 branch October 9, 2026 14:21
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026
@lacjae82
lacjae82 deployed to issue-triage October 9, 2026 14:42 — with Image GitHub Actions Active
@lacjae82
lacjae82 deployed to issue-triage October 9, 2026 14:42 — with Image GitHub Actions Active
@lacjae82
lacjae82 deployed to issue-triage October 9, 2026 14:42 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:43 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:43 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:43 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:44 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:45 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:45 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:45 — with Image GitHub Actions Active
@jdecaster1
jdecaster1 deployed to issue-triage October 9, 2026 14:47 — with Image GitHub Actions Active
@jdecaster1
jdecaster1 deployed to issue-triage October 9, 2026 14:47 — with Image GitHub Actions Active
@jdecaster1
jdecaster1 deployed to issue-triage October 9, 2026 14:47 — with Image GitHub Actions Active
@bekenty0311
bekenty0311 deployed to issue-triage October 9, 2026 14:48 — with Image GitHub Actions Active
@bekenty0311
bekenty0311 deployed to issue-triage October 9, 2026 14:48 — with Image GitHub Actions Active
@bekenty0311
bekenty0311 deployed to issue-triage October 9, 2026 14:48 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:49 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:49 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:49 — with Image GitHub Actions Active
@jonnyel
jonnyel deployed to issue-triage October 9, 2026 14:50 — with Image GitHub Actions Active
@jonnyel
jonnyel deployed to issue-triage October 9, 2026 14:50 — with Image GitHub Actions Active
@jonnyel
jonnyel deployed to issue-triage October 9, 2026 14:50 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:53 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:57 — with Image GitHub Actions Active
@sebastien1aa
sebastien1aa deployed to issue-triage October 9, 2026 14:57 — with Image GitHub Actions Active
@jonnyel
jonnyel deployed to issue-triage October 9, 2026 14:58 — with Image GitHub Actions Active
@damien-lofi
damien-lofi deployed to issue-triage October 9, 2026 15:09 — with Image GitHub Actions Active
@damien-lofi
damien-lofi deployed to issue-triage October 9, 2026 15:09 — with Image GitHub Actions Active
@damien-lofi
damien-lofi deployed to issue-triage October 9, 2026 15:09 — with Image GitHub Actions Active
@al3css92
al3css92 deployed to issue-triage October 9, 2026 15:12 — with Image GitHub Actions Active
@al3css92
al3css92 deployed to issue-triage October 9, 2026 15:12 — with Image GitHub Actions Active
@al3css92
al3css92 deployed to issue-triage October 9, 2026 15:12 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 9a59289f Deployed Oct 9, 2026 by al3css92 via Identify potential duplicates (all issues) #53771
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.