Skip to content

fix(live): keep receive open across turns#2304

Open
MukundaKatta wants to merge 2 commits intogoogleapis:mainfrom
MukundaKatta:codex/python-genai-live-receive-multiturn
Open

fix(live): keep receive open across turns#2304
MukundaKatta wants to merge 2 commits intogoogleapis:mainfrom
MukundaKatta:codex/python-genai-live-receive-multiturn

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • stop AsyncLiveSession.receive() from exiting after the first turn_complete event
  • keep receive() usable for multi-turn live sessions that iterate once for the whole connection
  • add a regression test that mocks _receive() across multiple turns

Testing

  • python3 -m py_compile google/genai/live.py google/genai/tests/live/test_live_response.py
  • python3 -m pytest google/genai/tests/live/test_live_response.py -k receive (fails locally: pytest_asyncio is not installed in this environment)
  • python3 smoke check for the mocked receive loop (blocked locally because google.auth is not installed in this environment)

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

Labels

size:M Code changes between 10-40 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants