Skip to content
Merged
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-cloak-0.166.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### English

- Bump Codex outbound cloaking User-Agent to official stable `0.166.0` (`rust-v0.166.0`). CPA pin stays at 0.154.

### 中文

- Codex 出站伪装 User-Agent 升至官方稳定版 `0.166.0`(`rust-v0.166.0`)。CPA pin 仍为 0.154。
2 changes: 1 addition & 1 deletion internal/providers/codex/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
pathWhamUsage = "/wham/usage"

// Cloaking: upstream gates on the official codex CLI UA/originator.
UserAgent = "codex-tui/0.165.0 (Mac OS 26.5.2; arm64) iTerm.app/3.6.11 (codex-tui; 0.165.0)"
UserAgent = "codex-tui/0.166.0 (Mac OS 26.5.2; arm64) iTerm.app/3.6.11 (codex-tui; 0.166.0)"
Originator = "codex-tui"

QuotaUnit = "rate_limit_window"
Expand Down
4 changes: 2 additions & 2 deletions internal/providers/codex/headers_passthrough_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestWithCodexClientHeadersFilters(t *testing.T) {
}

func TestUserAgentPinnedToOfficialStable(t *testing.T) {
if !strings.Contains(UserAgent, "0.165.0") {
t.Fatalf("UserAgent=%q want 0.165.0", UserAgent)
if !strings.Contains(UserAgent, "0.166.0") {
t.Fatalf("UserAgent=%q want 0.166.0", UserAgent)
}
}
Loading