🧑💻 fix: Agents Config Defaults and Avatar Uploads Across File Strategies #7814
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
I improved the Agents endpoint configuration handling by ensuring proper defaults are always applied and enhanced avatar file processing for unique storage and correctness across all supported storage backends.
agentsConfigSetup
to a unified, TS-based implementation, and ensured that default values are reliably set via schema and passed down from the app configuration.agentsEndpointSchema
to provide defaults fordisableBuilder
andcapabilities
, ensuring robust fallback even if custom config is absent.Change Type
Testing
I ran existing and new unit tests for
AppService
covering agents config defaults/custom cases. I manually uploaded avatars for both users and agents in all supported file strategies (Local, S3, Firebase, Azure) and confirmed that each file is uniquely stored and the correct records are updated in the database. For file deletion, I attempted to delete files with query params and invalid path scenarios to validate error handling.Test Configuration:
AppService.spec.js
and new tests for agents endpoint coverageChecklist