SawyerHood / windows9x

It is windows, but all of the apps are ai generated.
https://windows9x.com
GNU Affero General Public License v3.0
158 stars 9 forks source link

Code/LLM Dev Output Getting Displayed in IFrame #13

Closed snipeor closed 4 months ago

snipeor commented 4 months ago

I'm running into a persistent error where after maybe a few back and forth prompts with the "Dev" chat the output in the IFrame gets replaced with what looks like direct but incomplete output from the LLM response.

Not sure what's happening here but my best guess would be not everything is getting loaded in possibly due to being too long or the LLM editing more than it should? It sometimes happens if I ask it to revert a change that didn't go well so could be linked to that.

This was happening on the public test and when running it locally.

Screenshot_20240710-172532~2

SawyerHood commented 4 months ago

Thanks for the report again @snipeor! Let me dig into this.

SawyerHood commented 4 months ago

Do you mind emailing me the email you used to sign into windows9x.com? I can use that to look at logs and see what happened in this case. You can send it to kirbyhood@gmail.com

SawyerHood commented 4 months ago

Scratch that! I think I found you logs! It looks like the llm is not returning full html so it is returning only some of the changes which aren't valid on their own. Let me try to edit the prompt a bit! Thanks again for reporting

snipeor commented 4 months ago

Scratch that! I think I found you logs! It looks like the llm is not returning full html so it is returning only some of the changes which aren't valid on their own. Let me try to edit the prompt a bit! Thanks again for reporting

No worries, it's the main bug I've found so far, otherwise seems to be working well.

SawyerHood commented 4 months ago

Just pushed a fix that should make this more fault tolerant! I'm going to close for now, but let me know and reopen if you run into it again. This also makes me realize that I should support history so it is easier to roll back changes. I'll add a task for me to do that (no ETA atm)