Skip to content

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

@usag1e

Description

@usag1e

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions