As you can see from the workflow image, the AGENT starts with 2 user input blocks: (1) User Instructions; (2) Load a Senior. Occasionally, the first input block displays the preview of the 2nd User input block when I do a “Get” in the Custom Interface panel.. A screen refresh does not revert it back to the proper input dialog. Compiling it, (which the configuration panel now states is necessary) then sets both user inputs to the Load a Senior dialog - the User Instruction dialog is gone. Fortunately, I have a backup of the User Instruction input block in my other workspace and can copy it to my Hackathon workspace. Not long thereafter though, the same duplicative user input content issue reoccurs. The only thing I noticed is that this sometimes happens when I am connecting and disconnecting the payment authorization blocks.
The code in both User Input blocks looks identical. The previews are different, likely because the first User Input hasn’t been compiled yet, so it’s showing a cached preview.
Could you have accidentally copy-pasted the code from one block to the other? I’ve tried to find a way this could have happened automatically, but haven’t been able to reproduce it so far.
If you need to roll back, you can restore a previous interface version in the Chat section of the Interface Designer. Scroll up in the chat to find the previously generated code, then click Apply next to the “Wrote X lines of code” button:
After that, press Compile in the User Input block, wait for it to finish, then Publish the Agent.
Also, you may be able to simplify this by deleting one of the User Input blocks entirely. You can collect inputs for multiple variables within a single block by prompting the Interface Designer to transition and display a different interface for each variable. Here’s a quick example: https://app.mindstudio.ai/agents/topic-collector-8ad1902f/remix
Hi Alex .. The previews are NOT different .. the blocks are suddenly identical in both code and appearance. There is ZERO possibility and I copied and pasted code from one to the other. I’ve been through several cycles of this corruption scheme by pasting a good input from my regular workspace into my Hackathon space. After doing a “get” in the configuration panel, the code duplicates, and I get duplicated user input previews (with code).
The chat window cache was reset so I cannot rollback to previously generated chats.
As a means of trying something different I will now do the following:
Regular workspace: I will load the 1st user input and to a style guide export (in case I have to build from scratch again - way not cool);
I will go to the code tab, and copy the entire code output (from the 1st user input in my regular workspace)
I will go to the Hackathon version, select the 1st user input, click on the code tab, select all then paste the code from step 2 above.
I will do a get and perhaps a compile to see if the issue is reproduced or by some strange affair, the problem is rectified.
Lastly, I’ve also noticed that when the 1st user input submit button is clicked, the for jumps wildly to the left before the 2nd user input loads. I can live with it, but it sure is weird.
HI Alex .. a couple of notes: Here’s the order of my screen recording. It will be confusing.
Steps:
Brought up MS and changed to the workspace required (Hackathon)
Did an “edit” on the User Instructions" block (user input #1). After the fix that I did yesterday, that restored the original anomaly and it is behaving as it should
Did an “edit” on the “Load A Senior” block (user input #2). That, too, loaded correctly as you’ll see.
I then did an “edit” of a copy user input #1 (named BUG UI) and you can clearly see that the interface for this user input shows the "Load A Senior" (user input #2) which is incorrect. When that happened, my first recourse was to copy and paste the offending block so I could troubleshoot. Naturally, the question will arise, "are you sure that that is the input #1 block (BUG UI). In the recording I make note of the fact that visible in the chat previer window is a vibe code change for the Title of user input #1 (but were seeing user input #2). The configuration interface for BUG UI block is looking for a recompile as I note (but didn’t do).
Now, to make this completely nuts, in the recording as you’ll see, I did a “edit” on the BUG UI block for a second time with a different result (the correct one this time).
Clearly, something strange is going on … In my back pocket, I still have another copy of this AGENT in my home workspace and can use it in a pinch to restore this issue if it arises again.
Thanks for the recording and detailed notes. I’ll keep trying to reproduce the issue on my end.
In the meantime, I’d really recommend sticking with a single User Input block and prompting the Interface Designer to collect the first input on one page, then transition to a second page for the other input. You can also paste in both codes you already have so it can merge them.