Skip to content

fix: preserve live resumption transparency#5784

Open
he-yufeng wants to merge 1 commit into
google:mainfrom
he-yufeng:fix/live-resumption-transparent
Open

fix: preserve live resumption transparency#5784
he-yufeng wants to merge 1 commit into
google:mainfrom
he-yufeng:fix/live-resumption-transparent

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • stop forcing session_resumption.transparent = True when run_live() reconnects with a saved handle
  • keep the caller's original SessionResumptionConfig.transparent value intact
  • add a regression test for the default basic session-resumption path

Why

Gemini Developer API supports live session resumption, but not transparent session resumption. The reconnect path was mutating the config from a basic resumption request into transparent resumption, which makes Gemini reject the reconnect.

To verify

  • uv run pytest tests/unittests/flows/llm_flows/test_base_llm_flow.py -q
  • uv run pyink --check src/google/adk/flows/llm_flows/base_llm_flow.py tests/unittests/flows/llm_flows/test_base_llm_flow.py
  • git diff --check

Fixes #5771

@adk-bot adk-bot added the live [Component] This issue is related to live, voice and video chat label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

live [Component] This issue is related to live, voice and video chat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: run_live() forces session_resumption.transparent=True on reconnect, breaking Gemini Developer API session resumption

2 participants