Skip to content

Commit 26ec878

Browse files
author
谭珊珊0668000363
committed
fix(memory): increase QMD embedTimeoutMs default to 600s for local GGUF models
Increase DEFAULT_QMD_EMBED_TIMEOUT_MS from 120s to 600s to match built-in engine's local provider default. Local GGUF models need 3-4 minutes to embed a 30-50 file workspace on commodity hardware. Also improve error message to surface the config path: 'qmd embed failed (...) — consider increasing memory.qmd.update.embedTimeoutMs (default: 600000)' Fixes #74204
1 parent ac2a172 commit 26ec878

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/memory-core/src/memory/qmd-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ export class QmdMemoryManager implements MemorySearchManager {
18691869
);
18701870
this.embedBackoffUntil = resolveExpiresAtMsFromDurationMs(delayMs) ?? null;
18711871
log.warn(
1872-
`qmd embed failed (${reason}): ${String(err)}; backing off for ${Math.ceil(delayMs / 1000)}s`,
1872+
`qmd embed failed (${reason}): ${String(err)} — consider increasing memory.qmd.update.embedTimeoutMs (default: 600000); backing off for ${Math.ceil(delayMs / 1000)}s`,
18731873
);
18741874
}
18751875

packages/memory-host-sdk/src/host/backend-config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe("resolveMemoryBackendConfig", () => {
126126
expect(qmd.update.embedIntervalMs).toBe(3_600_000);
127127
expect(qmd.update.commandTimeoutMs).toBe(30_000);
128128
expect(qmd.update.updateTimeoutMs).toBe(120_000);
129-
expect(qmd.update.embedTimeoutMs).toBe(120_000);
129+
expect(qmd.update.embedTimeoutMs).toBe(600_000);
130130
expect(collectionNames(resolved)).toStrictEqual(["memory-dir-main", "memory-root-main"]);
131131
expect(requireQmdCollection(resolved, "memory-root-main").pattern).toBe("MEMORY.md");
132132
});

packages/memory-host-sdk/src/host/backend-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const DEFAULT_QMD_STARTUP_DELAY_MS = 120_000;
9999
const DEFAULT_QMD_EMBED_INTERVAL = "60m";
100100
const DEFAULT_QMD_COMMAND_TIMEOUT_MS = 30_000;
101101
const DEFAULT_QMD_UPDATE_TIMEOUT_MS = 120_000;
102-
const DEFAULT_QMD_EMBED_TIMEOUT_MS = 120_000;
102+
const DEFAULT_QMD_EMBED_TIMEOUT_MS = 600_000;
103103
const DEFAULT_QMD_LIMITS: ResolvedQmdLimitsConfig = {
104104
maxResults: 4,
105105
maxSnippetChars: 450,

0 commit comments

Comments
 (0)