Skip to content

Conversation

@jif-oai
Copy link
Collaborator

@jif-oai jif-oai commented Jan 16, 2026

No description provided.

@jif-oai
Copy link
Collaborator Author

jif-oai commented Jan 19, 2026

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45fe79c462

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +147 to +151
let timer = turn_context
.client
.get_otel_manager()
.start_timer("codex.turn.e2e_duration_ms", &[])
.ok();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep e2e timer alive through completion dispatch

The codex.turn.e2e_duration_ms timer is stored in RunningTask and will be dropped as soon as on_task_finished removes the task from ActiveTurn, which happens before close_unified_exec_processes() and before the TurnComplete event is sent. This means the “e2e” metric under-reports whenever process teardown or event dispatch is slow, and it also makes completion timings inconsistent with the abort path (where the timer survives until after the abort event is sent). If you want the metric to reflect user‑visible turn completion, keep the timer alive until after send_event/cleanup or record explicitly at that point.

Useful? React with 👍 / 👎.

@jif-oai jif-oai merged commit 7ebe13f into main Jan 19, 2026
32 checks passed
@jif-oai jif-oai deleted the jif/timer-total-turn branch January 19, 2026 10:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 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.

3 participants