The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix(smoke): pin OpenClaw docker harness to stable stock ref
Dotta9ac2e71187ea
diff --git a/scripts/smoke/openclaw-docker-ui.sh b/scripts/smoke/openclaw-docker-ui.shindex c8d3206823..0ce522e94b 100755--- a/scripts/smoke/openclaw-docker-ui.sh+++ b/scripts/smoke/openclaw-docker-ui.sh@@ -56,6 +56,7 @@ require_cmd grepOPENCLAW_REPO_URL="${OPENCLAW_REPO_URL:-https://github.com/openclaw/openclaw.git}"OPENCLAW_DOCKER_DIR="${OPENCLAW_DOCKER_DIR:-/tmp/openclaw-docker}"+OPENCLAW_REPO_REF="${OPENCLAW_REPO_REF:-v2026.3.2}"OPENCLAW_IMAGE="${OPENCLAW_IMAGE:-openclaw:local}"OPENCLAW_TMP_DIR="${OPENCLAW_TMP_DIR:-${TMPDIR:-/tmp}}"OPENCLAW_TMP_DIR="${OPENCLAW_TMP_DIR%/}"@@ -101,14 +102,23 @@ filog "preparing OpenClaw repo at $OPENCLAW_DOCKER_DIR"if [[ -d "$OPENCLAW_DOCKER_DIR/.git" ]]; then- git -C "$OPENCLAW_DOCKER_DIR" fetch --quiet origin || true- git -C "$OPENCLAW_DOCKER_DIR" checkout --quiet main || true- git -C "$OPENCLAW_DOCKER_DIR" pull --ff-only --quiet origin main || true+ git -C "$OPENCLAW_DOCKER_DIR" fetch --quiet --tags origin || trueelserm -rf "$OPENCLAW_DOCKER_DIR"git clone "$OPENCLAW_REPO_URL" "$OPENCLAW_DOCKER_DIR"+ git -C "$OPENCLAW_DOCKER_DIR" fetch --quiet --tags origin || truefi+resolved_openclaw_ref=""+if git -C "$OPENCLAW_DOCKER_DIR" rev-parse --verify --quiet "origin/$OPENCLAW_REPO_REF" >/dev/null; then+ resolved_openclaw_ref="origin/$OPENCLAW_REPO_REF"+elif git -C "$OPENCLAW_DOCKER_DIR" rev-parse --verify --quiet "$OPENCLAW_REPO_REF" >/dev/null; then+ resolved_openclaw_ref="$OPENCLAW_REPO_REF"+fi+[[ -n "$resolved_openclaw_ref" ]] || fail "unable to resolve OPENCLAW_REPO_REF=$OPENCLAW_REPO_REF in $OPENCLAW_DOCKER_DIR"+git -C "$OPENCLAW_DOCKER_DIR" checkout --quiet "$resolved_openclaw_ref"+log "using OpenClaw ref $resolved_openclaw_ref ($(git -C "$OPENCLAW_DOCKER_DIR" rev-parse --short HEAD))"+if [[ "$OPENCLAW_BUILD" == "1" ]]; thenlog "building Docker image $OPENCLAW_IMAGE"docker build -t "$OPENCLAW_IMAGE" -f "$OPENCLAW_DOCKER_DIR/Dockerfile" "$OPENCLAW_DOCKER_DIR"