Skip to content

Conversation

@pakrym-oai
Copy link
Collaborator

No description provided.

@pakrym-oai pakrym-oai changed the title Remove conversation_id and keep bring back request ID logging Remove conversation_id and bring back request ID logging Dec 10, 2025
}

fn extract_request_ids(response: &Response) -> HashMap<String, String> {
["cf-ray", "x-request-id", "x-oai-request-id"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is some kind of business logic... I would not have this here. What if we use this client to reach another API?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not required that the header exists and most calls we make are to OpenAI APIs. I'd rather get every request ID possible.

use std::sync::Mutex;
use std::sync::OnceLock;

pub use codex_client::CodexHttpClient;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's maybe drop this and have proper import when we need them instead

@pakrym-oai pakrym-oai merged commit 4b684c5 into main Dec 10, 2025
24 of 25 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/remove-conversation-id-and-keep-bring-back-request-id-logging branch December 10, 2025 18:44
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2025
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.

3 participants