Skip to content

Fix sleep interruption test event handling and fixture lifetime - #47813

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/957165c2f20cc4d76df763cd41fd99816b477be3
Sep 24, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/957165c2f20cc4d76df763cd41fd99816b477be3

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Fix sleep interruption test event handling and fixture lifetime

Why

The list-voices barrier can consume the sleep completion event that any_new_input_interrupts_sleep needs to observe.

What changed

Enqueue agent mail directly in the test so the subsequent wait can observe sleep completion. Keep the TestCodex fixture alive for the duration of the test by cloning its codex handle instead of moving it out.

## Why

The list-voices barrier can consume the sleep completion event that `any_new_input_interrupts_sleep` needs to observe.

## What changed

Enqueue agent mail directly in the test so the subsequent wait can observe sleep completion. Keep the `TestCodex` fixture alive for the duration of the test by cloning its `codex` handle instead of moving it out.

GitOrigin-RevId: 957165c2f20cc4d76df763cd41fd99816b477be3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/957165c2f20cc4d76df763cd41fd99816b477be3 branch from 95832bd to 8ac495b Compare September 24, 2026 10:56
@copyberry
copyberry Bot merged commit 8ac495b into main Sep 24, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/957165c2f20cc4d76df763cd41fd99816b477be3 branch September 24, 2026 10:56
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2026
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.

1 participant