Skip to content

Add CodexHttpClient wrapper with request logging#5564

Merged
pakrym-oai merged 2 commits intomainfrom
codex/wrap-default_client-in-custom-client-struct
Oct 24, 2025
Merged

Add CodexHttpClient wrapper with request logging#5564
pakrym-oai merged 2 commits intomainfrom
codex/wrap-default_client-in-custom-client-struct

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Summary

  • wrap the default reqwest::Client inside a new CodexHttpClient/CodexRequestBuilder pair and log the HTTP method, URL, and status for each request
  • update the auth/model/provider plumbing to use the new builder helpers so headers and bearer auth continue to be applied consistently
  • add the shared http dependency that backs the header conversion helpers

Testing

  • CODEX_SANDBOX=seatbelt CODEX_SANDBOX_NETWORK_DISABLED=1 cargo test -p codex-core
  • CODEX_SANDBOX=seatbelt CODEX_SANDBOX_NETWORK_DISABLED=1 cargo test -p codex-chatgpt
  • CODEX_SANDBOX=seatbelt CODEX_SANDBOX_NETWORK_DISABLED=1 cargo test -p codex-tui

https://chatgpt.com/codex/tasks/task_i_68fa5038c17483208b1148661c5873be

@pakrym-oai pakrym-oai added the codex Label used by connector to tag PRs that have been reviewed by Codex label Oct 23, 2025 — with ChatGPT Codex Connector
core/default_client.rs: centralize HTTP method/url handling and improve request debug logging
@pakrym-oai pakrym-oai enabled auto-merge (squash) October 24, 2025 03:56
@pakrym-oai pakrym-oai disabled auto-merge October 24, 2025 16:47
@pakrym-oai pakrym-oai merged commit 061862a into main Oct 24, 2025
31 of 36 checks passed
@pakrym-oai pakrym-oai deleted the codex/wrap-default_client-in-custom-client-struct branch October 24, 2025 16:47
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

codex Label used by connector to tag PRs that have been reviewed by Codex

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants