Wake sleeping threads for queued agent mail - #34852
Merged
copyberry[bot] merged 1 commit intoJul 23, 2026
Merged
Conversation
## Why An idle thread with an outstanding durable sleep must resume when agent work arrives, even when that message would normally remain queued without triggering a turn. ## What changed - Treat any pending mailbox message as wake-up work while a durable sleep is attached to the thread. - Keep requiring `trigger_turn` for idle threads that are not durably asleep. - Cover waking a sleeping root thread from queue-only agent mail and persisting the message in thread history. GitOrigin-RevId: e361ac1b104436d4d63aebfe5e2422691a1cc139
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/e361ac1b104436d4d63aebfe5e2422691a1cc139
branch
from
July 23, 2026 01:05
10af208 to
44d76c6
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/e361ac1b104436d4d63aebfe5e2422691a1cc139
branch
July 23, 2026 01:06
Shallow-dusty
temporarily deployed
to
issue-triage
July 23, 2026 01:56 — with
GitHub Actions
Inactive
Shallow-dusty
temporarily deployed
to
issue-triage
July 23, 2026 01:56 — with
GitHub Actions
Inactive
Shallow-dusty
temporarily deployed
to
issue-triage
July 23, 2026 01:56 — with
GitHub Actions
Inactive
Shallow-dusty
temporarily deployed
to
issue-triage
July 23, 2026 01:57 — with
GitHub Actions
Inactive
leeys-dnulbo
temporarily deployed
to
issue-triage
July 23, 2026 02:51 — with
GitHub Actions
Inactive
leeys-dnulbo
temporarily deployed
to
issue-triage
July 23, 2026 02:51 — with
GitHub Actions
Inactive
leeys-dnulbo
temporarily deployed
to
issue-triage
July 23, 2026 02:51 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wake sleeping threads for queued agent mail
Why
An idle thread with an outstanding durable sleep must resume when agent work
arrives, even when that message would normally remain queued without triggering a
turn.
What changed
attached to the thread.
trigger_turnfor idle threads that are not durably asleep.the message in thread history.