ADK Python 2.15.1 (24 November 2026) reverts the aggregated final event for streamed remote A2A answers. What each stream shape persists, and a client-side fix.
A fix, a revert, and the same open question
ADK Python 2.15.1 was released on 24 November 2026. Among its fixes is a revert in the A2A integration: commit c4bdc84 removes the change that made RemoteA2aAgent emit an aggregated non-partial event after streamed artifact chunks. That change had landed on 16 November as commit dbae28d3c and shipped in 2.15.0 on 19 November. The revert's message gives the reason directly: an integration that forwards both the partial events and the new non-partial event to its client displays the streamed answer twice. It also states the consequence: a streamed answer that is not closed with last_chunk is again not persisted to the session, and a follow-up will re-land the fix behind a setting. Issue 7255 is reopened.
So for the five days between 19 and 24 November, ADK users on 2.15.0 got persisted remote answers and some got duplicated screens; now they get clean screens and, in some streams, no persisted answer. Neither release is wrong in isolation. They disagree about who owns two different jobs, showing an answer as it arrives and recording the answer once it is complete. This guide separates those jobs, shows which stream shapes each ADK version handles, and gives client-side rules that work regardless of the release you run.
How the stream looks on the wire
An A2A server that streams a long answer sends TaskArtifactUpdateEvent messages. In the A2A protocol definition each carries an artifact and two booleans: append, meaning the content should be appended to a previously sent artifact with the same ID, and last_chunk, meaning this is the final chunk of the artifact. The specification also says a task stream closes when the task reaches a terminal state such as completed, failed or canceled.
Because these are proto3 booleans, an omitted last_chunk reads as false. The 2.15.0 commit message notes that servers, including proto3 implementations, may stream every chunk with last_chunk false and close the turn only with a status update, or may close the artifact with a delta chunk that has both append and last_chunk set. Those are two of the three shapes a client must handle. The third is a server that streams deltas and then sends the complete artifact once more with append false and last_chunk true.
What 2.15.1 does with each shape
In the 2.15.1 source, the streaming path converts each artifact update from that update's parts only, and sets the event's partial flag to the negation of last_chunk. A comment explains why it does not convert the accumulated artifact instead: that would re-emit earlier chunks and duplicate content already streamed. ADK does not persist partial events to the session, as issue 7255 describes, so what reaches the session is whatever arrives with last_chunk true.
The companion model replays the three shapes for a short synthetic answer from a remote order specialist at Belgavi's Book Store, "Your order BK-2231 ships Friday.", and records what each client behaviour persists and what two kinds of display render.
stream shape per update (2.15.1) aggregate (2.15.0 idea) aggregate marked as replacement
deltas, then COMPLETED status persists "" persists full, shows twice persists full, shows once
last_chunk on final delta persists last delta persists full, shows twice persists full, shows once
full artifact at the end persists full persists full, shows twice persists full, shows onceThe per-update behaviour persists nothing for the first shape and only "ships Friday." for the second, because the only non-partial event carries the last delta. That matches the history recorded in the issue, which notes that an older release set partial to not last_chunk and the final event carried only the last delta. It is correct only for servers that resend the whole artifact at the end.
The aggregate behaviour persists the full answer for every shape. Its cost is on screen. The display that keys text by artifact ID, adding or replacing according to each event, sees the partial deltas and then a new event whose content is the whole answer with nothing saying that it repeats them, and it renders the answer twice. That is the duplicate the revert describes.
Separate the display stream from the record
The way out is to give the final event an explicit meaning. A display needs to know that this event replaces the provisional text it has been showing for the artifact. The record needs one complete, non-partial event per artifact. In the companion model, marking the aggregated event as a replacement makes the keyed display render the answer once and the session store it once, for all three shapes.
# Author: Sandeep Belgavi. One final, complete record per artifact, marked as replacing the partials.
def final_event(artifact_id: str, text: str) -> dict:
return {"artifact_id": artifact_id, "text": text, "partial": False, "append": False}
def on_artifact_update(buf: dict, update: dict, emit) -> None:
aid = update["artifact_id"]
buf[aid] = buf.get(aid, "") + update["text"] if update["append"] else update["text"]
emit({"artifact_id": aid, "text": update["text"], "partial": True, "append": update["append"]})
if update["last_chunk"]:
emit(final_event(aid, buf.pop(aid)))
def on_terminal_status(buf: dict, emit) -> None:
for aid, text in list(buf.items()): # artifacts never closed with last_chunk
emit(final_event(aid, buf.pop(aid)))The display side follows two rules. Treat partial text as provisional and keyed by artifact ID, never as an addition to the conversation. When a non-partial event replaces an artifact, swap the provisional text for it. An integration that appends every event to a chat transcript, the simplest possible display, duplicates any final event however it is marked, so that integration must filter partial events or final events, not both.
What to do on each ADK version
On 2.15.1, if your remote agents stream deltas without closing them with a final whole-artifact chunk, assume their answers are missing from the parent session. Check by inspecting session events after a delegated turn, as the issue's reporter did. The issue describes a workaround: a subclass that passes partial events through unchanged, buffers their non-thought text, and either rewrites a terminal non-partial event's text to the full buffer or emits one at the end. That is the same separation as above.
On 2.15.0, if your client forwards ADK events to a user interface, check for duplicated answers, and filter by the partial flag in the forwarding layer rather than downstream.
On either version, the most robust fix sits with the server when you control it: close each artifact with a chunk that carries the complete content and last_chunk true, or make sure clients aggregate on the terminal status. Watch the release notes for the follow-up that re-lands aggregation behind a setting, and pin the version in which you verified the behaviour.
Find out which shape your servers send
Before choosing a fix, record the raw stream for a delegated turn. Log each artifact update's artifact ID, append flag and last_chunk flag, and the final status, for every remote agent you call. Servers built on different SDKs, or different versions of the same one, can send different shapes for the same answer, and a single dashboard of persisted answer lengths per remote agent will show which ones arrive empty or truncated after an upgrade.
Failure modes worth testing
A task that ends in failed or canceled after streaming part of an answer. Decide whether the partial text should be persisted as a final event marked incomplete, or dropped. The 2.15.0 change considered several boundary states, including input-required, to be the end of an interaction; your client should make an explicit choice for each.
Multiple artifacts in one task. Buffers must be keyed by artifact ID, and the terminal-state flush must emit one record per open artifact.
Thought or progress text. The issue's workaround excludes parts marked as thoughts from the buffered answer; a persisted answer that includes progress chatter is complete but wrong.
When none of this matters
Non-streaming calls return a message or a task with the full artifact, and RemoteA2aAgent persists those normally. If latency to first token does not matter for a delegated call, turning streaming off for that call is the simplest way to get a single complete record.
Verification
Write a test server that emits each of the three stream shapes and assert, for your client and ADK version, the persisted session content and the rendered display. Run it on every ADK upgrade, because this behaviour changed twice within a week. The mechanics of append and lastChunk assembly are covered in the A2A artifact review lab at /labs/ai/design_review_a2a_artifact.html.