test: stabilize Docker live service lanes

This commit is contained in:
Peter Steinberger
2026-04-25 02:33:03 +01:00
parent 3a7ee209c9
commit 835c4e053c
4 changed files with 6 additions and 2 deletions

View File

@@ -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:

View File

@@ -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 \

View File

@@ -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

View File

@@ -295,6 +295,7 @@ describeLive("gateway live (cli backend)", () => {
[modelKey]: {},
...(modelSwitchTarget ? { [modelSwitchTarget]: {} } : {}),
},
embeddedHarness: { runtime: "pi", fallback: "pi" },
cliBackends: {
...existingBackends,
[providerId]: {