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

推荐订阅源

N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs
博客园 - 叶小钗
P
Privacy International News Feed
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
T
Threatpost
IT之家
IT之家
博客园 - 聂微东
Know Your Adversary
Know Your Adversary
Help Net Security
Help Net Security
罗磊的独立博客
I
Intezer
S
Schneier on Security
博客园_首页
C
CERT Recently Published Vulnerability Notes
雷峰网
雷峰网
Cisco Talos Blog
Cisco Talos Blog
宝玉的分享
宝玉的分享
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Webroot Blog
Webroot Blog
TaoSecurity Blog
TaoSecurity Blog
MyScale Blog
MyScale Blog
P
Privacy & Cybersecurity Law Blog
T
The Exploit Database - CXSecurity.com
PCI Perspectives
PCI Perspectives
Security Latest
Security Latest
H
Heimdal Security Blog
S
Secure Thoughts
Hacker News: Ask HN
Hacker News: Ask HN
Y
Y Combinator Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Security Blog
Microsoft Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
SecWiki News
SecWiki News
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
T
Threat Research - Cisco Blogs
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(test): fail multi-node update regressions · openclaw/openclaw@732cf54
vincentkoc · 2026-05-25 · via Recent Commits to openclaw:main

@@ -131,92 +131,123 @@ set -euo pipefail

131131

printf "%s %s\n" "\$(date -u +%H:%M:%S)" "\$*" >>"$SYSTEMCTL_LOG"

132132133133

filtered=()

134-

for arg in "\$@"; do

134+

for ((i = 1; i <= \$#; i++)); do

135+

arg="\${!i}"

135136

case "\$arg" in

136-

--user|--quiet|--no-page|--now) ;;

137+

--user|--quiet|--no-page|--now|--value) ;;

138+

--property)

139+

i=\$((i + 1))

140+

;;

141+

--property=*) ;;

137142

*) filtered+=("\$arg") ;;

138143

esac

139144

done

140145

command="\${filtered[0]:-status}"

141146147+

is_running() {

148+

[ -s "$GATEWAY_PID_FILE" ] || return 1

149+

local pid

150+

pid="\$(cat "$GATEWAY_PID_FILE" 2>/dev/null || true)"

151+

[ -n "\$pid" ] || return 1

152+

kill -0 "\$pid" >/dev/null 2>&1

153+

}

154+155+

stop_gateway() {

156+

[ -s "$GATEWAY_PID_FILE" ] || return 0

157+

local pid

158+

pid="\$(cat "$GATEWAY_PID_FILE" 2>/dev/null || true)"

159+

if [[ "\$pid" =~ ^[0-9]+$ ]] && [ "\$pid" -gt 1 ] && kill -0 "\$pid" >/dev/null 2>&1; then

160+

kill "\$pid" >/dev/null 2>&1 || true

161+

for _ in \$(seq 1 100); do

162+

kill -0 "\$pid" >/dev/null 2>&1 || break

163+

sleep 0.1

164+

done

165+

kill -9 "\$pid" >/dev/null 2>&1 || true

166+

fi

167+

rm -f "$GATEWAY_PID_FILE"

168+

}

169+170+

load_unit_environment() {

171+

local unit="\$1"

172+

while IFS= read -r line; do

173+

case "\$line" in

174+

EnvironmentFile=*)

175+

local spec="\${line#EnvironmentFile=}"

176+

for token in \$spec; do

177+

local file="\${token#-}"

178+

[ -f "\$file" ] || continue

179+

set -a

180+

# shellcheck disable=SC1090

181+

. "\$file"

182+

set +a

183+

done

184+

;;

185+

Environment=*)

186+

local assignment="\${line#Environment=}"

187+

assignment="\${assignment#\"}"

188+

assignment="\${assignment%\"}"

189+

export "\$assignment"

190+

;;

191+

esac

192+

done <"\$unit"

193+

}

194+195+

start_gateway() {

196+

local unit="$GATEWAY_UNIT_PATH"

197+

local exec_start

198+

if [ ! -f "\$unit" ]; then

199+

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

200+

return 1

201+

fi

202+

exec_start="\$(sed -n 's/^ExecStart=//p' "\$unit" | tail -n 1)"

203+

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

204+

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

205+

return 1

206+

fi

207+

(

208+

load_unit_environment "\$unit"

209+

export OPENCLAW_NO_RESPAWN=1

210+

echo "systemctl shim: starting: \$exec_start"

211+

nohup bash -lc "exec \$exec_start" >>"$GATEWAY_DAEMON_LOG" 2>&1 &

212+

printf '%s\n' "\$!" >"$GATEWAY_PID_FILE"

213+

)

214+

}

215+142216

case "\$command" in

143217

daemon-reload)

144218

echo "daemon-reload (shim: no-op)"

145219

;;

146220

enable)

147221

echo "enable (shim: no-op)"

148222

;;

223+

is-enabled)

224+

echo "enabled"

225+

;;

149226

restart|start)

150-

if [ -s "$GATEWAY_PID_FILE" ]; then

151-

old_pid="\$(cat "$GATEWAY_PID_FILE" 2>/dev/null || true)"

152-

if kill -0 "\$old_pid" 2>/dev/null; then

153-

kill "\$old_pid" 2>/dev/null || true

154-

sleep 0.5

155-

fi

156-

fi

157-

unit="$GATEWAY_UNIT_PATH"

158-

if [ ! -f "\$unit" ]; then

159-

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

160-

exit 1

161-

fi

162-

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

163-

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

164-

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

165-

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

166-

exit 1

167-

fi

168-

# Source EnvironmentFile if present

169-

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

170-

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

171-

env_file="\${env_file#-}"

172-

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

173-

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

174-

fi

175-

# Inline Environment= entries

176-

while IFS= read -r env_line; do

177-

env_entry="\${env_line#Environment=}"

178-

env_entry="\${env_entry#\"}"

179-

env_entry="\${env_entry%\"}"

180-

export "\$env_entry"

181-

done < <(grep "^Environment=" "\$unit" || true)

182-

echo "systemctl shim: starting: \$exec_start"

183-

eval nohup \$exec_start >>"$GATEWAY_DAEMON_LOG" 2>&1 &

184-

echo "\$!" >"$GATEWAY_PID_FILE"

185-

echo "systemctl shim: started pid \$(cat "$GATEWAY_PID_FILE")"

227+

stop_gateway

228+

start_gateway

186229

;;

187230

stop)

188-

if [ -s "$GATEWAY_PID_FILE" ]; then

189-

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

190-

kill "\$pid" 2>/dev/null || true

191-

rm -f "$GATEWAY_PID_FILE"

192-

fi

231+

stop_gateway

193232

;;

194233

is-active)

195-

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

234+

if is_running; then

196235

echo "active"

197236

else

198237

echo "inactive"

199238

exit 3

200239

fi

201240

;;

202241

show)

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"

242+

if is_running; then

243+

printf 'ActiveState=active\nSubState=running\nMainPID=%s\nExecMainStatus=0\nExecMainCode=0\n' "\$(cat "$GATEWAY_PID_FILE")"

210244

else

211-

echo "ActiveState=inactive"

212-

echo "SubState=dead"

213-

echo "MainPID=0"

214-

echo "ExecMainStatus=0"

215-

echo "ExecMainCode=0"

245+

printf 'ActiveState=inactive\nSubState=dead\nMainPID=0\nExecMainStatus=0\nExecMainCode=0\n'

216246

fi

217247

;;

218248

*)

219-

echo "systemctl shim: ignoring: \$*"

249+

echo "systemctl shim: unsupported command: \$*" >&2

250+

exit 1

220251

;;

221252

esac

222253

SHIMEOF

@@ -226,9 +257,12 @@ echo "systemctl shim installed."

226257

# Now install the gateway service using node-A.

227258

echo "Installing gateway service..."

228259

mkdir -p "$(dirname "$GATEWAY_UNIT_PATH")"

229-

# gateway install may exit non-zero because our systemctl shim cannot fully

230-

# restart, but the unit file gets written before the restart step.

231-

openclaw gateway install --json >"$ARTIFACTS/gateway-install.json" 2>"$ARTIFACTS/gateway-install.err" || true

260+

if ! openclaw gateway install --json >"$ARTIFACTS/gateway-install.json" 2>"$ARTIFACTS/gateway-install.err"; then

261+

echo "FAIL: gateway install failed before update"

262+

cat "$ARTIFACTS/gateway-install.json" 2>/dev/null || true

263+

cat "$ARTIFACTS/gateway-install.err" 2>/dev/null || true

264+

exit 1

265+

fi

232266233267

echo ""

234268

echo "── Step 4: Inspect what node path was baked into the service ──"

@@ -268,6 +302,10 @@ echo "process.execPath will be: $(node -e "console.log(process.execPath)")"

268302

echo ""

269303

echo "── Step 6: Run openclaw update (this is the bug) ──"

270304305+

UPDATE_FAILED=0

306+

GATEWAY_START_FAILED=0

307+

GATEWAY_HEALTH_FAILED=0

308+271309

# Run the update WITH restart so that the update flow re-runs

272310

# `gateway install --force` and bakes the current process.execPath

273311

# (now node-B) into the service unit. This is where the split happens.

@@ -281,9 +319,12 @@ echo ""

281319

echo "Update exit code: $UPDATE_EXIT"

282320

echo "Update stderr (if any):"

283321

cat "$ARTIFACTS/update.err" 2>/dev/null | tail -10 || true

322+

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

323+

UPDATE_FAILED=1

324+

fi

284325285-

# The update may fail during restart (systemctl shim limitations) but it must

286-

# have at least attempted the package install. Check that it ran past early exit.

326+

# Keep inspecting after a non-zero update so the log shows whether the unit was

327+

# rewritten, but fail immediately if update never reached the service refresh.

287328

if [ "$UPDATE_EXIT" -ne 0 ] && ! grep -q "gateway" "$ARTIFACTS/update.err" 2>/dev/null; then

288329

echo "FAIL: openclaw update failed before reaching the package install step"

289330

cat "$ARTIFACTS/update.err" 2>/dev/null || true

@@ -364,22 +405,35 @@ echo "── Step 9: Try starting the gateway with the post-update unit ──"

364405

GATEWAY_START_FAILED=0

365406

if [ -f "$GATEWAY_UNIT_PATH" ]; then

366407

systemctl restart 2>&1 || true

367-

sleep 3

368-

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

369-

echo "OK: Gateway started (pid $(cat "$GATEWAY_PID_FILE"))"

370-

# Try a health probe.

371-

if openclaw gateway status --json >"$ARTIFACTS/status.json" 2>&1; then

372-

echo "OK: Gateway status probe succeeded"

373-

else

374-

echo "WARNING: Gateway status probe failed"

375-

fi

376-

# Stop it.

377-

kill "$(cat "$GATEWAY_PID_FILE")" 2>/dev/null || true

408+

if PORT=18789 node <<NODE

409+

const url = "http://127.0.0.1:" + process.env.PORT + "/healthz";

410+

const deadline = Date.now() + 30000;

411+

const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

412+

let last = "timeout";

413+

while (Date.now() < deadline) {

414+

try {

415+

const response = await fetch(url);

416+

if (response.ok) {

417+

process.exit(0);

418+

}

419+

last = "HTTP " + response.status;

420+

} catch (error) {

421+

last = error instanceof Error ? error.message : String(error);

422+

}

423+

await sleep(500);

424+

}

425+

console.error(last);

426+

process.exit(1);

427+

NODE

428+

then

429+

echo "OK: Gateway healthz probe succeeded"

378430

else

379-

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

380-

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

431+

echo "BUG: Gateway healthz probe failed with the post-update unit"

381432

GATEWAY_START_FAILED=1

433+

GATEWAY_HEALTH_FAILED=1

434+

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

382435

fi

436+

systemctl stop 2>&1 || true

383437

fi

384438385439

echo ""

@@ -403,9 +457,15 @@ if [ -f "$GATEWAY_UNIT_PATH" ]; then

403457

EXIT_CODE=1

404458

fi

405459

fi

460+

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

461+

EXIT_CODE=1

462+

fi

406463

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

407464

EXIT_CODE=1

408465

fi

466+

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

467+

EXIT_CODE=1

468+

fi

409469

exit $EXIT_CODE

410470

' || CONTAINER_EXIT=$?

411471