fix(doctor): improve sandbox warning when Docker unavailable

This commit is contained in:
Marcus Castro
2026-02-24 10:23:33 -03:00
committed by Peter Steinberger
parent d2c031de84
commit 23b9daee6f
2 changed files with 139 additions and 1 deletions

View File

@@ -188,7 +188,16 @@ export async function maybeRepairSandboxImages(
const dockerAvailable = await isDockerAvailable();
if (!dockerAvailable) {
note("Docker not available; skipping sandbox image checks.", "Sandbox");
const lines = [
`Sandbox mode is enabled (mode: "${mode}") but Docker is not available.`,
"Docker is required for sandbox mode to function.",
"Isolated sessions (cron jobs, sub-agents) will fail without Docker.",
"",
"Options:",
"- Install Docker and restart the gateway",
"- Disable sandbox mode: openclaw config set agents.defaults.sandbox.mode off",
];
note(lines.join("\n"), "Sandbox");
return cfg;
}