AI generated component should generate component wisely.

Created on 13 August 2025, 2 days ago

Overview

Sometimes Ai generated components contains unwanted code which does not have any use, for example it sometimes uses useState hook for variables that does not change it's values.

Proposed resolution

Instruct the AI to generate components such that it does not contain any unwanted code.

User interface changes

📌 Task
Status

Active

Version

1.0

Component

AI

Created by

🇮🇳India utkarsh_33

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

Merge Requests

Comments & Activities

  • Issue created by @utkarsh_33
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    "wisely" and "AI" in the same sentence 🤔🤣

  • Pipeline finished with Success
    2 days ago
    #571803
  • 🇮🇳India utkarsh_33

    Here's the scenario that I tested. You can see that in the before video it uses useState hook and after changing the prompt its evident that in the after video it does not include the useState for the same prompt, even though it does not generate the exact same component(which is fine as we can't expect AI do that always).
    Moving this to NR.

  • 🇮🇳India utkarsh_33

    Re #4 : I think it can act a little bit wisely if we instruct it to perfection 😂.

  • 🇬🇧United Kingdom catch

    What is the criteria for determining that this is fixed given the non-probabilistic output? e.g. what percentage of attempts before the MR generated extraneous code, and what percentage afterwards? The before and after videos show one attempt each, but that could be within the normal deviation of either code base.

  • Pipeline finished with Failed
    2 days ago
    Total: 856s
    #571860
Production build 0.71.5 2024