From 5d30672e756cc10a6cda90f5bc55cf4812b7d1d6 Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Wed, 11 Feb 2026 19:53:31 -0600 Subject: [PATCH] fix: format pi-tools scope key line (openclaw#4887) thanks @mcinteerj --- src/agents/pi-tools.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/agents/pi-tools.ts b/src/agents/pi-tools.ts index c7942fc9e35..811d4708742 100644 --- a/src/agents/pi-tools.ts +++ b/src/agents/pi-tools.ts @@ -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)