releases.sh

Gemini 3.x live sessions now preserve chat roles; SDK upgraded to 2.x

@livekit/agents-plugin-google@1.6.1

July 31, 2026Agents JSView original ↗
1 enhancement2 fixesThis release1 enhancementImprovements to existing features2 fixesBug fixesAI-tallied from the release notes
From the original release noteView original ↗

Patch Changes

  • Upgrade @google/genai to 2.x and seed the initial chat context of Gemini 3.x live sessions with its original roles. - #2162 (@toubatbrian)

    Models whose chat context cannot be updated mid-session (the 3.x live models) close the socket on a prefill containing model turns, so an initial context had to be flattened into user turns to survive. Those sessions now send historyConfig.initialHistoryInClientContent, which tells the server the leading clientContent is history, and the prefill keeps its user/assistant roles.

    Per the HistoryConfig reference the seeded history never triggers a model call and the conversation then starts through realtimeInput, so a context ending on a user question is seeded as the completed exchanges followed by that question as realtime text. Left inside the history it would be filed away unanswered.

    Also report when a user turn began on the final input transcript. Gemini withholds that transcript until its reply has finished generating, which had every reply landing ahead of the question it answered in the Cloud transcript.

  • Updated dependencies [5010952, db3263b, 37eda82, 6b6ba2b, 67620fb, fd46904, d4edb58, 2446c9e, 262a602, d5d8d04, 0daf8d6, 9d38c3e, 238a58c, f7e9c0c, 16c30ca]:

    • @livekit/agents@1.6.1

Fetched July 31, 2026

Gemini 3.x live sessions now preserve chat roles; SDK… — releases.sh