Skip to content

turn metadata: per-turn non-blocking - #11677

Merged
pash-openai merged 10 commits into
mainfrom
codex/pash/http-turn-metadata-clean
Feb 13, 2026
Merged

pash-openai merged 10 commits into
mainfrom
codex/pash/http-turn-metadata-clean

Conversation

@pash-openai

@pash-openai pash-openai commented Feb 13, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

@pash-openai pash-openai changed the title turn metadata: per-turn non-blocking + has_changes turn metadata: per-turn non-blocking Feb 13, 2026
let mut client_session = model_client.new_session();
let turn_metadata_header = turn_metadata_header.await;
match client_session
.prewarm_websocket(&otel_manager, &model_info, turn_metadata_header.as_deref())

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We'll be moving towards either:

  • a separate event with a new message for this metadata
  • or appending it to the request bodies of existing WS messages

Either way, it won't be added as a header in the handshake.

@pash-openai
pash-openai marked this pull request as ready for review February 13, 2026 19:08

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

Copy link
Copy Markdown
Contributor

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: 9f55bd8694

ℹ️ 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 thread codex-rs/core/src/client.rs Resolved
pub(crate) js_repl: Arc<JsReplHandle>,
pub(crate) dynamic_tools: Vec<DynamicToolSpec>,
turn_metadata_header: OnceCell<Option<String>>,
turn_metadata_state: Arc<TurnMetadataState>,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

feel free to make this pub and avoid geters/seters

let turn_metadata_state = Arc::new(TurnMetadataState::new(
sub_id.clone(),
cwd.clone(),
Some(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

consider moving sandbox_tag calculation logic into TurnMetadataState implementation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed both + cleanup in #11782

@pash-openai
pash-openai merged commit 6c0a924 into main Feb 13, 2026
33 checks passed
@pash-openai
pash-openai deleted the codex/pash/http-turn-metadata-clean branch February 13, 2026 20:48
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 13, 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