Skip to content

Conversation

LLM-Implementation
Copy link

Problem

The frontend streaming would crash when event.generate_query.query_list or event.reflection.follow_up_queries were undefined, causing a TypeError that broke the entire event processing pipeline. This resulted in the UI showing "No response received" even though the backend was working correctly and generating proper responses.

Error occurred:
TypeError: Cannot read properties of undefined (reading 'join')

This prevented the finalize_answer event from being processed, leaving users with empty AI responses despite successful backend processing.

…g crashes - Add safe fallbacks for undefined query_list and follow_up_queries arrays - Prevent TypeError when properties are undefined during event processing - Ensure streaming flow continues even with malformed events - Add fallback UI for empty message content
Copy link

google-cla bot commented Jun 7, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@philschmid
Copy link
Contributor

should be fixed in #109

@philschmid philschmid closed this Jun 18, 2025
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.

3 participants