-
Notifications
You must be signed in to change notification settings - Fork 46.1k
fix(frontend): ensure all agents with graph_id appear in activity dropdown #11340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
fix(frontend): ensure all agents with graph_id appear in activity dropdown #11340
Conversation
…pdown Previously, agents were only added to the agent info map if they had both graph_id AND id fields populated. This caused agents missing the id field to appear as "Unknown Agent" in the activity dropdown. Changed buildAgentInfoMap to only require graph_id (the lookup key), making id (library_agent_id) optional. This ensures consistent agent visibility in the dropdown. Fixes Significant-Gravitas#11229
✅ Deploy Preview for auto-gpt-docs-dev canceled.
|
✅ Deploy Preview for auto-gpt-docs canceled.
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Here's the code health analysis summary for commits Analysis Summary
|
…pdown-unknown-agent
Summary
Fixes issue where agents appear as "Unknown Agent" in the agent activity dropdown.
Root Cause
The
buildAgentInfoMapfunction was only adding agents to the map if they had BOTHgraph_idANDidfields populated. Sincegraph_idis used as the lookup key, agents missing theidfield would not be added to the map, causing them to appear as "Unknown Agent".Changes
Changed the condition in
buildAgentInfoMapfrom:To:
This ensures any agent with a
graph_id(the lookup key) will be added to the map. Thelibrary_agent_idfield remains optional.Impact
graph_idwill now appear consistently in the activity dropdownlibrary_agent_idis still populated when availableTesting
Manual testing recommended: Verify agents with missing
idfields now appear with their proper names instead of "Unknown Agent".Fixes #11229