We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 381d984 commit 0961640Copy full SHA for 0961640
1 file changed
extensions/memory-core/src/tools.ts
@@ -46,6 +46,7 @@ type MemorySearchToolResult =
46
47
const MEMORY_SEARCH_TOOL_TIMEOUT_MS = 15_000;
48
const MEMORY_SEARCH_TOOL_COOLDOWN_MS = 60_000;
49
+const QMD_TOOL_DEADLINE_GRACE_MS = 10_000;
50
51
const memorySearchToolCooldowns = new Map<string, { until: number; error: string }>();
52
@@ -382,7 +383,7 @@ export function createMemorySearchTool(options: {
382
383
384
const effectiveTimeoutMs = Math.max(
385
MEMORY_SEARCH_TOOL_TIMEOUT_MS,
- cfg.memory?.qmd?.limits?.timeoutMs ?? 0,
386
+ (cfg.memory?.qmd?.limits?.timeoutMs ?? 0) + QMD_TOOL_DEADLINE_GRACE_MS,
387
);
388
const outcome = await runMemorySearchToolWithDeadline({
389
timeoutMs: effectiveTimeoutMs,
0 commit comments