Skip to content

[fix] Add search guards to Composio#3860

Merged
junaway merged 3 commits intorelease/v0.87.2from
fix/composio-search-guards
Feb 27, 2026
Merged

[fix] Add search guards to Composio#3860
junaway merged 3 commits intorelease/v0.87.2from
fix/composio-search-guards

Conversation

@junaway
Copy link
Contributor

@junaway junaway commented Feb 27, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 27, 2026 15:24
@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Feb 27, 2026 3:27pm

Request Review

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 27, 2026
@junaway junaway changed the base branch from main to release/v0.87.2 February 27, 2026 15:24
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 27, 2026
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Feb 27, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 27, 2026
@junaway junaway merged commit 5b667f5 into release/v0.87.2 Feb 27, 2026
6 of 7 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a search guard to Composio integrations and restructures the documentation by creating a new top-level "Integrations" section. The search guard ensures that searches are only performed when the query has at least 3 characters.

Changes:

  • Added minimum 3-character validation for Composio integration searches in both frontend and backend
  • Created a new "Integrations" section in documentation with separate subsections for Frameworks, LLM Providers, and Libraries
  • Moved all integration documentation from /observability/integrations/ to the new /integrations/ structure with appropriate redirects
  • Added a new "puzzle" icon for the Integrations navigation item

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
web/oss/src/features/gateway-tools/hooks/useCatalogIntegrations.ts Added length check to only search when query has 3+ characters
api/oss/src/core/tools/providers/composio/catalog.py Added backend validation for search parameter length
docs/src/icons/library.tsx Added new PuzzleIcon component with light/dark mode variants
docs/sidebars.ts Added new integrationsSidebar and updated observability sidebar to reference new integration paths
docs/docusaurus.config.ts Added Integrations navigation item and URL redirects from old paths
docs/docs/observability/integrations/category.json Deleted obsolete category file
docs/docs/observability/*.mdx Updated integration links to new paths
docs/docs/integrations/overview.mdx Created new integrations overview page
docs/docs/integrations/**/overview.mdx Created overview pages for each integration category
docs/docs/integrations/**/observability.mdx Moved integration docs with updated sidebar labels
docs/docs/integrations/**/category.json Added category configuration files
docs/docs/getting-started/02-quick-start.mdx Updated integration links
docs/blog/*.mdx Updated integration links in blog posts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -21,7 +21,7 @@ export const catalogIntegrationsInfiniteAtom = atomWithInfiniteQuery<Integration
queryKey: ["tools", "catalog", "integrations", DEFAULT_PROVIDER, search],
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The query key on line 21 includes the raw search value, but the actual search parameter sent to the API is filtered by the length check on line 24. This means that search strings like "a", "ab", and "" will all create separate cache entries even though they all result in the same API call (with search: undefined). Consider normalizing the search value in the query key to match what's actually sent: search.length >= 3 ? search : "". This will prevent unnecessary cache pollution and improve cache hit rates.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

Railway Preview Environment

Preview URL https://gateway-production-09fc.up.railway.app/w
Project agenta-oss-pr-3860
Image tag pr-3860-1d512e7
Status Deployed

Updated at 2026-02-27T15:41:19.237Z

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

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants