Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog/unreleased/codex-stable-identity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### English

- Codex requests present the official stable CLI identity, `codex_cli_rs/0.169.0`.

### 中文

- Codex 请求使用官方稳定版 CLI 身份 `codex_cli_rs/0.169.0`。
4 changes: 2 additions & 2 deletions internal/providers/codex/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ const (
pathWhamUsage = "/wham/usage"

// Cloaking: upstream gates on the official Codex CLI UA/originator.
// rust-v0.167.2 (stable) defaults the originator to codex_cli_rs and
// rust-v0.169.0 (stable) defaults the originator to codex_cli_rs and
// builds the UA as "{originator}/{version} ({os} {os_version}; {arch}) {terminal}".
// Alpha releases stay off this pin.
UserAgent = "codex_cli_rs/0.167.2 (Mac OS 26.5.2; arm64) iTerm.app/3.6.11"
UserAgent = "codex_cli_rs/0.169.0 (Mac OS 26.5.2; arm64) iTerm.app/3.6.11"
Originator = "codex_cli_rs"

QuotaUnit = "rate_limit_window"
Expand Down
2 changes: 1 addition & 1 deletion internal/providers/codex/headers_passthrough_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TestRoutingHintCarriesAcceptedTier(t *testing.T) {
}

func TestUserAgentPinnedToOfficialStable(t *testing.T) {
if UserAgent != "codex_cli_rs/0.167.2 (Mac OS 26.5.2; arm64) iTerm.app/3.6.11" || Originator != "codex_cli_rs" {
if UserAgent != "codex_cli_rs/0.169.0 (Mac OS 26.5.2; arm64) iTerm.app/3.6.11" || Originator != "codex_cli_rs" {
t.Fatalf("UserAgent=%q Originator=%q", UserAgent, Originator)
}
}
Loading