autogen icon indicating copy to clipboard operation
autogen copied to clipboard

AutoGen Studio 0.4.2: Copy-pasting in Tool Name field kicks user back and breaks editing

Open usag1e opened this issue 9 months ago • 3 comments

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

  1. Create a new team in the AutoGen UI (Studio 0.4.2)
  2. Edit the default agent.
  3. Click to edit the default agent's "calculator" tool.
  4. Copy/paste using shortcuts (Ctrl+C / Ctrl+V) a new Python tool to replace the "calculator" tool.
  5. Then, try to copy-paste the name of the new tool to replace the name of the default tool.
  6. 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.
  7. 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

Image

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

usag1e avatar Mar 21 '25 07:03 usag1e

Thanks for posting @usag1e , Any chance you want to take a swing at a fix? I am happy to help along the way!

victordibia avatar Mar 21 '25 23:03 victordibia

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!

usag1e avatar Mar 23 '25 16:03 usag1e

@victordibia , just to let you know I am trying to fix this particular issue. Will let you know here how it goes.

usag1e avatar Mar 26 '25 17:03 usag1e