Repository navigation
Add trace-safe diagnostics for Noise relay request progress - #58025
Merged
copyberry[bot] merged 1 commit intoOct 29, 2026
Conversation
## Why WebSocket heartbeat progress only establishes relay reachability, not executor receipt or completion. A blocked write or full application queue can also leave a Pong unread, so diagnosing stalled requests requires separate transport and application progress signals. ## What changed - Trace request dequeue and completed writes under the request's trace context, and emit an executor receipt span immediately after decoding, before queueing or execution completes. - Record RPC enqueue wait time and queue occupancy. - Add bounded heartbeat events and a transport closure summary with fixed exit categories, queue depths, message counters, and read/write timing. Distinguish write timeouts from missing Pongs and report application delivery backpressure separately. - Keep request methods, IDs, payloads, raw errors, and peer-provided text out of the new trace-safe transport diagnostics. ## Testing Add coverage for blocked data and keepalive writes, missing Pongs, saturated application queues, read errors, and responsive relays without application responses. Verify trace correlation, immediate receipt span export, bounded Pong telemetry, and exclusion of payloads and raw error text. GitOrigin-RevId: b58b2f747c4050dcde8efb408c35ecadd3561b5f
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/b58b2f747c4050dcde8efb408c35ecadd3561b5f
branch
from
October 29, 2026 08:51
e633192 to
a369736
Compare
Contributor
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. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/b58b2f747c4050dcde8efb408c35ecadd3561b5f
branch
October 29, 2026 08:51
Squibby368
temporarily deployed
to
issue-triage
October 29, 2026 09:31 — with
GitHub Actions
Inactive
Squibby368
temporarily deployed
to
issue-triage
October 29, 2026 09:31 — with
GitHub Actions
Inactive
Squibby368
temporarily deployed
to
issue-triage
October 29, 2026 09:31 — with
GitHub Actions
Inactive
Squibby368
temporarily deployed
to
issue-triage
October 29, 2026 09:32 — with
GitHub Actions
Inactive
hieumediapub00-art
temporarily deployed
to
issue-triage
October 29, 2026 09:34 — with
GitHub Actions
Inactive
hieumediapub00-art
temporarily deployed
to
issue-triage
October 29, 2026 09:34 — with
GitHub Actions
Inactive
hieumediapub00-art
temporarily deployed
to
issue-triage
October 29, 2026 09:34 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Add trace-safe diagnostics for Noise relay request progress
Why
WebSocket heartbeat progress only establishes relay reachability, not executor receipt or completion. A blocked write or full application queue can also leave a Pong unread, so diagnosing stalled requests requires separate transport and application progress signals.
What changed
Testing
Add coverage for blocked data and keepalive writes, missing Pongs, saturated application queues, read errors, and responsive relays without application responses. Verify trace correlation, immediate receipt span export, bounded Pong telemetry, and exclusion of payloads and raw error text.