context-engine: pass agentDir into subagent context-engine resolution

This commit is contained in:
Jari Mustonen
2026-04-16 08:36:03 +03:00
committed by Josh Lehman
parent 3cf6cbc651
commit b2b9219e7c

View File

@@ -489,6 +489,7 @@ async function notifyContextEngineSubagentEnded(params: {
allowGatewaySubagentBinding: true,
});
const engine = await resolveSubagentRegistryContextEngine(cfg, {
agentDir: resolveOpenClawAgentDir(),
workspaceDir: params.workspaceDir,
});
if (!engine.onSubagentEnded) {