mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why Codex callers need to read feature gates and dynamic configs locally and stop using account-scoped decisions when the authentication owner changes. ## What changed - Bootstrap ChatGPT evaluations through the Codex backend. Initialize API-key and installation identities through the Statsig SDK. - Share one background worker per process to retry initialization and refresh evaluations through the SDK. Keep the last successful values on refresh failure while the authentication owner remains current. - Expose `Gate` and `DynamicConfig` readers that return `false` and an empty JSON object, respectively, when current evaluations are unavailable. ## Testing Add a mock-server test for bootstrap retries after credential changes, local gate and config reads, and value retention after a failed refresh followed by replacement on a successful refresh. GitOrigin-RevId: c02cd976a44229518a7159eb2bd35107ef280b56
32 lines
846 B
TOML
32 lines
846 B
TOML
[package]
|
|
name = "codex-statsig"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
bytes = { workspace = true }
|
|
codex-backend-client = { workspace = true }
|
|
codex-http-client = { workspace = true }
|
|
codex-login = { workspace = true }
|
|
codex-model-provider = { workspace = true }
|
|
http = { workspace = true }
|
|
oai-statsig-rust-client = { version = "0.1.0", default-features = false }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt", "sync", "time"] }
|
|
tracing = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
pretty_assertions = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
|
wiremock = { workspace = true }
|