AutoGPT
AutoGPT copied to clipboard
fix(backend): use marketplace name/description for downloaded agents in library
Changes
Fixes agents downloaded from marketplace showing creator's graph name instead of marketplace name in user's library.
Problem: When downloading a marketplace agent, the library entry used AgentGraph.name/description (creator's version) instead of the marketplace listing name/description.
Solution: Added optional name and description override fields to LibraryAgent. When adding store agents, these are populated from the marketplace listing. The model layer falls back to graph values if not set (backward compatible).
Modified Files
schema.prisma: Added optionalname/descriptiontoLibraryAgentbackend/server/v2/library/db.py: Set marketplace name/description when adding store agentsbackend/server/v2/library/model.py: Use override fields with fallback to graph values
I still need to fully test this
For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
- [ ] Upload a agent to the marketplace with a custom name and description and its stored with that info
- [ ] download that agent and the file name should be the same as the agent name from the marketplace
Deploy Preview for auto-gpt-docs-dev canceled.
| Name | Link |
|---|---|
| Latest commit | b4714750a7356d8fe1dfaa9b63a4312f1093b04d |
| Latest deploy log | https://app.netlify.com/projects/auto-gpt-docs-dev/deploys/69133c8ba91e900008c184e9 |
Deploy Preview for auto-gpt-docs canceled.
| Name | Link |
|---|---|
| Latest commit | b4714750a7356d8fe1dfaa9b63a4312f1093b04d |
| Latest deploy log | https://app.netlify.com/projects/auto-gpt-docs/deploys/69133c8b91d14a000801c664 |
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
β¨ Finishing touches
π§ͺ Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
- [ ] Commit unit tests in branch
bently/open-2299-name-of-downloaded-agent-in-library-is-different-from-name
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 @coderabbitai help to get the list of available commands and usage tips.
Here's the code health analysis summary for commits 9371528..b471475. View details on DeepSourceΒ β.
Analysis Summary
| Analyzer | Status | Summary | Link |
|---|---|---|---|
| β Β Success | View CheckΒ β | ||
| β Β Success | View CheckΒ β |
π‘ If youβre a repository administrator, you can configure the quality gates from the settings.
Thank you for this PR that fixes agents downloaded from the marketplace showing the creator's graph name instead of the marketplace name in the user's library. The implementation approach looks solid!
A few notes:
-
Your PR is well-documented, clearly explaining both the problem and solution.
-
I notice that you mentioned "I still need to fully test this" and your test plan checkboxes aren't all checked. Please complete your testing before this PR can be merged:
- Upload an agent to the marketplace with a custom name/description and verify it's stored correctly
- Download that agent and verify the file name matches the agent name from the marketplace
-
The schema changes look appropriate with good comments explaining the purpose of the new fields.
-
The implementation logic in both
db.pyandmodel.pycorrectly implements the fallback pattern where the override fields take precedence if available.
Once you've completed your testing plan and checked those boxes, this PR should be ready for merging.