Clicking the “continue” button starts loading and then just stops. Nothing is added. https://perchance.org/bug-continue-doesn-t-work-894u98#edit
Sometimes if I add something it continues. 🤷
This example is very simple. Not sure why it doesn’t work. And not sure why it does work on certain existing generators. Though on other existing generators (eg. the demo generators from the ai-text-plugin page).
In one I’m actually working on, that [+] button doesn’t reappear either, if I click “continue” or “edit.”
Also in my own project “Edit” throws an error:
Cannot read properties of null (reading 'getBoundingClientRect')
> let updateCoverPosition = () => {
> let rect = el.getBoundingClientRect();
> in editAiTextResponseClickHandler(el)
> el is passed as null
> which comes from this.closest('.ai-text-response-ctn')
Edit: I made a test generator to see how different ways of starting the ai()
call affects such bugs. Seems using outputTo doesn’t show the loading icon, and the edit box just appears at the end of the page which I think isn’t intentional.
Cheers 👍
One thing on this topic that was frustrating me was, a continue makes a new settings object, referencing the regular properties. But not all properties of the object (which I was using). And not simply using the original object so it would work perfectly the same as before to continue the thread.
So I had to create a whole object myself so that I could use closures over variables for the values I needed instead of using properties on the settings object, which thankfully worked. (Sometimes it seems closures are lost depending on the circumstances.)
Ideally it would just use that original settings object but I guess there’s some issue with doing that. But if it could make a shallow copy of the entire object that would at least work for more use cases.