Skip to content

Report turn trigger and source in turn analytics - #42003

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

Report turn trigger and source in turn analytics#42003
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/bbd45af4c6af52956d2394b722ea78e65e5b9bd7

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 1, 2026

Copy link
Copy Markdown

Report turn trigger and source in turn analytics

What changed

  • Add turn_trigger and codex_turn_source to codex_turn_event analytics.
  • Read the source from effective Responses metadata, preserving configured-over-client precedence and reflecting accepted steer metadata.
  • Omit trigger and source values from analytics when they exceed the existing Responses metadata value limit.

Testing

  • Cover event serialization, turn lifecycle emission, configured and client source precedence, size limits, and source updates after steering.

## What changed

- Add `turn_trigger` and `codex_turn_source` to `codex_turn_event` analytics.
- Read the source from effective Responses metadata, preserving configured-over-client precedence and reflecting accepted steer metadata.
- Omit trigger and source values from analytics when they exceed the existing Responses metadata value limit.

## Testing

- Cover event serialization, turn lifecycle emission, configured and client source precedence, size limits, and source updates after steering.

GitOrigin-RevId: bbd45af4c6af52956d2394b722ea78e65e5b9bd7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/bbd45af4c6af52956d2394b722ea78e65e5b9bd7 branch from 6c61082 to 2b7c279 Compare September 1, 2026 07:33
@copyberry
copyberry Bot merged commit 2b7c279 into main Sep 1, 2026
25 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/bbd45af4c6af52956d2394b722ea78e65e5b9bd7 branch September 1, 2026 07:34
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 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.