mirror of
https://github.com/openai/codex.git
synced 2026-04-28 00:25:56 +00:00
[codex] add context-window lineage headers (#16758)
This change adds client-owned context-window and parent thread id headers to all requests to responses api.
This commit is contained in:
committed by
GitHub
parent
39097ab65d
commit
9e19004bc2
@@ -129,10 +129,16 @@ async fn responses_stream_includes_subagent_header_on_review() {
|
||||
}
|
||||
|
||||
let request = request_recorder.single_request();
|
||||
let expected_window_id = format!("{conversation_id}:0");
|
||||
assert_eq!(
|
||||
request.header("x-openai-subagent").as_deref(),
|
||||
Some("review")
|
||||
);
|
||||
assert_eq!(
|
||||
request.header("x-codex-window-id").as_deref(),
|
||||
Some(expected_window_id.as_str())
|
||||
);
|
||||
assert_eq!(request.header("x-codex-parent-thread-id"), None);
|
||||
assert_eq!(request.header("x-codex-sandbox"), None);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user