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

Metadata

Metadata

Assignees

No one assigned

    Labels

    pythonUsage: [Issues, PRs], Target: PythontriageUsage: [Issues], Target: All issues that still need to be triaged

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions