mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 15:01:41 +03:00
fix: pass sandbox docker env into containers (#15138) (thanks @stevebot-alive)
This commit is contained in:
@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
|
|||||||
|
|
||||||
### Fixes
|
### 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.
|
- 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.
|
- 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.
|
- 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.
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ describe("buildSandboxCreateArgs", () => {
|
|||||||
"1.5",
|
"1.5",
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
|
expect(args).toEqual(expect.arrayContaining(["--env", "LANG=C.UTF-8"]));
|
||||||
|
|
||||||
const ulimitValues: string[] = [];
|
const ulimitValues: string[] = [];
|
||||||
for (let i = 0; i < args.length; i += 1) {
|
for (let i = 0; i < args.length; i += 1) {
|
||||||
|
|||||||
@@ -156,7 +156,9 @@ export function buildSandboxCreateArgs(params: {
|
|||||||
args.push("--user", params.cfg.user);
|
args.push("--user", params.cfg.user);
|
||||||
}
|
}
|
||||||
for (const [key, value] of Object.entries(params.cfg.env ?? {})) {
|
for (const [key, value] of Object.entries(params.cfg.env ?? {})) {
|
||||||
if (!key.trim()) continue;
|
if (!key.trim()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
args.push("--env", key + "=" + value);
|
args.push("--env", key + "=" + value);
|
||||||
}
|
}
|
||||||
for (const cap of params.cfg.capDrop) {
|
for (const cap of params.cfg.capDrop) {
|
||||||
|
|||||||
Reference in New Issue
Block a user