mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix: format pi-tools scope key line (openclaw#4887) thanks @mcinteerj
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user