From 20d99fad7d5870d59614fae626db187a12579898 Mon Sep 17 00:00:00 2001 From: Jari Mustonen Date: Wed, 15 Apr 2026 09:40:29 +0300 Subject: [PATCH] context-engine: make config optional in ContextEngineFactoryContext --- src/context-engine/registry.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context-engine/registry.ts b/src/context-engine/registry.ts index 90b270b79d3..e257a8e67b5 100644 --- a/src/context-engine/registry.ts +++ b/src/context-engine/registry.ts @@ -10,7 +10,7 @@ import type { ContextEngine } from "./types.js"; * without fragile workarounds. */ export type ContextEngineFactoryContext = { - config: OpenClawConfig; + config?: OpenClawConfig; agentDir?: string; workspaceDir?: string; }; @@ -510,7 +510,7 @@ export async function resolveContextEngine( const isDefaultEngine = engineId === defaultEngineId; const factoryCtx: ContextEngineFactoryContext = { - config: config ?? ({} as OpenClawConfig), + config, agentDir: options?.agentDir, workspaceDir: options?.workspaceDir, };