Move retry backoff into codex-async-utils (#46330)

Move the exponential backoff helper into `codex-async-utils` so
`codex-cloud-config` can use it without a runtime dependency on `codex-core`.
Keep `codex-core` as a development dependency for cloud-config tests.

Preserve the existing retry delays and jitter, and re-export `backoff` from
`codex_core::util` for existing callers.

GitOrigin-RevId: 338f3194e166e77003da532310ff5be78a0eac9e
This commit is contained in:
Michael Bolin authored and copyberry committed 2026-09-18 00:25:37 +00:00
1 parent 608e4cc9a1
commit ff73d63e64
7 files changed
+28 -15

No files matched your search

+2
View File
@@ -2478,6 +2478,7 @@ name = "codex-async-utils"
version = "0.0.0"
dependencies = [
"pretty_assertions",
"rand 0.9.3",
"tokio",
"tokio-util",
]
@@ -2696,6 +2697,7 @@ dependencies = [
"base64 0.22.1",
"chrono",
"codex-agent-identity",
"codex-async-utils",
"codex-backend-client",
"codex-config",
"codex-core",