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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
量子位
T
Tailwind CSS Blog
Vercel News
Vercel News
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Engineering at Meta
Engineering at Meta
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
D
Docker
博客园_首页
P
Proofpoint News Feed
月光博客
月光博客
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
腾讯CDC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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: stabilize standalone Parallels smoke lanes · opencl...
steipete · 2026-04-19 · via Recent Commits to openclaw:main

@@ -45,7 +45,7 @@ TIMEOUT_UPDATE_S=300

4545

TIMEOUT_UPDATE_POLL_GRACE_S=60

4646

TIMEOUT_VERIFY_S=120

4747

TIMEOUT_ONBOARD_S=240

48-

TIMEOUT_ONBOARD_PHASE_S=$((TIMEOUT_ONBOARD_S + 60))

48+

TIMEOUT_ONBOARD_PHASE_S=$((TIMEOUT_ONBOARD_S + 120))

4949

# verify_gateway_reachable runs six 30s probes plus short retry sleeps.

5050

TIMEOUT_GATEWAY_S=240

5151

TIMEOUT_AGENT_S=180

@@ -1997,8 +1997,10 @@ param(

1997199719981998

try {

19991999

\$openclaw = Join-Path \$env:APPDATA 'npm\openclaw.cmd'

2000-

\$cmdLine = ('"{0}" onboard --non-interactive --mode local --auth-choice ${AUTH_CHOICE} --secret-input-mode ref --gateway-port 18789 --gateway-bind loopback --install-daemon --skip-skills --skip-health --accept-risk --json > "{1}" 2>&1' -f \$openclaw, \$LogPath)

2000+

Set-Content -Path \$LogPath -Value 'onboard.start'

2001+

\$cmdLine = ('"{0}" onboard --non-interactive --mode local --auth-choice ${AUTH_CHOICE} --secret-input-mode ref --gateway-port 18789 --gateway-bind loopback --install-daemon --skip-skills --skip-health --accept-risk --json >> "{1}" 2>&1' -f \$openclaw, \$LogPath)

20012002

& cmd.exe /d /s /c \$cmdLine

2003+

Add-Content -Path \$LogPath -Value ('onboard.exit={0}' -f \$LASTEXITCODE)

20022004

Set-Content -Path \$DonePath -Value ([string]\$LASTEXITCODE)

20032005

} catch {

20042006

if (Test-Path \$LogPath) {

@@ -2015,6 +2017,7 @@ run_ref_onboard() {

20152017

local api_key_env_q api_key_value_q script_url

20162018

local runner_name log_name done_name done_status launcher_state

20172019

local poll_rc state_rc log_rc start_seconds poll_deadline startup_checked

2020+

local guest_log log_state_path

20182021

api_key_env_q="$(ps_single_quote "$API_KEY_ENV")"

20192022

api_key_value_q="$(ps_single_quote "$API_KEY_VALUE")"

20202023

write_onboard_runner_script

@@ -2025,6 +2028,8 @@ run_ref_onboard() {

20252028

start_seconds="$SECONDS"

20262029

poll_deadline=$((SECONDS + TIMEOUT_ONBOARD_S + 60))

20272030

startup_checked=0

2031+

log_state_path="$(mktemp "${TMPDIR:-/tmp}/openclaw-onboard-log-state.XXXXXX")"

2032+

: >"$log_state_path"

2028203320292034

guest_powershell "$(cat <<EOF

20302035

\$runner = Join-Path \$env:TEMP '$runner_name'

@@ -2037,6 +2042,34 @@ Start-Process powershell.exe -ArgumentList @('-NoProfile', '-ExecutionPolicy', '

20372042

EOF

20382043

)"

203920442045+

stream_windows_onboard_log() {

2046+

set +e

2047+

guest_log="$(

2048+

guest_powershell_poll 20 "\$log = Join-Path \$env:TEMP '$log_name'; if (Test-Path \$log) { Get-Content \$log }"

2049+

)"

2050+

log_rc=$?

2051+

set -e

2052+

if [[ $log_rc -ne 0 ]] || [[ -z "$guest_log" ]]; then

2053+

return "$log_rc"

2054+

fi

2055+

GUEST_LOG="$guest_log" python3 - "$log_state_path" <<'PY'

2056+

import os

2057+

import pathlib

2058+

import sys

2059+2060+

state_path = pathlib.Path(sys.argv[1])

2061+

previous = state_path.read_text(encoding="utf-8", errors="replace")

2062+

current = os.environ["GUEST_LOG"].replace("\r\n", "\n").replace("\r", "\n")

2063+2064+

if current.startswith(previous):

2065+

sys.stdout.write(current[len(previous):])

2066+

else:

2067+

sys.stdout.write(current)

2068+2069+

state_path.write_text(current, encoding="utf-8")

2070+

PY

2071+

}

2072+20402073

while :; do

20412074

set +e

20422075

done_status="$(

@@ -2049,19 +2082,24 @@ EOF

20492082

warn "windows onboard helper poll failed; retrying"

20502083

if (( SECONDS >= poll_deadline )); then

20512084

warn "windows onboard helper timed out while polling done file"

2085+

rm -f "$log_state_path"

20522086

return 1

20532087

fi

20542088

sleep 2

20552089

continue

20562090

fi

2091+

set +e

2092+

stream_windows_onboard_log

2093+

log_rc=$?

2094+

set -e

2095+

if [[ $log_rc -ne 0 ]]; then

2096+

warn "windows onboard helper live log poll failed; retrying"

2097+

fi

20572098

if [[ -n "$done_status" ]]; then

2058-

set +e

2059-

guest_powershell_poll 20 "\$log = Join-Path \$env:TEMP '$log_name'; if (Test-Path \$log) { Get-Content \$log }"

2060-

log_rc=$?

2061-

set -e

2062-

if [[ $log_rc -ne 0 ]]; then

2099+

if ! stream_windows_onboard_log; then

20632100

warn "windows onboard helper log drain failed after completion"

20642101

fi

2102+

rm -f "$log_state_path"

20652103

[[ "$done_status" == "0" ]]

20662104

return $?

20672105

fi

@@ -2076,18 +2114,16 @@ EOF

20762114

startup_checked=1

20772115

if [[ $state_rc -eq 0 && "$launcher_state" == *"runner=False"* && "$launcher_state" == *"log=False"* && "$launcher_state" == *"done=False"* ]]; then

20782116

warn "windows onboard helper failed to materialize guest files"

2117+

rm -f "$log_state_path"

20792118

return 1

20802119

fi

20812120

fi

20822121

if (( SECONDS >= poll_deadline )); then

2083-

set +e

2084-

guest_powershell_poll 20 "\$log = Join-Path \$env:TEMP '$log_name'; if (Test-Path \$log) { Get-Content \$log }"

2085-

log_rc=$?

2086-

set -e

2087-

if [[ $log_rc -ne 0 ]]; then

2122+

if ! stream_windows_onboard_log; then

20882123

warn "windows onboard helper log drain failed after timeout"

20892124

fi

20902125

warn "windows onboard helper timed out waiting for done file"

2126+

rm -f "$log_state_path"

20912127

return 1

20922128

fi

20932129

sleep 2