惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
WordPress大学
WordPress大学
IT之家
IT之家
G
Google Developers Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta
Martin Fowler
Martin Fowler
V
V2EX
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
V
Visual Studio Blog
有赞技术团队
有赞技术团队
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(crabbox): serialize macos node bootstrap · openclaw/o...
vincentkoc · 2026-06-02 · via Recent Commits to openclaw:main

@@ -1647,19 +1647,40 @@ function remoteAwsMacosJsBootstrap({ packageManager = false } = {}) {

16471647

'if [ ! -d "$TMPDIR" ]; then mkdir -p "$TMPDIR" 2>/dev/null || export TMPDIR="/tmp"; fi;',

16481648

'if [ ! -d "$TMPDIR" ]; then echo "usable TMPDIR not found: $TMPDIR" >&2; return 1; fi;',

16491649

'node_dir="$tool_root/node-v${node_version}-darwin-${node_arch}";',

1650+

'ready_marker="$node_dir/.openclaw-crabbox-node-ready";',

16501651

'export PATH="$node_dir/bin:$PATH";',

1651-

'if [ ! -x "$node_dir/bin/node" ]; then',

1652-

'tmp_dir="$(mktemp -d)" || return 1;',

1652+

'if [ ! -x "$node_dir/bin/node" ] || [ ! -f "$ready_marker" ]; then',

1653+

'mkdir -p "$tool_root" || { status=$?; return "$status"; };',

1654+

'install_lock="$tool_root/.node-${node_version}-${node_arch}.lock";',

1655+

"lock_acquired=0;",

1656+

'lock_deadline=$((SECONDS + 300));',

1657+

"while true; do",

1658+

'if mkdir "$install_lock" 2>/dev/null; then lock_acquired=1; printf "%s\\n" "$$" >"$install_lock/pid" || { status=$?; rm -rf "$install_lock"; return "$status"; }; break; fi;',

1659+

'if [ -x "$node_dir/bin/node" ] && [ -f "$ready_marker" ]; then break; fi;',

1660+

'if [ "$SECONDS" -ge "$lock_deadline" ]; then',

1661+

'lock_pid="$(cat "$install_lock/pid" 2>/dev/null || true)";',

1662+

'if [ -n "$lock_pid" ] && kill -0 "$lock_pid" 2>/dev/null; then echo "timed out waiting for active macOS Node toolchain install lock: $install_lock pid=$lock_pid" >&2; return 1; fi;',

1663+

'echo "reclaiming stale macOS Node toolchain install lock: $install_lock" >&2;',

1664+

'rm -rf "$install_lock" || return 1;',

1665+

'lock_deadline=$((SECONDS + 300));',

1666+

"fi;",

1667+

"sleep 1;",

1668+

"done;",

1669+

"release_install_lock() { if [ \"$lock_acquired\" = \"1\" ]; then rm -rf \"$install_lock\" 2>/dev/null || true; fi; };",

1670+

'if [ ! -x "$node_dir/bin/node" ] || [ ! -f "$ready_marker" ]; then',

1671+

'tmp_dir="$(mktemp -d)" || { release_install_lock; return 1; };',

16531672

'pkg="node-v${node_version}-darwin-${node_arch}.tar.gz";',

16541673

'base_url="https://nodejs.org/dist/v${node_version}";',

1655-

'mkdir -p "$tool_root" || { status=$?; rm -rf "$tmp_dir"; return "$status"; };',

1656-

'curl -fsSLo "$tmp_dir/$pkg" "$base_url/$pkg" || { status=$?; rm -rf "$tmp_dir"; return "$status"; };',

1657-

'curl -fsSLo "$tmp_dir/SHASUMS256.txt" "$base_url/SHASUMS256.txt" || { status=$?; rm -rf "$tmp_dir"; return "$status"; };',

1658-

'(cd "$tmp_dir" && grep " $pkg$" SHASUMS256.txt | shasum -a 256 -c -) || { status=$?; rm -rf "$tmp_dir"; return "$status"; };',

1659-

'rm -rf "$node_dir" || { status=$?; rm -rf "$tmp_dir"; return "$status"; };',

1660-

'tar -xzf "$tmp_dir/$pkg" -C "$tool_root" || { status=$?; rm -rf "$tmp_dir"; return "$status"; };',

1674+

'curl -fsSLo "$tmp_dir/$pkg" "$base_url/$pkg" || { status=$?; release_install_lock; rm -rf "$tmp_dir"; return "$status"; };',

1675+

'curl -fsSLo "$tmp_dir/SHASUMS256.txt" "$base_url/SHASUMS256.txt" || { status=$?; release_install_lock; rm -rf "$tmp_dir"; return "$status"; };',

1676+

'(cd "$tmp_dir" && grep " $pkg$" SHASUMS256.txt | shasum -a 256 -c -) || { status=$?; release_install_lock; rm -rf "$tmp_dir"; return "$status"; };',

1677+

'rm -rf "$node_dir" || { status=$?; release_install_lock; rm -rf "$tmp_dir"; return "$status"; };',

1678+

'tar -xzf "$tmp_dir/$pkg" -C "$tool_root" || { status=$?; release_install_lock; rm -rf "$tmp_dir"; return "$status"; };',

1679+

'touch "$ready_marker" || { status=$?; release_install_lock; rm -rf "$tmp_dir"; return "$status"; };',

16611680

'rm -rf "$tmp_dir";',

16621681

"fi;",

1682+

"release_install_lock;",

1683+

"fi;",

16631684

"node --version >&2 || return 1;",

16641685

"openclaw_crabbox_env() {",

16651686

"openclaw_env_args=();",