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

推荐订阅源

IT之家
IT之家
腾讯CDC
博客园 - Franky
S
SegmentFault 最新的问题
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks
Y
Y Combinator Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
I
InfoQ
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
B
Blog RSS Feed
博客园 - 叶小钗
博客园_首页
有赞技术团队
有赞技术团队
雷峰网
雷峰网
量子位
小众软件
小众软件
月光博客
月光博客
U
Unit 42
D
DataBreaches.Net

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: complete workspace setup in update smokes · opencla...
steipete · 2026-04-19 · via Recent Commits to openclaw:main

@@ -504,6 +504,28 @@ function Stop-OpenClawGatewayProcesses {

504504

Start-Sleep -Seconds 2

505505

}

506506507+

function Complete-WorkspaceSetup {

508+

$workspace = $env:OPENCLAW_WORKSPACE_DIR

509+

if (-not $workspace) {

510+

$workspace = Join-Path $env:USERPROFILE '.openclaw\workspace'

511+

}

512+

$stateDir = Join-Path $workspace '.openclaw'

513+

New-Item -ItemType Directory -Path $stateDir -Force | Out-Null

514+

@'

515+

# Identity

516+517+

- Name: OpenClaw

518+

- Purpose: Parallels npm update smoke test assistant.

519+

'@ | Set-Content -Path (Join-Path $workspace 'IDENTITY.md') -Encoding UTF8

520+

@'

521+

{

522+

"version": 1,

523+

"setupCompletedAt": "2026-01-01T00:00:00.000Z"

524+

}

525+

'@ | Set-Content -Path (Join-Path $stateDir 'workspace-state.json') -Encoding UTF8

526+

Remove-Item (Join-Path $workspace 'BOOTSTRAP.md') -Force -ErrorAction SilentlyContinue

527+

}

528+507529

function Restart-GatewayWithRecovery {

508530

param(

509531

[Parameter(Mandatory = $true)][string]$OpenClawPath

@@ -586,6 +608,7 @@ try {

586608

# an explicit start only if the RPC endpoint never returns.

587609

Write-ProgressLog 'update.restart-gateway'

588610

Restart-GatewayWithRecovery -OpenClawPath $openclaw

611+

Complete-WorkspaceSetup

589612

Write-ProgressLog 'update.agent-turn'

590613

Invoke-CaptureLogged 'openclaw agent' { & $openclaw agent --agent main --session-id $SessionId --message 'Reply with exact ASCII text OK only.' --json } | Out-Null

591614

$exitCode = $LASTEXITCODE

@@ -709,6 +732,21 @@ if [ "\$gateway_ready" != "1" ]; then

709732

echo "gateway did not become RPC-ready after transport recovery" >&2

710733

exit 1

711734

fi

735+

workspace="\${OPENCLAW_WORKSPACE_DIR:-\$HOME/.openclaw/workspace}"

736+

mkdir -p "\$workspace/.openclaw"

737+

cat > "\$workspace/IDENTITY.md" <<'IDENTITY_EOF'

738+

# Identity

739+740+

- Name: OpenClaw

741+

- Purpose: Parallels npm update smoke test assistant.

742+

IDENTITY_EOF

743+

cat > "\$workspace/.openclaw/workspace-state.json" <<'STATE_EOF'

744+

{

745+

"version": 1,

746+

"setupCompletedAt": "2026-01-01T00:00:00.000Z"

747+

}

748+

STATE_EOF

749+

rm -f "\$workspace/BOOTSTRAP.md"

712750

/opt/homebrew/bin/openclaw models set "$MODEL_ID"

713751

/opt/homebrew/bin/openclaw agent --agent main --session-id "parallels-npm-update-macos-transport-recovery-$expected_needle" --message "Reply with exact ASCII text OK only." --json

714752

EOF

@@ -784,6 +822,25 @@ if (-not \$gatewayReady) {

784822

\$providerValue = [Text.Encoding]::UTF8.GetString(\$providerBytes)

785823

Set-Item -Path ('Env:' + '$API_KEY_ENV') -Value \$providerValue

786824

& \$openclaw models set '$MODEL_ID'

825+

\$workspace = \$env:OPENCLAW_WORKSPACE_DIR

826+

if (-not \$workspace) {

827+

\$workspace = Join-Path \$env:USERPROFILE '.openclaw\\workspace'

828+

}

829+

\$stateDir = Join-Path \$workspace '.openclaw'

830+

New-Item -ItemType Directory -Path \$stateDir -Force | Out-Null

831+

@'

832+

# Identity

833+834+

- Name: OpenClaw

835+

- Purpose: Parallels npm update smoke test assistant.

836+

'@ | Set-Content -Path (Join-Path \$workspace 'IDENTITY.md') -Encoding UTF8

837+

@'

838+

{

839+

"version": 1,

840+

"setupCompletedAt": "2026-01-01T00:00:00.000Z"

841+

}

842+

'@ | Set-Content -Path (Join-Path \$stateDir 'workspace-state.json') -Encoding UTF8

843+

Remove-Item (Join-Path \$workspace 'BOOTSTRAP.md') -Force -ErrorAction SilentlyContinue

787844

& \$openclaw agent --agent main --session-id 'parallels-npm-update-windows-transport-recovery-$expected_needle' --message 'Reply with exact ASCII text OK only.' --json

788845

EOF

789846

)"

@@ -1189,6 +1246,21 @@ if [ "\$gateway_ready" != "1" ]; then

11891246

tail -n 120 /tmp/openclaw-parallels-npm-update-macos-gateway.log 2>/dev/null || true

11901247

fi

11911248

/opt/homebrew/bin/openclaw gateway status --deep --require-rpc

1249+

workspace="\${OPENCLAW_WORKSPACE_DIR:-\$HOME/.openclaw/workspace}"

1250+

mkdir -p "\$workspace/.openclaw"

1251+

cat > "\$workspace/IDENTITY.md" <<'IDENTITY_EOF'

1252+

# Identity

1253+1254+

- Name: OpenClaw

1255+

- Purpose: Parallels npm update smoke test assistant.

1256+

IDENTITY_EOF

1257+

cat > "\$workspace/.openclaw/workspace-state.json" <<'STATE_EOF'

1258+

{

1259+

"version": 1,

1260+

"setupCompletedAt": "2026-01-01T00:00:00.000Z"

1261+

}

1262+

STATE_EOF

1263+

rm -f "\$workspace/BOOTSTRAP.md"

11921264

/opt/homebrew/bin/openclaw agent --agent main --session-id parallels-npm-update-macos-$expected_needle --message "Reply with exact ASCII text OK only." --json

11931265

EOF

11941266

macos_desktop_user_exec /bin/bash /tmp/openclaw-main-update.sh

@@ -1249,6 +1321,21 @@ if [ -n "$expected_needle" ]; then

12491321

fi

12501322

openclaw update status --json

12511323

openclaw models set "$MODEL_ID"

1324+

workspace="\${OPENCLAW_WORKSPACE_DIR:-\$HOME/.openclaw/workspace}"

1325+

mkdir -p "\$workspace/.openclaw"

1326+

cat > "\$workspace/IDENTITY.md" <<'IDENTITY_EOF'

1327+

# Identity

1328+1329+

- Name: OpenClaw

1330+

- Purpose: Parallels npm update smoke test assistant.

1331+

IDENTITY_EOF

1332+

cat > "\$workspace/.openclaw/workspace-state.json" <<'STATE_EOF'

1333+

{

1334+

"version": 1,

1335+

"setupCompletedAt": "2026-01-01T00:00:00.000Z"

1336+

}

1337+

STATE_EOF

1338+

rm -f "\$workspace/BOOTSTRAP.md"

12521339

openclaw agent --local --agent main --session-id parallels-npm-update-linux-$expected_needle --message "Reply with exact ASCII text OK only." --json

12531340

EOF

12541341

prlctl exec "$LINUX_VM" /usr/bin/env "$API_KEY_ENV=$API_KEY_VALUE" /bin/bash /tmp/openclaw-main-update.sh