Skip to content

Commit 572b2f0

Browse files
committed
Merge commit 'a67c52611e5768ffe89dc2c4eea0cea0e26e34e6' into codex/qa0803-tts-hidden-text-fallback
2 parents 3caf5f4 + a67c526 commit 572b2f0

303 files changed

Lines changed: 20403 additions & 2686 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/crabbox-hydrate.yml‎

Lines changed: 68 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ env:
3434
PNPM_CONFIG_CHILD_CONCURRENCY: "1"
3535
PNPM_CONFIG_MODULES_DIR: "/var/tmp/openclaw-pnpm/node_modules"
3636
PNPM_CONFIG_NETWORK_CONCURRENCY: "1"
37-
PNPM_CONFIG_STORE_DIR: "/var/cache/crabbox/pnpm/store"
3837
PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: "false"
3938
PNPM_CONFIG_VIRTUAL_STORE_DIR: "/var/tmp/openclaw-pnpm/virtual-store"
4039

@@ -65,11 +64,30 @@ jobs:
6564
export COREPACK_HOME="${COREPACK_HOME:-$XDG_CACHE_HOME/corepack}"
6665
export PNPM_HOME="${PNPM_HOME:-$RUNNER_TEMP/pnpm-home}"
6766
mkdir -p "$XDG_CACHE_HOME" "$COREPACK_HOME" "$PNPM_HOME"
67+
preferred_pnpm_store="/var/cache/crabbox/pnpm/store"
68+
pnpm_install_root="/var/tmp/openclaw-pnpm"
69+
if mkdir -p "$preferred_pnpm_store" 2>/dev/null &&
70+
[ ! -L "$preferred_pnpm_store" ] &&
71+
[ -d "$preferred_pnpm_store" ] &&
72+
[ -w "$preferred_pnpm_store" ]; then
73+
export PNPM_CONFIG_STORE_DIR="$preferred_pnpm_store"
74+
else
75+
pnpm_cache_root="${XDG_CACHE_HOME:-$HOME/.cache}/openclaw/pnpm"
76+
pnpm_install_root="$pnpm_cache_root/install"
77+
export PNPM_CONFIG_STORE_DIR="$pnpm_cache_root/store"
78+
export PNPM_CONFIG_MODULES_DIR="$pnpm_install_root/node_modules"
79+
export PNPM_CONFIG_PACKAGE_IMPORT_METHOD="hardlink"
80+
export PNPM_CONFIG_VIRTUAL_STORE_DIR="$pnpm_install_root/virtual-store"
81+
fi
6882
export PATH="$PNPM_HOME:$PATH"
6983
{
7084
echo "XDG_CACHE_HOME=$XDG_CACHE_HOME"
7185
echo "COREPACK_HOME=$COREPACK_HOME"
7286
echo "PNPM_HOME=$PNPM_HOME"
87+
echo "PNPM_CONFIG_STORE_DIR=$PNPM_CONFIG_STORE_DIR"
88+
echo "PNPM_CONFIG_MODULES_DIR=$PNPM_CONFIG_MODULES_DIR"
89+
echo "PNPM_CONFIG_PACKAGE_IMPORT_METHOD=${PNPM_CONFIG_PACKAGE_IMPORT_METHOD:-}"
90+
echo "PNPM_CONFIG_VIRTUAL_STORE_DIR=$PNPM_CONFIG_VIRTUAL_STORE_DIR"
7391
} >> "$GITHUB_ENV"
7492
7593
package_manager="$(node -e "const fs = require('node:fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); process.stdout.write(pkg.packageManager || '')")"
@@ -119,6 +137,7 @@ jobs:
119137
append_pnpm_option_arg PNPM_CONFIG_CHILD_CONCURRENCY child-concurrency
120138
append_pnpm_option_arg PNPM_CONFIG_MODULES_DIR modules-dir
121139
append_pnpm_option_arg PNPM_CONFIG_NETWORK_CONCURRENCY network-concurrency
140+
append_pnpm_option_arg PNPM_CONFIG_PACKAGE_IMPORT_METHOD package-import-method
122141
append_pnpm_option_arg PNPM_CONFIG_VIRTUAL_STORE_DIR virtual-store-dir
123142
require_safe_writable_dir() {
124143
local dir="$1"
@@ -128,14 +147,18 @@ jobs:
128147
fi
129148
}
130149
prepare_crabbox_pnpm_dirs() {
131-
local volatile_root="/var/tmp/openclaw-pnpm"
132-
case "${PNPM_CONFIG_MODULES_DIR:?}" in "$volatile_root"/*) ;; *) echo "::error::PNPM_CONFIG_MODULES_DIR must stay under $volatile_root"; exit 1 ;; esac
133-
case "${PNPM_CONFIG_VIRTUAL_STORE_DIR:?}" in "$volatile_root"/*) ;; *) echo "::error::PNPM_CONFIG_VIRTUAL_STORE_DIR must stay under $volatile_root"; exit 1 ;; esac
134-
rm -rf -- "$volatile_root"
135-
mkdir -p "$volatile_root" "$PNPM_CONFIG_STORE_DIR"
136-
require_safe_writable_dir "$volatile_root"
150+
case "${PNPM_CONFIG_MODULES_DIR:?}" in "$pnpm_install_root"/*) ;; *) echo "::error::PNPM_CONFIG_MODULES_DIR must stay under $pnpm_install_root"; exit 1 ;; esac
151+
case "${PNPM_CONFIG_VIRTUAL_STORE_DIR:?}" in "$pnpm_install_root"/*) ;; *) echo "::error::PNPM_CONFIG_VIRTUAL_STORE_DIR must stay under $pnpm_install_root"; exit 1 ;; esac
152+
rm -rf -- "$pnpm_install_root"
153+
mkdir -p "$pnpm_install_root" "$PNPM_CONFIG_STORE_DIR"
154+
require_safe_writable_dir "$pnpm_install_root"
137155
require_safe_writable_dir "$PNPM_CONFIG_STORE_DIR"
138156
mkdir -p "$PNPM_CONFIG_MODULES_DIR" "$PNPM_CONFIG_VIRTUAL_STORE_DIR"
157+
if [ "$PNPM_CONFIG_STORE_DIR" != "$preferred_pnpm_store" ] &&
158+
[ "$(stat -c %d "$PNPM_CONFIG_STORE_DIR")" != "$(stat -c %d "$PNPM_CONFIG_MODULES_DIR")" ]; then
159+
echo "::error::Fallback pnpm store and modules directories must share a filesystem"
160+
exit 1
161+
fi
139162
}
140163
prepare_crabbox_pnpm_dirs
141164
if [ -L node_modules ] && [ "$(readlink node_modules)" = "${PNPM_CONFIG_MODULES_DIR:-}" ]; then
@@ -242,24 +265,37 @@ jobs:
242265
- &crabbox_ensure_docker_step
243266
name: Ensure Docker is running
244267
shell: bash
268+
env:
269+
CRABBOX_JOB: ${{ inputs.crabbox_job }}
245270
run: |
246271
set -euo pipefail
247272
273+
docker_required=false
274+
# crabbox_job is also the readiness marker. Only the routed Docker
275+
# workload contract requires an engine; other marker names do not.
276+
if [ "${CRABBOX_JOB:-hydrate}" = "hydrate-docker" ]; then
277+
docker_required=true
278+
fi
279+
248280
if ! command -v docker >/dev/null 2>&1; then
249-
echo "docker not found; installing fallback engine"
250-
curl --fail --show-error --location \
251-
--connect-timeout "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_CONNECT_TIMEOUT_SECONDS:-15}" \
252-
--max-time "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_TIMEOUT_SECONDS:-300}" \
253-
--retry "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_RETRIES:-3}" \
254-
--retry-delay "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_RETRY_DELAY_SECONDS:-5}" \
255-
--retry-all-errors \
256-
https://get.docker.com | sudo sh
281+
if [ "$docker_required" = true ]; then
282+
echo "docker not found; installing fallback engine"
283+
curl --fail --show-error --location \
284+
--connect-timeout "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_CONNECT_TIMEOUT_SECONDS:-15}" \
285+
--max-time "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_TIMEOUT_SECONDS:-300}" \
286+
--retry "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_RETRIES:-3}" \
287+
--retry-delay "${OPENCLAW_CRABBOX_HYDRATE_DOWNLOAD_RETRY_DELAY_SECONDS:-5}" \
288+
--retry-all-errors \
289+
https://get.docker.com | sudo sh
290+
fi
257291
fi
258292
259-
if command -v systemctl >/dev/null 2>&1; then
260-
sudo systemctl start docker || true
261-
elif command -v service >/dev/null 2>&1; then
262-
sudo service docker start || true
293+
if command -v docker >/dev/null 2>&1; then
294+
if command -v systemctl >/dev/null 2>&1; then
295+
sudo systemctl start docker || true
296+
elif command -v service >/dev/null 2>&1; then
297+
sudo service docker start || true
298+
fi
263299
fi
264300
265301
if [ -S /var/run/docker.sock ]; then
@@ -269,6 +305,17 @@ jobs:
269305
sudo chmod 666 /var/run/docker.sock
270306
fi
271307
308+
if ! docker version >/dev/null 2>&1; then
309+
if [ "$docker_required" = true ]; then
310+
echo "::error::Docker is unavailable for ${CRABBOX_JOB:-hydrate}; route this workload to a Docker-capable provider"
311+
exit 1
312+
fi
313+
echo "::notice::Docker is unavailable; standard hydration will continue without Docker"
314+
echo "OPENCLAW_CRABBOX_DOCKER_AVAILABLE=0" >> "$GITHUB_ENV"
315+
exit 0
316+
fi
317+
318+
echo "OPENCLAW_CRABBOX_DOCKER_AVAILABLE=1" >> "$GITHUB_ENV"
272319
if ! docker buildx version >/dev/null 2>&1; then
273320
arch="$(uname -m)"
274321
case "$arch" in
@@ -341,7 +388,7 @@ jobs:
341388
fi
342389
}
343390
{
344-
for key in CI GITHUB_ACTIONS GITHUB_WORKSPACE GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_NUMBER GITHUB_RUN_ATTEMPT GITHUB_REF GITHUB_REF_NAME GITHUB_SHA GITHUB_EVENT_NAME GITHUB_ACTOR RUNNER_OS RUNNER_ARCH RUNNER_TEMP RUNNER_TOOL_CACHE XDG_CACHE_HOME COREPACK_HOME NODE_BIN PNPM_HOME PNPM_CONFIG_CHILD_CONCURRENCY PNPM_CONFIG_MODULES_DIR PNPM_CONFIG_NETWORK_CONCURRENCY PNPM_CONFIG_STORE_DIR PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN PNPM_CONFIG_VIRTUAL_STORE_DIR PATH; do
391+
for key in CI GITHUB_ACTIONS GITHUB_WORKSPACE GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_NUMBER GITHUB_RUN_ATTEMPT GITHUB_REF GITHUB_REF_NAME GITHUB_SHA GITHUB_EVENT_NAME GITHUB_ACTOR RUNNER_OS RUNNER_ARCH RUNNER_TEMP RUNNER_TOOL_CACHE XDG_CACHE_HOME COREPACK_HOME NODE_BIN OPENCLAW_CRABBOX_DOCKER_AVAILABLE PNPM_HOME PNPM_CONFIG_CHILD_CONCURRENCY PNPM_CONFIG_MODULES_DIR PNPM_CONFIG_NETWORK_CONCURRENCY PNPM_CONFIG_PACKAGE_IMPORT_METHOD PNPM_CONFIG_STORE_DIR PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN PNPM_CONFIG_VIRTUAL_STORE_DIR PATH; do
345392
write_export "$key"
346393
done
347394
} > "${env_file}.tmp"
@@ -760,7 +807,7 @@ jobs:
760807
fi
761808
}
762809
{
763-
for key in CI GITHUB_ACTIONS GITHUB_WORKSPACE GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_NUMBER GITHUB_RUN_ATTEMPT GITHUB_REF GITHUB_REF_NAME GITHUB_SHA GITHUB_EVENT_NAME GITHUB_ACTOR RUNNER_OS RUNNER_ARCH RUNNER_TEMP RUNNER_TOOL_CACHE NODE_BIN PNPM_HOME PNPM_CONFIG_CHILD_CONCURRENCY PNPM_CONFIG_MODULES_DIR PNPM_CONFIG_NETWORK_CONCURRENCY PNPM_CONFIG_STORE_DIR PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN PNPM_CONFIG_VIRTUAL_STORE_DIR PATH; do
810+
for key in CI GITHUB_ACTIONS GITHUB_WORKSPACE GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_NUMBER GITHUB_RUN_ATTEMPT GITHUB_REF GITHUB_REF_NAME GITHUB_SHA GITHUB_EVENT_NAME GITHUB_ACTOR RUNNER_OS RUNNER_ARCH RUNNER_TEMP RUNNER_TOOL_CACHE NODE_BIN OPENCLAW_CRABBOX_DOCKER_AVAILABLE PNPM_HOME PNPM_CONFIG_CHILD_CONCURRENCY PNPM_CONFIG_MODULES_DIR PNPM_CONFIG_NETWORK_CONCURRENCY PNPM_CONFIG_PACKAGE_IMPORT_METHOD PNPM_CONFIG_STORE_DIR PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN PNPM_CONFIG_VIRTUAL_STORE_DIR PATH; do
764811
write_export "$key"
765812
done
766813
} > "${env_file}.tmp"

‎.github/workflows/qa-live-transports-convex.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ jobs:
588588
if-no-files-found: error
589589

590590
- name: Require requested Buzz QA runner
591-
if: always() && steps.resolve_buzz.outcome == 'success' && steps.resolve_buzz.outputs.available != 'true'
591+
if: always() && inputs.expected_sha == '' && steps.resolve_buzz.outcome == 'success' && steps.resolve_buzz.outputs.available != 'true'
592592
shell: bash
593593
run: |
594594
echo "::error::The selected ref does not declare the requested Buzz QA runner."

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Docs: https://docs.openclaw.ai
66

77
### Changes
88

9+
- Fixed Crabbox hydration on unprivileged cloud sandboxes by falling back to a user-writable pnpm store when the shared `/var/cache/crabbox` cache is unavailable, preserving the hardlink import mode after hydration, and making Docker an explicit routed capability instead of an implicit install requirement.
10+
911
- **Browser extension relay CDP compat:** answer `Target.getBrowserContexts` so Puppeteer-based clients (chrome-devtools-mcp) can drive the paired Chrome without the remote-debugging permission prompt, serve DevTools-style `/json/list` target descriptors, and add `openclaw browser extension cdp` to print the relay endpoint plus auth header for external CDP clients.
1012
- **Local model setup:** advertise provider-owned Ollama, llama.cpp, and LM Studio setup choices to Control UI and macOS, retry unavailable LM Studio services in place, and verify the exact prepared model before showing success.
1113
- **Control UI first-run setup:** continue verified model setup into Custodian, explain that the web app is ready without a channel, and offer an optional dismissible path to Channels.
@@ -61,6 +63,7 @@ Docs: https://docs.openclaw.ai
6163

6264
### Fixes
6365

66+
- **Guided onboarding skip-UI routing:** keep `openclaw onboard --skip-ui` and `openclaw setup --skip-ui` on guided onboarding while skipping both browser and terminal handoffs, instead of silently switching to the classic wizard. Thanks @shakkernerd.
6467
- **Telegram durable ingress:** preserve pre-identity control-lane ownership during replay and attempt each drain snapshot row only once per pass, preventing targeted commands from spinning the spool and blocking polling shutdown.
6568
- **Control UI operator session permissions:** honor Gateway-advertised operator scopes for new-thread creation, thread management, checkpoints, and sharing controls while preserving read-only navigation and legacy Gateway compatibility. Fixes #117786. Thanks @shakkernerd.
6669
- **Control UI delayed session commands:** bind slash-command mutations and confirmed resets to their originating Gateway, recheck current operator scopes after asynchronous work, and retain reset authorization through queued delivery so reconnects cannot target a replacement connection. Thanks @shakkernerd.

‎config/knip.all-exports.config.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const ROOT_TEST_ENTRY_GLOBS = [
4444
"test/non-isolated-runner.ts!",
4545
"test/vitest/*-runtime.ts!",
4646
"test/vitest/vitest*.config.ts!",
47+
"test/vitest/vitest*.setup.ts!",
48+
"test/vitest/vitest*.global-setup.ts!",
4749
// Test drivers and Docker fixtures are executed by path from package scripts
4850
// and the test-project registry.
4951
"test/e2e/qa-lab/runtime/agent-bundle-mcp-tools-docker-client.ts!",

‎docs/.i18n/glossary.zh-CN.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@
387387
"source": "WeChat",
388388
"target": "微信"
389389
},
390+
{
391+
"source": "WeCom",
392+
"target": "企业微信"
393+
},
390394
{
391395
"source": "Weixin",
392396
"target": "微信"

‎docs/.i18n/glossary.zh-TW.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@
135135
"source": "WeChat",
136136
"target": "微信"
137137
},
138+
{
139+
"source": "WeCom",
140+
"target": "企業微信"
141+
},
138142
{
139143
"source": "Weixin",
140144
"target": "微信"

0 commit comments

Comments
 (0)