Skip to content

Commit f74f671

Browse files
committed
fix(mxc): redirect LOCALAPPDATA into share_dir for openclaw-gateway example
agent_env's bare "LOCALAPPDATA" entry passed through the gateway host's real AppData\Local path, which process_container's default-deny filesystem policy never grants -- the sandbox only gets share_dir. OpenClaw's gateway uses LOCALAPPDATA as the fallback temp dir for its SQLite read-only backup worker, so it hit an unwritable path, logged "Could not start the CLI", and exited before its port came up, timing out sandbox creation at 300s. Override it to a path inside share_dir instead (still present and non-empty, satisfying the documented CreateProcessW requirement noted above this list). Confirmed against real MXC hardware: run-openclaw-forward-test.ps1 now passes end to end (sandbox create, OpenClaw gateway readiness, dynamic forward, real health check). Signed-off-by: pkhodade <[email protected]>
1 parent f3856fe commit f74f671

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎crates/openshell-driver-mxc/examples/mxc-openclaw-gateway.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ agent_env = [
6464
"WINDIR",
6565
"PATH",
6666
"COMSPEC",
67-
"LOCALAPPDATA",
67+
# LOCALAPPDATA redirected to share_dir: the AppContainer cannot write to the
68+
# host user's AppData path, and OpenClaw uses LOCALAPPDATA as a fallback
69+
# temp dir for its SQLite read-only backup worker.
70+
"LOCALAPPDATA=C:/openshell-openclaw/local",
6871
# Home/temp redirected to share_dir so openclaw can write state
6972
"HOME=C:/openshell-openclaw/home",
7073
"USERPROFILE=C:/openshell-openclaw/home",

0 commit comments

Comments
 (0)