Skip to content

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

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETUsage: [Issues, PRs], Target: .Netag-uiUsage: [Issues, PRs], Target: AG-UI protocol integrationbugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)reproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflow

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions