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

推荐订阅源

Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
V
V2EX
量子位
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 【当耐特】
爱范儿
爱范儿
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
小众软件
小众软件
IT之家
IT之家
博客园_首页
博客园 - 聂微东
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗

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(testbox): guard stale OpenClaw Testbox reuse · opencl...
vincentkoc · 2026-04-29 · via Recent Commits to openclaw:main

@@ -123,17 +123,22 @@ instantly and boots the CI environment in the background while you work:

123123

blacksmith testbox warmup ci-check-testbox.yml

124124

# → tbx_01jkz5b3t9...

125125126-

Save this ID. You need it for every `run` command.

126+

Save this ID in the current session. You need it for every `run` command.

127+

Treat `blacksmith testbox list` as diagnostics, not a reusable work queue.

128+

Listed boxes can be visible at the org/repo level while still being unusable or

129+

stale for the current local agent lane.

127130128131

For OpenClaw maintainer Testbox mode, pre-warm at the start of longer or wider

129132

tasks:

130133131134

blacksmith testbox warmup ci-check-testbox.yml --ref main --idle-timeout 90

135+

pnpm testbox:claim --id <ID>

132136133137

Use the build-artifact warmup when e2e/package/build proof benefits from seeded

134138

`dist/`, `dist-runtime/`, and build-all caches:

135139136140

blacksmith testbox warmup ci-build-artifacts-testbox.yml --ref main --idle-timeout 90

141+

pnpm testbox:claim --id <ID>

137142138143

Warmup dispatches a GitHub Actions workflow that provisions a VM with the

139144

full CI environment: dependencies installed, services started, secrets

@@ -178,6 +183,26 @@ The `run` command automatically waits for the testbox to become ready if

178183

it is still booting, so you can call `run` immediately after warmup without

179184

needing to check status first.

180185186+

In OpenClaw, prefer the guarded runner wrapper so stale/reused ids fail before

187+

the Blacksmith CLI spends time syncing or emits a confusing missing-key error:

188+189+

pnpm testbox:run --id <ID> -- "OPENCLAW_TESTBOX=1 pnpm check:changed"

190+191+

The wrapper refuses to run when the local per-Testbox key is missing or when the

192+

id was not claimed by this OpenClaw checkout with `pnpm testbox:claim --id

193+

<ID>`. Treat that as the expected remediation, not as a GitHub account or

194+

normal SSH-key problem. A local key alone is not enough; a ready box may still

195+

carry stale rsync state from another lane.

196+197+

If the agent crashes, the remote box relies on Blacksmith's idle timeout. The

198+

local OpenClaw claim marker is not deleted automatically, so the wrapper treats

199+

claims older than 12 hours as stale. Override only for intentional long-running

200+

work with `OPENCLAW_TESTBOX_CLAIM_TTL_MINUTES=<minutes>`.

201+202+

Before spending a broad gate on a manually assembled command, you can also run:

203+204+

pnpm testbox:sanity -- --id <ID>

205+181206

## Downloading files from a testbox

182207183208

Use the `download` command to retrieve files or directories from a running

@@ -286,16 +311,17 @@ checks that need parity or remote state.

286311

1. Decide whether the repo's local loop is the right default. For OpenClaw,

287312

`OPENCLAW_TESTBOX=1` makes Testbox the maintainer default.

288313

2. If Testbox is warranted, warm up early:

289-

`blacksmith testbox warmup ci-check-testbox.yml --ref main --idle-timeout 90` → save the ID

314+

`blacksmith testbox warmup ci-check-testbox.yml --ref main --idle-timeout 90` → save the ID,

315+

then `pnpm testbox:claim --id <ID>`

290316

3. Write code while the testbox boots in the background.

291317

4. Run the remote command when needed:

292-

`blacksmith testbox run --id <ID> "pnpm check:changed"`

318+

`pnpm testbox:run --id <ID> -- "OPENCLAW_TESTBOX=1 pnpm check:changed"`

293319

5. If tests fail, fix code and re-run against the same warm box.

294320

6. If you changed dependency manifests (package.json, etc.), prepend

295321

the install command: `blacksmith testbox run --id <ID> "npm install && npm test"`

296322

7. If a narrow PR reports a full sync or the box was reused/expired, sanity

297323

check the remote copy before a slow gate:

298-

`blacksmith testbox run --id <ID> "pnpm testbox:sanity"`.

324+

`pnpm testbox:run --id <ID> -- "pnpm testbox:sanity"`.

299325

If it reports missing root files or mass tracked deletions, stop the box and

300326

warm a fresh one. Use `OPENCLAW_TESTBOX_ALLOW_MASS_DELETIONS=1` only for an

301327

intentional large deletion PR.