Skip to content

fix: avoid duplicate interactions user-agent headers#2450

Open
MukundaKatta wants to merge 1 commit into
googleapis:mainfrom
MukundaKatta:codex/interactions-user-agent-header
Open

fix: avoid duplicate interactions user-agent headers#2450
MukundaKatta wants to merge 1 commit into
googleapis:mainfrom
MukundaKatta:codex/interactions-user-agent-header

Conversation

@MukundaKatta
Copy link
Copy Markdown
Contributor

Fixes #2309.

Summary

  • canonicalize User-Agent casing when appending SDK telemetry headers
  • prevent the generated Interactions client from merging separate User-Agent and user-agent keys
  • add regression coverage for shared HTTP options and Interactions default headers

Tests

  • uv run --with pytest --with pytest-asyncio pytest google/genai/tests/client/test_http_options.py google/genai/tests/interactions/test_auth.py -q
  • git diff --check

@Venkaiahbabuneelam Venkaiahbabuneelam self-assigned this May 26, 2026
@Venkaiahbabuneelam Venkaiahbabuneelam added the size:L Code changes between 40-100 lines label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L Code changes between 40-100 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interactions client sends duplicate User-Agent header (breaks aiohttp 3.13.4+ servers)

2 participants