Skip to content

[Reasoning] Don't open and close when showing old message #86

@bestickley

Description

@bestickley

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions