AutoGen Studio 0.4.2: Copy-pasting in Tool Name field kicks user back and breaks editing
What happened?
Describe the bug When I copy-paste into the "Name" field of a tool within an agent in AutoGen Studio (0.4.2), I am kicked back to the agent editing window. After that, trying to re-edit the tool results in the tool's name being repeatedly appended to the top of the window, rendering the tool and agent uneditable (see screenshot below).
To Reproduce
- Create a new team in the AutoGen UI (Studio 0.4.2)
- Edit the default agent.
- Click to edit the default agent's "calculator" tool.
- Copy/paste using shortcuts (Ctrl+C / Ctrl+V) a new Python tool to replace the "calculator" tool.
- Then, try to copy-paste the name of the new tool to replace the name of the default tool.
- You should then be kicked back to the agent editing window. Note: This step is not consistently reproducible; you may need to attempt copy-pasting (Ctrl+C / Ctrl+V) in the "Name" field multiple times.
- Try to re-edit the tool. You should observe the tool's name being repeatedly appended to the top of the window, and the tool/agent becoming uneditable.
Expected behavior Copy-pasting into the tool's "Name" field should update the name without kicking the user back to the agent editing window and without rendering the tool/agent uneditable.
Screenshots
Additional context The issue is temporarily resolved by saving the agent and reopening the editing window. All changes, including the copy-pasted tool name, are saved.
Which packages was the bug in?
AutoGen Studio (autogensudio)
AutoGen library version.
Python dev (main branch)
Python version
3.12
Operating system
Windows
Thanks for posting @usag1e , Any chance you want to take a swing at a fix? I am happy to help along the way!
Hi @victordibia, thanks!
While I'm not a developer (I have very basic knowledge), I'm more than willing to learn and help with this. Any pointers or resources would be greatly appreciated!
@victordibia , just to let you know I am trying to fix this particular issue. Will let you know here how it goes.