Skip to content

Populate workspace kind on Codex turn events#25135

Merged
knittel-openai merged 1 commit into
mainfrom
codex/workspace-kind-turn-event
Jun 2, 2026
Merged

Populate workspace kind on Codex turn events#25135
knittel-openai merged 1 commit into
mainfrom
codex/workspace-kind-turn-event

Conversation

@knittel-openai
Copy link
Copy Markdown
Contributor

@knittel-openai knittel-openai commented May 29, 2026

Summary

  • carry workspace_kind from Responses API client metadata into the turn resolved analytics fact
  • serialize the optional value on codex_turn_event
  • cover both the turn metadata source and turn event serialization

The workspace_kind tells us whether a thread had a project attached vs projectless. this is an indicator for who is adopting Codex for knowledge work outside of coding

Testing

  • env UV_CACHE_DIR=/private/tmp/uv-cache /private/tmp/cargo-tools/bin/just fmt
  • env PATH=/private/tmp/cargo-tools/bin:$PATH CARGO_HOME=/private/tmp/cargo-home UV_CACHE_DIR=/private/tmp/uv-cache /private/tmp/cargo-tools/bin/just test -p codex-analytics
  • env PATH=/private/tmp/cargo-tools/bin:$PATH CARGO_HOME=/private/tmp/cargo-home UV_CACHE_DIR=/private/tmp/uv-cache /private/tmp/cargo-tools/bin/just test -p codex-core turn_metadata

Paired with openai/openai#970661, which keeps forwarding the same metadata key through Responses API headers.

@knittel-openai knittel-openai requested a review from a team as a code owner May 29, 2026 19:07
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@knittel-openai
Copy link
Copy Markdown
Contributor Author

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

github-actions Bot added a commit that referenced this pull request May 29, 2026
@knittel-openai knittel-openai force-pushed the codex/workspace-kind-turn-event branch from 012a6e0 to b76dc3f Compare May 29, 2026 20:55
@knittel-openai knittel-openai merged commit b794182 into main Jun 2, 2026
31 checks passed
@knittel-openai knittel-openai deleted the codex/workspace-kind-turn-event branch June 2, 2026 19:46
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 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.

2 participants