fix(planner): align recall timeout with global setting

This commit is contained in:
Hao19911125
2026-04-06 23:59:43 +08:00
parent ffdf0e4929
commit f7f408da4a
2 changed files with 20 additions and 3 deletions

View File

@@ -3237,6 +3237,10 @@ function getConfiguredTimeoutMs(settings = getSettings()) {
})();
}
function getPlannerRecallTimeoutMs() {
return getConfiguredTimeoutMs(getSettings());
}
function getEmbeddingConfig(mode = null) {
const settings = getSettings();
return getVectorConfigFromSettings(
@@ -10570,9 +10574,10 @@ async function onReembedDirect() {
await initEnaPlanner({
getContext,
getExtensionPath: () => `scripts/extensions/third-party/${MODULE_NAME}`,
getPlannerRecallTimeoutMs,
isTrivialUserInput,
preparePlannerRecallHandoff,
runPlannerRecallForEna,
runPlannerRecallForEna,
});
debugLog("[ST-BME] Ena Planner module loaded");
} catch (error) {