fix: format pi-tools scope key line (openclaw#4887) thanks @mcinteerj

This commit is contained in:
Tak Hoffman
2026-02-11 19:53:31 -06:00
parent 6d5b9b19a7
commit 5d30672e75

View File

@@ -215,9 +215,7 @@ export function createOpenClawCodingTools(options?: {
// Prefer sessionKey for process isolation scope to prevent cross-session process visibility/killing.
// Fallback to agentId if no sessionKey is available (e.g. legacy or global contexts).
const scopeKey =
options?.exec?.scopeKey ??
options?.sessionKey ??
(agentId ? `agent:${agentId}` : undefined);
options?.exec?.scopeKey ?? options?.sessionKey ?? (agentId ? `agent:${agentId}` : undefined);
const subagentPolicy =
isSubagentSessionKey(options?.sessionKey) && options?.sessionKey
? resolveSubagentToolPolicy(options.config)