Skip to content

Classify voice session failures and record terminal outcomes - #52756

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5aeda6e766093e3fce7206560aa83b6f7770dddb
Oct 10, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5aeda6e766093e3fce7206560aa83b6f7770dddb

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Classify voice session failures and record terminal outcomes

Why

Voice failure metrics lacked cause and lifecycle phase, and session durations were recorded before the final outcome was known. A failed control send could also overwrite a more specific WebRTC error.

What changed

  • Tag codex.voice.session.failure with bounded cause and phase values, recording at most one failure per session.
  • Capture duration when stopping and emit codex.voice.session.duration at cleanup with a success or failure outcome.
  • Carry typed WebRTC errors into the TUI, preserve existing errors when control sends fail, and avoid duplicate errors after startup failure.
  • Record app-server disconnect failures for background voice sessions as well as the visible session.

Testing

Add coverage for terminal outcome and failure metric attributes, preservation of specific startup and audio-session errors, and startup failures without duplicate control-channel errors.

## Why

Voice failure metrics lacked cause and lifecycle phase, and session durations were recorded before the final outcome was known. A failed control send could also overwrite a more specific WebRTC error.

## What changed

- Tag `codex.voice.session.failure` with bounded `cause` and `phase` values, recording at most one failure per session.
- Capture duration when stopping and emit `codex.voice.session.duration` at cleanup with a `success` or `failure` outcome.
- Carry typed WebRTC errors into the TUI, preserve existing errors when control sends fail, and avoid duplicate errors after startup failure.
- Record app-server disconnect failures for background voice sessions as well as the visible session.

## Testing

Add coverage for terminal outcome and failure metric attributes, preservation of specific startup and audio-session errors, and startup failures without duplicate control-channel errors.

GitOrigin-RevId: 5aeda6e766093e3fce7206560aa83b6f7770dddb
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/5aeda6e766093e3fce7206560aa83b6f7770dddb branch from d0ef52e to 322bbf4 Compare October 10, 2026 02:55
@copyberry
copyberry Bot merged commit 322bbf4 into main Oct 10, 2026
1 check failed
@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-10T02:55:12.284314Z d0ef52e 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 deleted the copyberry/codex-internal-to-codex-oss/5aeda6e766093e3fce7206560aa83b6f7770dddb branch October 10, 2026 02:55
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@HATBAZAAR
HATBAZAAR deployed to issue-triage October 10, 2026 02:55 — with Image GitHub Actions Active
@HATBAZAAR
HATBAZAAR deployed to issue-triage October 10, 2026 02:55 — with Image GitHub Actions Active
@HATBAZAAR
HATBAZAAR deployed to issue-triage October 10, 2026 02:55 — with Image GitHub Actions Active
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 10, 2026
@chn7365
chn7365 deployed to issue-triage October 10, 2026 03:14 — with Image GitHub Actions Active
@chn7365
chn7365 deployed to issue-triage October 10, 2026 03:14 — with Image GitHub Actions Active
@chn7365
chn7365 deployed to issue-triage October 10, 2026 03:14 — with Image GitHub Actions Active
@chn7365
chn7365 deployed to issue-triage October 10, 2026 03:15 — with Image GitHub Actions Active
@NemuKei
NemuKei deployed to issue-triage October 10, 2026 03:27 — with Image GitHub Actions Active
@NemuKei
NemuKei deployed to issue-triage October 10, 2026 03:27 — with Image GitHub Actions Active
@NemuKei
NemuKei deployed to issue-triage October 10, 2026 03:27 — with Image GitHub Actions Active
@NemuKei
NemuKei deployed to issue-triage October 10, 2026 03:28 — with Image GitHub Actions Active
@olivioloyer
olivioloyer deployed to issue-triage October 10, 2026 03:32 — with Image GitHub Actions Active
@olivioloyer
olivioloyer deployed to issue-triage October 10, 2026 03:32 — with Image GitHub Actions Active
@MonoCo3217
MonoCo3217 deployed to issue-triage October 10, 2026 03:54 — with Image GitHub Actions Active
@MonoCo3217
MonoCo3217 deployed to issue-triage October 10, 2026 03:54 — with Image GitHub Actions Active
@MonoCo3217
MonoCo3217 deployed to issue-triage October 10, 2026 03:54 — with Image GitHub Actions Active
@frei-x
frei-x deployed to issue-triage October 10, 2026 03:55 — with Image GitHub Actions Active
@frei-x
frei-x deployed to issue-triage October 10, 2026 03:55 — with Image GitHub Actions Active
@frei-x
frei-x deployed to issue-triage October 10, 2026 03:55 — with Image GitHub Actions Active
@MonoCo3217
MonoCo3217 deployed to issue-triage October 10, 2026 03:55 — with Image GitHub Actions Active
@frei-x
frei-x deployed to issue-triage October 10, 2026 03:57 — with Image GitHub Actions Active
@Dnic101
Dnic101 deployed to issue-triage October 10, 2026 03:59 — with Image GitHub Actions Active
@Dnic101
Dnic101 deployed to issue-triage October 10, 2026 03:59 — with Image GitHub Actions Active
@Dnic101
Dnic101 deployed to issue-triage October 10, 2026 03:59 — with Image GitHub Actions Active
@Zjuhui
Zjuhui deployed to issue-triage October 10, 2026 04:03 — with Image GitHub Actions Active
@Zjuhui
Zjuhui deployed to issue-triage October 10, 2026 04:03 — with Image GitHub Actions Active
@Zjuhui
Zjuhui deployed to issue-triage October 10, 2026 04:03 — with Image GitHub Actions Active
@Zjuhui
Zjuhui deployed to issue-triage October 10, 2026 04:04 — with Image GitHub Actions Active
@Extravent3
Extravent3 deployed to issue-triage October 10, 2026 04:07 — with Image GitHub Actions Active
@Extravent3
Extravent3 deployed to issue-triage October 10, 2026 04:07 — with Image GitHub Actions Active
@Extravent3
Extravent3 deployed to issue-triage October 10, 2026 04:07 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 322bbf4d Deployed Oct 10, 2026 by NemuKei via Translate non-English issue #19007
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.