Skip to content

.NET: [Bug]: AG-UI host generates as many text messages as completions #6010

@tlecomte

Description

@tlecomte

Description

When using the AG-UI hosting package, and an OpenAI model like GPT 5.4 mini, the AG-UI event stream contains as many as TEXT_MESSAGE_START/_CONTENT/_END as completions, causing an AG-UI client to display completions one at a time, each on its own line.

Code Sample

I believe this can be reproduced with https://github.com/microsoft/agent-framework/tree/main/dotnet/samples/05-end-to-end/AGUIWebChat

Error Messages / Stack Traces

Package Versions

Microsoft.Agents.AI.Hosting.AGUI.AspNetCore 1.6.1-preview.260514.1

.NET Version

.NET 10

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions