From 0a2b87c986ba56271f779c9643a372e0796653e7 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 3 May 2026 16:48:12 +0100 Subject: [PATCH] test: isolate gateway agent dirs --- src/gateway/test-helpers.server.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gateway/test-helpers.server.ts b/src/gateway/test-helpers.server.ts index 4c032eda556..e604300dd6a 100644 --- a/src/gateway/test-helpers.server.ts +++ b/src/gateway/test-helpers.server.ts @@ -64,6 +64,8 @@ const GATEWAY_TEST_ENV_KEYS = [ "USERPROFILE", "OPENCLAW_STATE_DIR", "OPENCLAW_CONFIG_PATH", + "OPENCLAW_AGENT_DIR", + "PI_CODING_AGENT_DIR", "OPENCLAW_GATEWAY_TOKEN", "OPENCLAW_SKIP_BROWSER_CONTROL_SERVER", "OPENCLAW_SKIP_GMAIL_WATCHER", @@ -225,6 +227,8 @@ async function setupGatewayTestHome() { process.env.USERPROFILE = tempHome; process.env.OPENCLAW_STATE_DIR = path.join(tempHome, ".openclaw"); delete process.env.OPENCLAW_CONFIG_PATH; + delete process.env.OPENCLAW_AGENT_DIR; + delete process.env.PI_CODING_AGENT_DIR; } function applyGatewaySkipEnv() {