XB AI: History issue in image upload

Created on 28 July 2025, 6 days ago

Overview

While working on 🐛 AI should use only necessary history/comments for each task Active , it is observed that if we submit image with empty prompt, it can give unexpected results.
Eg: First prompt: Update title on cats
Second Prompt: Upload an Image without any prompt.
This will again update title on cat, instead of generating component.

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

1.0

Component

AI

Created by

🇮🇳India narendraR Jaipur, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @narendraR
  • First commit to issue fork.
  • Merge request !1380#3538354: History issue in image upload. → (Open) created by utkarsh_33
  • 🇮🇳India utkarsh_33

    I think we should wait for 🐛 AI should use only necessary history/comments for each task Active to go in first, so postponing it on that.

  • Pipeline finished with Failed
    5 days ago
    Total: 1003s
    #559540
  • 🇮🇳India utkarsh_33

    🐛 AI should use only necessary history/comments for each task Active is fixed now and this is actionable.

  • Pipeline finished with Failed
    4 days ago
    Total: 802s
    #560429
  • Pipeline finished with Failed
    4 days ago
    Total: 833s
    #560447
  • 🇮🇳India utkarsh_33

    Tested this manually and now the image upload feature works much better. This is ready for review.

  • Pipeline finished with Canceled
    4 days ago
    Total: 432s
    #560485
  • Pipeline finished with Failed
    4 days ago
    Total: 741s
    #560488
  • Pipeline finished with Success
    4 days ago
    Total: 995s
    #560495
  • 🇮🇳India narendraR Jaipur, India

    Prompt: What is Drupal?
    Observation: Got “No prompt provided” response. This is wrong.

    Refresh page.
    Step: Uploaded Image without prompt.
    Observation: After explaining Image, LLM should not ask irrelevant questions. Question should be something like (Would you like to create a component related to the uploaded image?)

  • 🇮🇱Israel heyyo Jerusalem

    I don't think we should assume, uploading an image, means creates a code component.
    This image could be used as an example of creating a page, or even used in an existing component.
    What about to force prompt text, if there is an uploaded image ?

  • 🇮🇳India narendraR Jaipur, India

    Hi @heyyo, 📌 [PP-1] Image upload feature in AI Chatbot Active implemented the image upload feature for creating code components from uploaded images—currently, this is the only supported use case.

    This image could be used as an example of creating a page, or even used in an existing component.

    That’s an excellent feature request! We can track this as a new issue.

  • 🇮🇳India utkarsh_33

    Re #7 :
    The

    No prompt

    issue is fixed also the LLM asks relevant questions not just related to the users.

    I totally agree with

    I don't think we should assume, uploading an image, means creates a code component.

    therefore it asks the user questions related to what task it should perform based on it's current capabilities. As the capabilities grow then it might present those additional options as well to the user.

    Marking it NR

  • Pipeline finished with Failed
    4 days ago
    Total: 1023s
    #561419
  • 🇮🇳India narendraR Jaipur, India

    The problem with LLM suggesting “Would you like to create, add, or generate a component, page, title, or metadata related to this image?” Is that non of the prompts like “Generate page” or “Generate title” gives results as expected by user.
    Even if I give “generate a component” prompt it does not create the component. Instead it again ask 

    I'll help you create a component for Drupal Experience Builder. To get started, I need a bit more information about what type of component you'd like to generate. Here are some details that would be helpful:
    1. What should the component do or display? (e.g., image gallery, card, button, testimonial, etc.)
    2. What content or functionality should it include?
    3. Any specific styling preferences?
    Once you provide some details about the component you need, I can create it for you with the appropriate structure, styling using Tailwind CSS, and the necessary props.

    Which is not related to uploaded image in any way. It means that it is not considering the history of uploaded image.

Production build 0.71.5 2024