From eee8fd261f4d1a9d08a096ad34341fd84e0464d7 Mon Sep 17 00:00:00 2001 From: Bryan Lee <38807139+liby@users.noreply.github.com> Date: Fri, 10 Apr 2026 09:54:43 +0800 Subject: [PATCH] fix: use codex-namespaced clientInfo.name instead of host application 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`). --- plugins/codex/scripts/lib/app-server.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/codex/scripts/lib/app-server.mjs b/plugins/codex/scripts/lib/app-server.mjs index 127c837..5b47f52 100644 --- a/plugins/codex/scripts/lib/app-server.mjs +++ b/plugins/codex/scripts/lib/app-server.mjs @@ -25,7 +25,7 @@ export const BROKER_BUSY_RPC_CODE = -32001; /** @type {ClientInfo} */ const DEFAULT_CLIENT_INFO = { title: "Codex Plugin", - name: "Claude Code", + name: "codex_claude_code", version: PLUGIN_MANIFEST.version ?? "0.0.0" };