-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
🔧 feat: Enhance File Upload Capabilities with Agent-Specific Tool Checks #9498
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
Closed
+95
−8
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Integrated agent-specific checks for file search and code execution capabilities in AttachFileMenu and DragDropModal components. * Updated useDragHelpers to conditionally show modal based on agent permissions for file search and code execution. * Improved handling of agent tools to ensure proper functionality based on selected agent's capabilities.
* Updated Vite configuration to normalize paths for better chunking logic. * Refactored AttachFileMenu, DragDropModal, and useDragHelpers to streamline agent tool checks for file search and code execution capabilities. * Improved readability and maintainability of the code by consolidating conditional logic for agent permissions.
…ropModal * Streamlined the logic for retrieving agent tools in AttachFileMenu and DragDropModal components for improved readability. * Removed unnecessary line breaks to enhance code clarity while maintaining functionality.
…nu and DragDropModal * Added a line break for improved code readability in AttachFileMenu and DragDropModal components. * Maintained existing functionality while enhancing the clarity of the code structure.
…enu and DragDropModal components.
* Added line breaks to enhance readability of the agent tool retrieval logic in AttachFileMenu and DragDropModal components. * Maintained existing functionality while improving code clarity.
danny-avila
requested changes
Sep 8, 2025
Thanks for the PR, please see my comments if you can address them. If not, I can address them soon. |
… Tool Checks * Refactored chunking logic in vite.config.ts to remove unnecessary normalization of module paths. * Updated DragDropModal and useDragHelpers to utilize useMemo for agent tool checks, improving performance and readability. * Enhanced dependency tracking in DragDropModal options to include new memoized values.
* Removed unnecessary boolean checks in agent tool retrieval logic for improved readability. * Maintained existing functionality while streamlining the code structure.
Thanks for the fast review! Just updated to use bools and useMemo |
Thanks for looking into this, I had to clean up some of the code and wanted to get this in so completed here: #9532 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Fix agent-specific gating for file upload options in Chat:
useGetAgentByIdQuery
and gate once tools are known.Closes: #9497
Updated files:
client/src/components/Chat/Input/Files/AttachFileMenu.tsx
client/src/components/Chat/Input/Files/DragDropModal.tsx
client/src/hooks/Files/useDragHelpers.ts
client/src/components/Chat/Input/Files/DragDropWrapper.tsx
client/vite.config.ts : This PR addresses the windows frontend test build failure using the same vite.config.tsx changes used in an earlier PR ✨ feat(agents): persist Marketplace agents via per-user Favorites in Model dropdown #9488 If there’s a preferred alternative, I'm happy to make changes.
No backend changes.
Change Type
Testing
Steps:
Checklist