Skip to content

Conversation

maxkorp
Copy link
Contributor

@maxkorp maxkorp commented Sep 4, 2025

When a RUN_FINISHED event comes in, we convert it to a legacy AgentStateMessage, even if state is empty (I'm not convinced that it is ever not empty). This causes things like pedantic's integration to fail when a user sends a message that does not affect state, since the integration doesn't send anything back.

@maxkorp maxkorp merged commit ea0e940 into main Sep 4, 2025
5 checks passed
@maxkorp maxkorp deleted the max/state-demolition-event-demolition branch September 4, 2025 17:59
mattsp1290 pushed a commit to mattsp1290/ag-ui that referenced this pull request Sep 8, 2025
…ag-ui-protocol#345)

* If state is empty on run_finished event, don't trigger a state update

* update test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant