﻿# AG2 1.3.2: queued input must not overwrite a final tool result

AG2 1.3.2 preserves final tool results and client handoffs before draining queued input. Understand next-turn ordering and the same-stream boundary.

Author: Retrivium editorial team
Updated: 2026-11-18
Canonical URL: https://retrivium.ai/journal/daily-20261116-agent-ag2-queued-input-final-handoff/
Language: en

Published on 18 November 2026, this analysis revisits AG2 1.3.2, published on 15 November at 16:37:55 UTC. The release falls within the selected news interval, 14 November 14:00:21–16 November 02:00:21 UTC. Its queued-input correction answers a practical question: when a tool intentionally finishes a turn, which turn should receive a message that arrived while the tool was running?

## Release delivery and earlier implementation

The fresh event is the [1.3.2 release](https://github.com/ag2ai/ag2/releases/tag/v1.3.2). The underlying [pull request 3639](https://github.com/ag2ai/ag2/pull/3639) was opened on 11 November and merged on 12 November. It therefore represents earlier implementation delivered in the newly published package, not a pull request first written inside this news window.

AG2 supports a forced final response, including a final tool result and a handoff of client-tool calls. The correction returns that response before draining the inbox. Input already queued on the stream remains available for a subsequent turn instead of triggering an additional model call that replaces the intended final reply.

## A final result is not an invitation to continue

Consider a deterministic tool that returns a final acknowledgement while a background task enqueues another user message. Before the correction, draining the inbox after the forced response could produce another model answer. The tool's intended final result was then no longer the reply returned to the caller.

The useful invariant is preservation of that final result. It is not a universal promise that every agent task needs exactly one model request. A workflow may already have made several legitimate calls before reaching its final tool. The relevant question is whether inbox draining adds an unintended call after a response that should have closed the turn.

## Client-tool handoff adds an ordering constraint

A client handoff must preserve the tool calls that the client still needs to answer. Replacing that reply with a fresh model answer can lose the handed-off calls and leave an unanswered call in history. The PR describes the resulting request-shape concern; it does not report a live-provider compatibility benchmark across vendors.

The [agent communication guide](https://docs.ag2.ai/docs/user-guide/agents/#feeding-the-turn-while-it-runs) documents the important exception to normal enqueue behavior. If the turn ends without another model call, queued input waits for the next turn on that stream. When the client resumes with its tool results, the queued message reaches the model after those results. The result and the waiting input therefore have distinct positions rather than competing to become the same final reply.

## A proposed two-case acceptance record

For a final-tool case, construct a synthetic workflow with one planned model call and a deterministic final tool. Enqueue a distinguishable message while that tool is handled. Proposed observations are that the final tool's text remains the reply, no additional model call occurs on closure, and the next turn receives the queued message before newly supplied input.

For a client-tool case, enqueue during the handoff, verify that the reply still contains the client call and its identifier, then resume the same stream with the matching result. Inspect the next model input for the result followed by the queued message. Count actual calls and inspect their input order; merely finding the queued text somewhere in eventual output is weaker evidence. These are proposed acceptance cases, not tests executed by Retrivium.

## The stream boundary limits the conclusion

The correction concerns an inbox attached to a stream. Adapters that create a fresh stream for each HTTP request need separate lifecycle analysis. The release does not establish durable queuing across new requests, restarts or replacement processes. A resumed conversation identifier alone does not prove that the original in-memory inbox survived.

Related background: [assembling streaming tool arguments by index and ID](/journal/provider-streamed-tool-argument-assembly/) explains why call identity matters, while [the queued-response restart boundary](/journal/news-parlant-queued-response-restart-boundary/) examines a different product's persistence question. Neither substitutes for checking AG2's own stream lifecycle.
