Skip to content

fix: use codex-namespaced clientInfo.name instead of host application name#200

Open
liby wants to merge 1 commit intoopenai:mainfrom
liby:fix/client-info-name
Open

fix: use codex-namespaced clientInfo.name instead of host application name#200
liby wants to merge 1 commit intoopenai:mainfrom
liby:fix/client-info-name

Conversation

@liby
Copy link
Copy Markdown

@liby liby commented Apr 10, 2026

Closes #199

Summary

  • Rename clientInfo.name from "Claude Code" to "codex_claude_code" in DEFAULT_CLIENT_INFO
  • Aligns with the established codex_ + host platform naming convention used by all other Codex surfaces (codex_cli_rs, codex-tui, codex_vscode, Codex Desktop)
  • Prevents user-agent collision with the host application (Claude Code already uses Claude Code/x.x.x for its own Anthropic API requests)
  • Fixes compliance log misattribution where Codex usage was incorrectly attributed to Claude Code

Test plan

  • Verified no other code paths depend on the old "Claude Code" value (clientInfo is only consumed by DEFAULT_CLIENT_INFO and passed through to initialize)
  • node --check passes on the modified file
  • Manual test: run /codex:review from Claude Code and verify the upstream request UA is codex_claude_code/x.x.x

… name

The plugin currently sets `clientInfo.name` to `"Claude Code"`, which
causes the app-server to present a `Claude Code/x.x.x` user-agent to
upstream services. This is problematic for three reasons:

1. UA collision: Claude Code (Anthropic's CLI) already uses
   `Claude Code/x.x.x` as its own UA, making it impossible for upstream
   services to distinguish between native Claude Code requests and Codex
   requests routed through Claude Code.

2. Naming convention violation: every other Codex surface uses a
   `codex_*` / `Codex *` prefix (`codex_cli_rs`, `codex-tui`,
   `codex_vscode`, `Codex Desktop`). This plugin is the only one using
   the host application's name instead.

3. Compliance log misattribution: OpenAI's docs state that
   `clientInfo.name` feeds the Compliance Logs Platform. Using
   "Claude Code" incorrectly attributes Codex usage to a different
   vendor's product.

Rename to `codex_claude_code` to follow the established `codex_` + host
platform pattern (consistent with `codex_vscode`).
@liby liby requested a review from a team April 10, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clientInfo.name should use codex-namespaced identifier instead of host application name

1 participant