diff --git a/docs/help/testing-live.md b/docs/help/testing-live.md index fc1112325b0..18a0566f6dc 100644 --- a/docs/help/testing-live.md +++ b/docs/help/testing-live.md @@ -124,7 +124,8 @@ openclaw models list --json - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_ARG="--image"` to pass image file paths as CLI args instead of prompt injection. - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_MODE="repeat"` (or `"list"`) to control how image args are passed when `IMAGE_ARG` is set. - `OPENCLAW_LIVE_CLI_BACKEND_RESUME_PROBE=1` to send a second turn and validate resume flow. - - `OPENCLAW_LIVE_CLI_BACKEND_MODEL_SWITCH_PROBE=0` to disable the default Claude Sonnet -> Opus same-session continuity probe (set to `1` to force it on when the selected model supports a switch target). + - `OPENCLAW_LIVE_CLI_BACKEND_MODEL_SWITCH_PROBE=1` to opt into the Claude Sonnet -> Opus same-session continuity probe when the selected model supports a switch target. Docker recipes default this off for aggregate reliability. + - `OPENCLAW_LIVE_CLI_BACKEND_MCP_PROBE=1` to opt into the MCP/tool loopback probe. Docker recipes default this off unless explicitly requested. Example: diff --git a/scripts/e2e/openwebui-docker.sh b/scripts/e2e/openwebui-docker.sh index 65bbf27d871..33a4e5a0a56 100755 --- a/scripts/e2e/openwebui-docker.sh +++ b/scripts/e2e/openwebui-docker.sh @@ -152,7 +152,7 @@ docker_cmd docker run -d \ --network "$NET_NAME" \ -e ENV=prod \ -e WEBUI_NAME="OpenClaw E2E" \ - -e WEBUI_SECRET_KEY="openclaw-openwebui-e2e-secret" \ + -e WEBUI_SECRET_KEY="openclaw-openwebui-e2e-secret-key-v1" \ -e OFFLINE_MODE=True \ -e ENABLE_VERSION_UPDATE_CHECK=False \ -e ENABLE_PERSISTENT_CONFIG=False \ diff --git a/scripts/test-live-cli-backend-docker.sh b/scripts/test-live-cli-backend-docker.sh index ee0da8d112e..b7bf8b9bf24 100644 --- a/scripts/test-live-cli-backend-docker.sh +++ b/scripts/test-live-cli-backend-docker.sh @@ -73,6 +73,8 @@ if [[ "$CLI_PROVIDER" == "claude-cli" && -z "$CLI_DISABLE_MCP_CONFIG" ]]; then CLI_DISABLE_MCP_CONFIG="0" fi fi +export OPENCLAW_LIVE_CLI_BACKEND_MODEL_SWITCH_PROBE="${OPENCLAW_LIVE_CLI_BACKEND_MODEL_SWITCH_PROBE:-0}" +export OPENCLAW_LIVE_CLI_BACKEND_MCP_PROBE="${OPENCLAW_LIVE_CLI_BACKEND_MCP_PROBE:-0}" cleanup_temp_dirs() { if ((${#TEMP_DIRS[@]} > 0)); then diff --git a/src/gateway/gateway-cli-backend.live.test.ts b/src/gateway/gateway-cli-backend.live.test.ts index 453ec8621b2..b076cee4ea6 100644 --- a/src/gateway/gateway-cli-backend.live.test.ts +++ b/src/gateway/gateway-cli-backend.live.test.ts @@ -295,6 +295,7 @@ describeLive("gateway live (cli backend)", () => { [modelKey]: {}, ...(modelSwitchTarget ? { [modelSwitchTarget]: {} } : {}), }, + embeddedHarness: { runtime: "pi", fallback: "pi" }, cliBackends: { ...existingBackends, [providerId]: {