Skip to content

fix(lit): handle TextPart fallback messages in shell and contact sample clients#839

Open
Mindev27 wants to merge 4 commits intogoogle:mainfrom
Mindev27:fix-textpart-render
Open

fix(lit): handle TextPart fallback messages in shell and contact sample clients#839
Mindev27 wants to merge 4 commits intogoogle:mainfrom
Mindev27:fix-textpart-render

Conversation

@Mindev27
Copy link

Description

image

Both Lit sample clients (shell, contact) were ignoring TextPart messages
from agent responses. When the agent fails and sends back only a TextPart
fallback, the UI showed a blank screen with no feedback to the user.

Fixed by collecting TextPart in the client response and displaying it
through the existing error UI when no DataPart is available.

This is my first contribution - any feedback on the approach is welcome :)

Fixes #585

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

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

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Text fallback from agent not rendered in A2UI, page refreshes silently

1 participant