Skip to content

Python: Python AG-UI Magentic TEXT_MESSAGE_END emmitted after RUN_FINISHED when plan review is enabled and resume payload has empty review list #7810

Description

@dgsear

When using magentic orchestration withb plan review feedback enabled , sending a plan review resume request with empty feedback review:[] , stream emits RUN_FINISHED first , then later emits TEXT_MESSAGE_END for the same run, causing INCOMPLETE STREAM errors when copilotkit consumes them.

Observed behaviour
RUN ERROR with message Cannot send 'RUN_FINISHED 'while test messages are still active with code "INCOMPLETE STREAM" from copilotkit.

observed Event order
1.RUN_STARTED
2.TEXT_MESSAGE_START
3.TEXT_MESSAGE_CONTENT
4.RUN_FINISHED with no interrupts
5.TEXT_END

Env tested on
agent-framework-ag-ui= 1.0.0

Could you pls confirm whether its a known issue and already fixed in recent releases

Activity

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

Metadata

Metadata

Labels

likely-fixedpythonUsage: [Issues, PRs], Target: Python

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions