Skip to content

wrong behaviour when ATTACHMENT_TYPES_EXPANDED is used in chat component #219

Description

@photonn

QuickApps version

0.6.0

What steps will reproduce the bug?

  1. Modify your chat config with this environment setting:
    ATTACHMENT_TYPES_EXPANDED: "image/png,image/jpeg,image/webp"

  2. In your chathub with image creation support, ask to create an image.

  3. in the model reply, you will see a result similar to this:

A stages section

Image

followed by the created image expanded

Image

Followed by the test reply and the same image expanded as an attachment

Image

What is the expected behavior?

When you create an image, it should be the chat ui env variables the one who controls if we want the resulting image expanded or not.

What do you see instead?

I see the generated image twice, which is confusing for the users.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions