You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The suggestions panel attempts to iterate over metadata.suggestions without verifying that it’s an array. When metadata.suggestions is undefined or non‑iterable, a runtime error halts rendering.
Steps to Reproduce:
Run the official chat.vercel.ai UI template with the o3‑mini model.
Invoke the suggestions component (e.g., the backend returns no suggestions field or returns it as null).
Open the browser’s Developer Console.
Actual Behavior:
Uncaught (in promise) TypeError: metadata.suggestions is not iterable
at eval (client.tsx:38:25)
at Artifact.onStreamPart (client.tsx:34:7)
at DataStreamHandler.useEffect (data-stream-handler.tsx:41:28)
…
The suggestions UI never appears, and errors flood the console.
Expected Behavior:
The panel should safely handle missing or non‑array metadata.suggestions and render (or remain empty) without errors.
The text was updated successfully, but these errors were encountered:
Environment:
Description:
The suggestions panel attempts to iterate over
metadata.suggestions
without verifying that it’s an array. Whenmetadata.suggestions
is undefined or non‑iterable, a runtime error halts rendering.Steps to Reproduce:
suggestions
field or returns it asnull
).Actual Behavior:
The suggestions UI never appears, and errors flood the console.
Expected Behavior:
The panel should safely handle missing or non‑array
metadata.suggestions
and render (or remain empty) without errors.The text was updated successfully, but these errors were encountered: