mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:51:23 +00:00
fix(exec): keep implicit sandbox default and restore no-alert baseline
This commit is contained in:
@@ -364,13 +364,9 @@ export function createOpenClawCodingTools(options?: {
|
||||
return [tool];
|
||||
});
|
||||
const { cleanupMs: cleanupMsOverride, ...execDefaults } = options?.exec ?? {};
|
||||
// Fail-closed baseline: when no sandbox context exists, default exec to gateway
|
||||
// so we never silently treat "sandbox" as host execution.
|
||||
const resolvedExecHost =
|
||||
options?.exec?.host ?? execConfig.host ?? (sandbox ? "sandbox" : "gateway");
|
||||
const execTool = createExecTool({
|
||||
...execDefaults,
|
||||
host: resolvedExecHost,
|
||||
host: options?.exec?.host ?? execConfig.host,
|
||||
security: options?.exec?.security ?? execConfig.security,
|
||||
ask: options?.exec?.ask ?? execConfig.ask,
|
||||
node: options?.exec?.node ?? execConfig.node,
|
||||
|
||||
Reference in New Issue
Block a user