// Kept in lockstep with the codex CLI actually installed in the OmniRoute image // (bin/omniroute-fix.Containerfile installs `codex` latest; app-server runtime is // 0.149.0 as of 2026-08-22). When the image's codex is bumped, refresh this so the // fingerprint OpenAI sees from the OAuth/Responses face matches the real client // version. Overridable per-deployment via the CODEX_CLIENT_VERSION env. export const DEFAULT_CODEX_CLIENT_VERSION = "0.149.0"; export const CODEX_CLI_RS_ORIGINATOR = "codex_cli_rs"; export function getCodexCliRsHeaders( version = DEFAULT_CODEX_CLIENT_VERSION ): Record { return { "User-Agent": `${CODEX_CLI_RS_ORIGINATOR}/${version}`, originator: CODEX_CLI_RS_ORIGINATOR, }; }