Skip to content

Conversation

@contextablemark
Copy link
Collaborator

No description provided.

xomanova and others added 2 commits November 27, 2025 21:25
AG-UI's TextMessageContentEvent validates that delta is non-empty.
When ADK yielded events with empty string content, the validation
would fail and crash the frontend.

Added early return in _translate_text_content when combined_text
is empty, preventing the creation of TextMessageContentEvent with
empty delta.

Added comprehensive tests for empty text event handling:
- test_empty_text_event_does_not_crash
- test_whitespace_only_text_event_does_not_crash
- test_multiple_empty_parts_filtered
- test_mixed_empty_and_valid_parts_filtering
- test_empty_combined_text_early_return
fix(adk-middleware): filter empty text events to prevent frontend crash
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: PR author contextablemark has CODEOWNERS access to all changed files (excluding root rule)

@contextablemark
Copy link
Collaborator Author

Applied changes with #745

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.

4 participants