Skip to content

Conversation

@Bentlybro
Copy link
Member

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 optional name/description to LibraryAgent
  • backend/server/v2/library/db.py: Set marketplace name/description when adding store agents
  • backend/server/v2/library/model.py: Use override fields with fallback to graph values

I still need to fully test this

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • 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

…in library

Introduces optional 'name' and 'description' fields to the LibraryAgent model, allowing marketplace or custom overrides. Updates database schema, migration, and model logic to prioritize these fields over AgentGraph defaults when present.
@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit b471475
🔍 Latest deploy log https://app.netlify.com/projects/auto-gpt-docs-dev/deploys/69133c8ba91e900008c184e9

@github-actions github-actions bot added the platform/backend AutoGPT Platform - Back end label Nov 10, 2025
@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit b471475
🔍 Latest deploy log https://app.netlify.com/projects/auto-gpt-docs/deploys/69133c8b91d14a000801c664

@coderabbitai
Copy link

coderabbitai bot commented Nov 10, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@deepsource-io
Copy link

deepsource-io bot commented Nov 10, 2025

Here's the code health analysis summary for commits 9371528..b471475. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Renamed the migration file to update its timestamp for better chronological organization of migrations related to library agent custom name and description.
@AutoGPT-Agent
Copy link

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:

  1. Your PR is well-documented, clearly explaining both the problem and solution.

  2. 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
  3. The schema changes look appropriate with good comments explaining the purpose of the new fields.

  4. The implementation logic in both db.py and model.py correctly 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform/backend AutoGPT Platform - Back end size/m

Projects

Status: 🆕 Needs initial review

Development

Successfully merging this pull request may close these issues.

3 participants