From 7bbed5e1c94a40818cd633e6f2567a7a7e9eced2 Mon Sep 17 00:00:00 2001 From: "dkoosis@gmail.com" Date: Sun, 2 Aug 2026 11:18:08 -0400 Subject: [PATCH] fix(supermemory): honor options.limit in search() instead of hardcoding 30 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit search() hardcoded limit: 30, silently overriding whatever limit the caller passed in SearchOptions — so a benchmark requesting a deeper retrieval pool (e.g. limit 50) still capped at 30. Honor options.limit, keeping 30 as the default. Flagged by @sohamd22 in PR #44 review. --- src/providers/supermemory/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/supermemory/index.ts b/src/providers/supermemory/index.ts index 027bc32..cd595c8 100644 --- a/src/providers/supermemory/index.ts +++ b/src/providers/supermemory/index.ts @@ -123,7 +123,7 @@ export class SupermemoryProvider implements Provider { const response = await this.client.search.memories({ q: query, containerTag: options.containerTag, - limit: 30, + limit: options.limit ?? 30, threshold: options.threshold || 0.3, searchMode: "hybrid", include: {