Skip to content

Conversation

@miho-tnk
Copy link

This change adds agent icons to the chat UI for improved multi-agent conversation clarity.

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

End-user friendly description of the problem this fixes or functionality that this introduces.

The chat UI now displays icons next to each agent's messages, making it easier to distinguish between different agents participating in the conversation. This improves clarity and helps users follow multi-agent interactions more effectively.


Give a summary of what the PR does, explaining any non-trivial design decisions.

This PR enhances the OpenHands chat UI by adding agent icons, names, and timestamps to each agent's messages.

Specifically, this PR includes:

  • Chat UI modifications to display the agent's name, icon, and timestamp alongside their messages.
  • Chat UI modifications to display timestamps for user messages.
  • Modifications to the Event class, the agent_controller, and related functions to include the agent's name in backend.

Future improvements will include:

  • A toggle button in the settings panel to enable/disable agent icons.
  • Logic to display a single icon for consecutive messages or observations from the same agent.
  • Icon customization, allowing users to upload their own images for agent icons
without-icon with-icon

@xingyaoww xingyaoww requested a review from rbren March 27, 2025 15:22
Copy link
Collaborator

@rbren rbren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miho-tnk thanks for putting this together! There's some neat stuff in here

That said, we're not really orienting around multi-agent right now, and I'm hesitant to introduce the extra complexity for both the codebase and the UI, when it wouldn't benefit the vast majority of users. I'm actually very curious to hear more about your use case here--are you actually using several different agents with delegation?

In the future, I'd suggest proposing changes in Slack (or at least a GitHub issue) so we can discuss before you spend too much time working :)

@miho-tnk
Copy link
Author

@rbren Thank you for your response!

I understand that OpenHands is currently focused on resolving user tasks, rather than complex multi-agent workflows itself. My intention was to explore a way for users with specific needs to selectively incorporate this functionality and observe agent delegation, without impacting the majority of users. (The screenshot uses ManagerAgent that actually delegates to others).

I'll move this propose to Slack (or a Github issue).

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2025

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Inactive for 40 days label May 1, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2025

This PR was closed because it has been stalled for over 30 days with no activity.

@github-actions github-actions bot closed this May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Inactive for 40 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants