fix: pass sandbox docker env into containers (#15138) (thanks @stevebot-alive)

This commit is contained in:
George Pickett
2026-02-12 19:37:41 -08:00
parent 92567765e6
commit a067565db5
3 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
### Fixes
- Sandbox: pass configured `sandbox.docker.env` variables to sandbox containers at `docker create` time. (#15138) Thanks @stevebot-alive.
- Onboarding/CLI: restore terminal state without resuming paused `stdin`, so onboarding exits cleanly after choosing Web UI and the installer returns instead of appearing stuck.
- macOS Voice Wake: fix a crash in trigger trimming for CJK/Unicode transcripts by matching and slicing on original-string ranges instead of transformed-string indices. (#11052) Thanks @Flash-LHR.
- Heartbeat: prevent scheduler silent-death races during runner reloads, preserve retry cooldown backoff under wake bursts, and prioritize user/action wake causes over interval/retry reasons when coalescing. (#15108) Thanks @joeykrug.

View File

@@ -78,6 +78,7 @@ describe("buildSandboxCreateArgs", () => {
"1.5",
]),
);
expect(args).toEqual(expect.arrayContaining(["--env", "LANG=C.UTF-8"]));
const ulimitValues: string[] = [];
for (let i = 0; i < args.length; i += 1) {

View File

@@ -156,7 +156,9 @@ export function buildSandboxCreateArgs(params: {
args.push("--user", params.cfg.user);
}
for (const [key, value] of Object.entries(params.cfg.env ?? {})) {
if (!key.trim()) continue;
if (!key.trim()) {
continue;
}
args.push("--env", key + "=" + value);
}
for (const cap of params.cfg.capDrop) {