const reasons: string[] = []; const fixes: string[] = []; if (blockedByDeny) {
reasons.push("deny list");
fixes.push(`Remove "${tool}" from ${runtime.toolPolicy.sources.deny.key}.`);
} if (blockedByAllow) {
reasons.push("allow list");
fixes.push(
`Add "${tool}" to ${runtime.toolPolicy.sources.allow.key} (or set it to [] to allow all).`,
);
}
const lines: string[] = [];
lines.push(`Tool "${tool}" blocked by sandbox tool policy (mode=${runtime.mode}).`);
lines.push(`Session: ${redactSessionKey(runtime.sessionKey)}`);
lines.push(`Reason: ${reasons.join(" + ")}`);
lines.push("Fix:");
lines.push(`- agents.defaults.sandbox.mode=off (disable sandbox)`); for (const fix of fixes) {
lines.push(`- ${fix}`);
} if (runtime.mode === "non-main") {
lines.push("- Use the agent main session instead of a non-main session.");
} const explainCommand = runtime.sessionKey
? hasUnsafeControlChars(runtime.sessionKey)
? `openclaw sandbox explain --agent ${runtime.agentId}`
: `openclaw sandbox explain --session ${shellEscapeSingleArg(runtime.sessionKey)}`
: "openclaw sandbox explain";
lines.push(`- See: ${formatCliCommand(explainCommand)}`);
return lines.join("\n");
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.