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

推荐订阅源

P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
B
Blog
月光博客
月光博客
博客园 - 【当耐特】
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
博客园 - Franky
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Last Week in AI
Last Week in AI
B
Blog RSS Feed
H
Help Net Security

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
test(e2e): harden multi-node update smoke · openclaw/open...
vincentkoc · 2026-05-25 · via Recent Commits to openclaw:main

@@ -159,13 +159,16 @@ case "\$command" in

159159

echo "systemctl shim: unit not found: \$unit" >&2

160160

exit 1

161161

fi

162-

exec_start="\$(grep "^ExecStart=" "\$unit" | head -1 | sed "s/^ExecStart=//")"

162+

exec_start_line="\$(grep "^ExecStart=" "\$unit" | head -1 || true)"

163+

exec_start="\${exec_start_line#ExecStart=}"

163164

if [ -z "\$exec_start" ]; then

164165

echo "systemctl shim: no ExecStart in \$unit" >&2

165166

exit 1

166167

fi

167168

# Source EnvironmentFile if present

168-

env_file="\$(grep "^EnvironmentFile=" "\$unit" | head -1 | sed "s/^EnvironmentFile=//" | sed "s/^-//")"

169+

env_file_line="\$(grep "^EnvironmentFile=" "\$unit" | head -1 || true)"

170+

env_file="\${env_file_line#EnvironmentFile=}"

171+

env_file="\${env_file#-}"

169172

if [ -n "\$env_file" ] && [ -f "\$env_file" ]; then

170173

set -a; source "\$env_file"; set +a

171174

fi

@@ -197,7 +200,20 @@ case "\$command" in

197200

fi

198201

;;

199202

show)

200-

echo "ActiveState=inactive"

203+

if [ -s "$GATEWAY_PID_FILE" ] && kill -0 "\$(cat "$GATEWAY_PID_FILE" 2>/dev/null)" 2>/dev/null; then

204+

pid="\$(cat "$GATEWAY_PID_FILE")"

205+

echo "ActiveState=active"

206+

echo "SubState=running"

207+

echo "MainPID=\$pid"

208+

echo "ExecMainStatus=0"

209+

echo "ExecMainCode=0"

210+

else

211+

echo "ActiveState=inactive"

212+

echo "SubState=dead"

213+

echo "MainPID=0"

214+

echo "ExecMainStatus=0"

215+

echo "ExecMainCode=0"

216+

fi

201217

;;

202218

*)

203219

echo "systemctl shim: ignoring: \$*"

@@ -240,6 +256,8 @@ echo "── Step 5: Switch PATH so node-B comes first ──"

240256

# Crucially, node-B has its own working npm with its own global prefix,

241257

# but openclaw is NOT installed there.

242258

export PATH="$NPM_PREFIX_B/bin:$NODE_B_ROOT/bin:$NPM_PREFIX_A/bin:$NODE_A_DIR:$PATH"

259+

export npm_config_prefix="$NPM_PREFIX_B"

260+

export NPM_CONFIG_PREFIX="$NPM_PREFIX_B"

243261244262

# Verify node-B npm works independently.

245263

echo "node-B npm prefix: $($NODE_B_ROOT/bin/node $NODE_B_ROOT/bin/npm prefix -g 2>/dev/null || echo unknown)"

@@ -343,6 +361,7 @@ fi

343361

echo ""

344362

echo "── Step 9: Try starting the gateway with the post-update unit ──"

345363364+

GATEWAY_START_FAILED=0

346365

if [ -f "$GATEWAY_UNIT_PATH" ]; then

347366

systemctl restart 2>&1 || true

348367

sleep 3

@@ -359,6 +378,7 @@ if [ -f "$GATEWAY_UNIT_PATH" ]; then

359378

else

360379

echo "BUG: Gateway failed to start with the post-update unit"

361380

cat "$GATEWAY_DAEMON_LOG" 2>/dev/null | tail -20 || true

381+

GATEWAY_START_FAILED=1

362382

fi

363383

fi

364384

@@ -383,6 +403,9 @@ if [ -f "$GATEWAY_UNIT_PATH" ]; then

383403

EXIT_CODE=1

384404

fi

385405

fi

406+

if [ "$GATEWAY_START_FAILED" -ne 0 ]; then

407+

EXIT_CODE=1

408+

fi

386409

exit $EXIT_CODE

387410

' || CONTAINER_EXIT=$?

388411