Reduce dependency coupling in shared configuration crates (#47713)

## What changed

- Move `Provider` and `RetryConfig` into `codex-client`, retaining re-exports from `codex-api`, and switch `codex-model-provider-info` to depend on `codex-client`.
- Move feature-state metric emission into `codex-core`, preserving its behavior while removing the `codex-features` dependency on `codex-otel`.
- Explicitly enable TLS features for `tonic` in `codex-config` and `reqwest` in `codex-http-client`.
- Enable `png`'s `zlib-rs` feature directly in `codex-utils-image` to keep encoded PNG bytes stable when WebSocket dependencies are absent.

GitOrigin-RevId: 91fd63ab01b55d516b3e80e3644d06af8d5a01f6
This commit is contained in:
Ahmed Ibrahim
2026-09-24 01:50:36 +00:00
committed by copyberry
parent 4891c4e35f
commit f5960fcc22
13 changed files with 140 additions and 129 deletions
+3 -2
View File
@@ -2578,6 +2578,7 @@ dependencies = [
"rand 0.9.3",
"tokio",
"tracing",
"url",
]
[[package]]
@@ -3338,7 +3339,6 @@ name = "codex-features"
version = "0.0.0"
dependencies = [
"codex-network-proxy",
"codex-otel",
"codex-protocol",
"pretty_assertions",
"schemars 0.8.22",
@@ -3989,7 +3989,7 @@ dependencies = [
name = "codex-model-provider-info"
version = "0.0.0"
dependencies = [
"codex-api",
"codex-client",
"codex-protocol",
"codex-utils-absolute-path",
"codex-utils-redacted-string",
@@ -4956,6 +4956,7 @@ dependencies = [
"divan",
"image",
"mime_guess",
"png",
"thiserror 2.0.18",
"tokio",
]