-
Notifications
You must be signed in to change notification settings - Fork 227
[Reasoning] Don't open and close when showing old message #86
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
In my chat app built with AI Elements, when a user reloads a chat with a reasoning message, the reasoning message by default show open for a split second then closes. This behavior makes sense when the message is streaming in (to show something to the user while waiting), but doesn't make sense IMO to be shown for older messages when they're being reloaded. I think the fix for this would be to remove defaultOpen from this line:
| if (defaultOpen && !isStreaming && isOpen && !hasAutoClosed) { |
I tried changing defaultOpen={false} but this results in streamed in new messages not showing the reasoning which I want.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working