wandb / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.
https://openui.fly.dev
Apache License 2.0
19.3k stars 1.78k forks source link

Element picker and duplicate code #206

Open GRZLY53 opened 1 month ago

GRZLY53 commented 1 month ago

Hi,

I am using the most recent docker build with gpt-4o. The initial prompt works fine and generates a great v0 for my project. Unfortunately when I try to manipulate the v0 by using the element picker, there are several issues.

I can choose an element and send a custom promt, but afterwards a few things happen:

  1. The preview frame doesn't auto-refresh anymore. It also doesn't react to a manual "refresh frame".
  2. The code gets generated, but since I can't see the preview, I have to refresh the whole page.
  3. After refreshing the page, the code duplicates.

Does anyone else experience this behaviour? I wasn't able to resolve myself. I use everything out of the box and also tried different LLMs and different browsers and did a complete new setup. Nothing worked for me so far.

Otherwise it is a beautiful tool, best regards!

EDIT: It seems like there is a problem with theroom.js, that causes the a stop. Here is a typical log:

theroom.js:145 Uncaught TypeError: Cannot read properties of undefined (reading 'remove') at Object.stop (theroom.js:145:1) at index.html?id=3Y5VUVfH:559:22 stop @ theroom.js:145 (anonymous)@index.html?id=3Y5VUVfH:559

grexe commented 1 month ago

same here, tried with default model and gpt4o. preview updates forever, only showing the progress icon.