Hi all, experimenting to build an app (an app tthat imports an owl/rdf ontology and allows users to create instances, add data and object values to create their own knowledge graph visually) via AI Studio Build. AI was doing great with request prompts: adding new features, solving issues, adding explanations, show diff and appying to the code.
However after few hours and dozens of prompts, it started to skip code updates (even though it says "i updated X as Y … " etc).
When this issue was occured asking AI to “OK, your suggestion is OK, update the code please” was working but it the issue became more serious, for each code update request prompt, now it re-thinks again, says “code updated”, but does not update.
Now for an update in the code requst prompt (i.e check export rdf procedures that generates error in validators: Recieved Error: “…”), it defines and solves the issue on response more than 10 times but could not update the code. i mean getting worse.
Thank you for your kind interest beforehand
Özer Kavak
2 Likes
I have the same issue. Saving the code shows new version. But internal build in the preview window shows old code state. this makes things almost useless. It seems to be a chaching problem. I encountered, that some parts of the code get an update, some other parts of the code seem to stay static. Refresh preview in AI Studio, hard browser refresh, reload project, execution in incognito tab, disabling the cahing in network/console, cleaning the browser cache, computer restart did not fix the issue. I even deleted some code in the un-refreshed sections of the code to trigger error messages, which failed. The build did not realize missing and corrupted code, which was for me the clear evidence that the code is skipped during build. I encountered this problem a couple of days ago. All projects are affected, once they reach a certain (file?) size or number, or a certain code complexity. I have a pro subscription. If anyone can help here, much appreciated!
When this happens, drag to highlight/select the last 2-3 chat messages up to the “updated files” part of its output, with the description (where it just stops instead of “making” the change). After you have your text highlighted, copy the text, then hit the refresh button on the chat panel to refresh the chat context. Paste in the text and hit enter.
It should now make the changes as intended. The issue is when chats get too long, the model stops exporting XML correctly, breaking the file editing. This workaround becomes needed during any extended session where the chat context isn’t being reset consistently.
When I start to see the behavior start, I will just prompt: “export only XML changes. You made no changes last turn.” This will typically let it “limp” along for a few more passes of edits, but the issue will continue until you reset the chat context or reload the entire page.
Given this, make a habit of copying the chat when the behavior starts, just to prep for resetting the context and not losing progress/current context. Make sure to “save” the app as well during this time, just in case you accidentally reset the Page instead of the chat context, or in case the page freezes up when you try to copy/paste in the last few chat messages, which might be resource-heavy on your device. Even with 32GBs of RAM, I’ll still get hangups in Edge that can take up to 5 minutes to unlock itself. I end up waiting because I forgot to save recently, and reloading the tab will mean lost progress and chat context. Regular saving is just good practice anyway.