Skip to content

Add thread metadata#20257

Draft
evan-oai wants to merge 4 commits intomainfrom
codex/remote-execution-turn-analytics
Draft

Add thread metadata#20257
evan-oai wants to merge 4 commits intomainfrom
codex/remote-execution-turn-analytics

Conversation

@evan-oai
Copy link
Copy Markdown

Adds an optional execution_environment value to V2 turn/start and turn/steer requests so clients that know they are running on a remote host can mark the turn as remote. The app-server analytics reducer carries that value into codex_turn_event, which lets downstream analytics count remote turns and remote-thread activity without adding hostnames, paths, URLs, or other environment-derived identifiers.

The request field is experimental, and the public stable request schema remains filtered; the generated fixtures only pick up the shared enum definition.

Validation:

  • cargo test -p codex-analytics
  • cargo test -p codex-app-server-protocol
  • cargo check -p codex-app-server -p codex-exec -p codex-tui -p codex-app-server-test-client
  • cargo fmt --check

@evan-oai evan-oai added rust Pull requests that update rust code oai PRs contributed by OpenAI employees app-server Issues involving app server protocol or interfaces labels Apr 29, 2026
@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.

@evan-oai evan-oai changed the title Add remote execution environment to turn analytics Add thread analytics metadata Apr 29, 2026
@evan-oai evan-oai changed the title Add thread analytics metadata Add thread metadata Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app-server Issues involving app server protocol or interfaces oai PRs contributed by OpenAI employees rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants