fix: align codex compat ua with tui

This commit is contained in:
lpf
2026-03-18 10:46:42 +08:00
parent ceb34d6c7e
commit 971ac8ddb9
3 changed files with 11 additions and 10 deletions

View File

@@ -99,7 +99,7 @@ func TestApplyAttemptProviderHeaders_CodexOAuth(t *testing.T) {
if got := req.Header.Get("Accept"); got != "text/event-stream" {
t.Fatalf("expected sse accept header, got %q", got)
}
if got := req.Header.Get("Originator"); got != "codex_cli_rs" {
if got := req.Header.Get("Originator"); got != codexCompatOriginator {
t.Fatalf("expected codex originator, got %q", got)
}
if got := req.Header.Get("Chatgpt-Account-Id"); got != "acct_123" {