mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:20:43 +00:00
context-engine: make config optional in ContextEngineFactoryContext
This commit is contained in:
committed by
Josh Lehman
parent
d269aa153a
commit
20d99fad7d
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user