Lightweight coding agent that runs in your terminal
Rust
Log cf-ray header in client traces (#3488)
pakrym-oai3b5a5412bbd7
diff --git a/codex-rs/core/src/client.rs b/codex-rs/core/src/client.rsindex 8c19451804..e6e21df396 100644--- a/codex-rs/core/src/client.rs+++ b/codex-rs/core/src/client.rs@@ -240,10 +240,10 @@ impl ModelClient {let res = req_builder.send().await;if let Ok(resp) = &res {trace!(- "Response status: {}, request-id: {}",+ "Response status: {}, cf-ray: {}",resp.status(),resp.headers()- .get("x-request-id")+ .get("cf-ray").map(|v| v.to_str().unwrap_or_default()).unwrap_or_default());