Match the image OAuth test path and gateway behavior: check for a custom user_agent credential first, fall back to codexCLIUserAgent only when no custom UA is configured.
Match the image OAuth test path and gateway behavior: check for a custom user_agent credential first, fall back to codexCLIUserAgent only when no custom UA is configured.