Skip to content

Commit 467f02f

Browse files
fmhallclaude
andcommitted
fix(scan): filter MPP-only results from semantic search dropdown
The post-space dropdown was surfacing results whose protocols don't include x402 (e.g. Parallel API Gateway, MPP-only). Clicking one submitted the query but the discover results page filters those out, producing a confusing dead-end. Mirrors the filter already applied in DiscoverSearchResults so the dropdown only shows clickable x402 services. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4648b66 commit 467f02f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/scan/src/app/(app)/_components/search/inline-search-suggestions.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ export const InlineSearchSuggestions: React.FC<Props> = ({
7777

7878
const origins = originSearch.data ?? [];
7979
const resources = resourceSearch.data ?? [];
80-
const semanticResults = semanticSearch.data ?? [];
80+
// x402scan only surfaces x402 services — MPP-only results from the upstream
81+
// semantic API would lead to "No x402 results found" if clicked through.
82+
const semanticResults = (semanticSearch.data ?? []).filter(r =>
83+
r.protocols.includes('x402')
84+
);
8185
const keywordLoading = originSearch.isLoading || resourceSearch.isLoading;
8286
const semanticLoading =
8387
semanticSearch.isLoading || trimmed !== debouncedSemanticInput;

0 commit comments

Comments
 (0)