Skip to content

fix: preserve nontransparent live resumption#5676

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

fix: preserve nontransparent live resumption#5676
he-yufeng wants to merge 1 commit into
google:mainfrom
he-yufeng:fix/non-vertex-live-resumption

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

Fixes #5675.

BaseLlmFlow.run_live always set session_resumption.transparent = True when reconnecting with a saved live-session handle. That overwrote an explicit transparent=False config, which is the configuration needed for direct Gemini API live-session resumption because GoogleLLM.connect rejects transparent resumption on the Gemini API backend.

This keeps the existing default behavior for reconnects that have no session resumption config yet, but preserves a caller-provided non-transparent config.

Validation

python -m pytest tests/unittests/flows/llm_flows/test_base_llm_flow.py -q
# 29 passed

pyink --check src/google/adk/flows/llm_flows/base_llm_flow.py tests/unittests/flows/llm_flows/test_base_llm_flow.py
isort --check-only src/google/adk/flows/llm_flows/base_llm_flow.py tests/unittests/flows/llm_flows/test_base_llm_flow.py
python -m py_compile src/google/adk/flows/llm_flows/base_llm_flow.py tests/unittests/flows/llm_flows/test_base_llm_flow.py
git diff --check

@he-yufeng he-yufeng force-pushed the fix/non-vertex-live-resumption branch from 2db20f6 to c2a0436 Compare May 13, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session resumption crashes on non-Vertex AI backend — blocks usage of Gemini 3.1 Flash Live

1 participant