From 28aaca6fcfce3d5af912da74a959c2710064cef8 Mon Sep 17 00:00:00 2001 From: "openclaw-docs-sync[bot]" Date: Tue, 7 Apr 2026 08:06:49 +0000 Subject: [PATCH] chore(sync): mirror docs from openclaw/openclaw@d56831f81b7d91d7e993aa3cf6b58ed8a58998c1 --- .openclaw-sync/source.json | 4 ++-- docs/help/testing.md | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 47f2dac03..7c0160b48 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "9e9730a55e2c81035a996cd1c925894c8e43ea2b", - "syncedAt": "2026-04-07T07:59:55.834Z" + "sha": "d56831f81b7d91d7e993aa3cf6b58ed8a58998c1", + "syncedAt": "2026-04-07T08:06:49.285Z" } diff --git a/docs/help/testing.md b/docs/help/testing.md index 3c19481ac..d22cddca3 100644 --- a/docs/help/testing.md +++ b/docs/help/testing.md @@ -253,17 +253,17 @@ openclaw models list openclaw models list --json ``` -## Live: CLI backend smoke (Codex CLI or other local CLIs) +## Live: CLI backend smoke (Claude, Codex, Gemini, or other local CLIs) - Test: `src/gateway/gateway-cli-backend.live.test.ts` - Goal: validate the Gateway + agent pipeline using a local CLI backend, without touching your default config. +- Backend-specific smoke defaults live with the owning extension's `cli-backend.ts` definition. - Enable: - `pnpm test:live` (or `OPENCLAW_LIVE_TEST=1` if invoking Vitest directly) - `OPENCLAW_LIVE_CLI_BACKEND=1` - Defaults: - - Model: `codex-cli/gpt-5.4` - - Command: `codex` - - Args: `["exec","--json","--color","never","--sandbox","read-only","--skip-git-repo-check"]` + - Default provider/model: `claude-cli/claude-sonnet-4-6` + - Command/args/image behavior come from the owning CLI backend plugin metadata. - Overrides (optional): - `OPENCLAW_LIVE_CLI_BACKEND_MODEL="codex-cli/gpt-5.4"` - `OPENCLAW_LIVE_CLI_BACKEND_COMMAND="/full/path/to/codex"` @@ -287,11 +287,19 @@ Docker recipe: pnpm test:docker:live-cli-backend ``` +Single-provider Docker recipes: + +```bash +pnpm test:docker:live-cli-backend:claude +pnpm test:docker:live-cli-backend:codex +pnpm test:docker:live-cli-backend:gemini +``` + Notes: - The Docker runner lives at `scripts/test-live-cli-backend-docker.sh`. - It runs the live CLI-backend smoke inside the repo Docker image as the non-root `node` user. -- For `codex-cli`, it installs the Linux `@openai/codex` package into a cached writable prefix at `OPENCLAW_DOCKER_CLI_TOOLS_DIR` (default: `~/.cache/openclaw/docker-cli-tools`). +- It resolves CLI smoke metadata from the owning extension, then installs the matching Linux CLI package (`@anthropic-ai/claude-code`, `@openai/codex`, or `@google/gemini-cli`) into a cached writable prefix at `OPENCLAW_DOCKER_CLI_TOOLS_DIR` (default: `~/.cache/openclaw/docker-cli-tools`). ## Live: ACP bind smoke (`/acp spawn ... --bind here`)