openclaw/docs
Peter Steinberger 931c7b40b2
fix(test): first test or hook times out while compiled worker subprocesses prepare (#162792)
* fix(test): load compiled-subprocess declarations at collection

The first load of a compiled-subprocess declaration in a Vitest invocation
prepares the whole compiled worker generation (tens of seconds warm, minutes
cold). 387 test files first reached a declaration through an await import()
inside a test body or hook, so their first test or hook absorbed that
preparation and could time out.

Move those loads to collection at their owner: static subject imports,
static imports in the shared helpers that owned the lazy load, and a named
side-effect preload (src/test-utils/prepare-compiled-subprocesses.ts) for
suites that re-import their subject per test or whose first load happens in
production code they call. plugin-test-runtime keeps the host-capability
fixture lazy so its other consumers do not start loading that graph.
Document the rule in docs/help/testing/writing-tests.md.

335 of the 387 files now load their first declaration before collection
ends; 52 remain (48 extension tests needing an SDK preload, one package
test, three files over the line cap).

* fix(test): retain npm install fixture reuse

Preserve the existing failedSpawn reuse after merging main so the collection-time preload stays within the line-cap ratchet. Assertions and import ordering are unchanged.

* fix(test): keep memory-core facade cold-import assertion meaningful

The static subject import ran before beforeEach reset the loader mock, so the cold-import assertion passed vacuously. Restore the in-test subject imports after mock setup and preload the compiled-subprocess declaration during collection instead.
2026-10-01 11:42:59 -07:00
..
.generated fix: prevent delegated work from stopping silently (#162567) 2026-10-01 18:39:01 +00:00
.i18n feat: back up to external disks and Cloudflare R2 with storage locations (#161913) 2026-10-01 02:05:44 -07:00
announcements
assets docs: remove stale showcase section (#158575) 2026-09-25 21:11:35 -06:00
automation fix(cron): delegated blocked runs report ok and silent blocked jobs get auto-disabled (#162686) 2026-10-02 01:00:18 +08:00
channels fix(telegram): restore progress when reply hooks suppress previews (#161546) 2026-10-01 06:41:47 -07:00
ci feat(tooling): collect local compiler performance evidence (#156836) 2026-10-02 01:08:24 +07:00
cli fix(update): keep progress writes from invalidating snapshots (#162604) 2026-10-01 18:15:42 +00:00
concepts fix: prevent delegated work from stopping silently (#162567) 2026-10-01 18:39:01 +00:00
diagnostics perf(cli): keep client diagnostics off shared state 2026-09-24 12:56:28 +00:00
gateway fix: prevent delegated work from stopping silently (#162567) 2026-10-01 18:39:01 +00:00
help fix(test): first test or hook times out while compiled worker subprocesses prepare (#162792) 2026-10-01 11:42:59 -07:00
images
install fix(update): package activation recovery rejects Bun-hosted installs (#162586) 2026-10-01 09:54:24 -07:00
maturity refactor: remove Tasks and TaskFlow runtime (#159179) 2026-09-27 10:40:29 -07:00
nodes fix(talk): preserve inherited realtime settings on upgrade (#162644) 2026-10-01 16:58:58 +00:00
platforms feat(macos): add Gateway hosting controls and Node migration (#161779) 2026-10-01 09:02:40 -07:00
plugins feat: optionally omit tools on conversational turns (#153340) 2026-10-01 09:33:15 -07:00
providers fix(openai): image generation fails with ChatGPT OAuth when the plan does not offer gpt-6-astra (#158895) 2026-10-01 19:46:57 +08:00
reference fix(doctor): batch the NOCOW open-file check and close agent databases before the rewrite (#162919) 2026-10-01 11:36:55 -07:00
releases docs: give Agents API its own onboarding guide (#162255) 2026-10-01 02:54:25 +00:00
security fix(gateway): preserve proxy policy in local TLS health probes (#161946) 2026-10-01 00:37:14 +08:00
snippets/plugin-publish chore(deps): refresh dependencies with seven-day cutoff (#158298) 2026-09-26 20:42:53 -07:00
specs fix(codex): restore native discovery and hide empty catalogs (#146305) 2026-09-12 13:03:31 -07:00
start fix(ui): stop serving a failed Control UI build on the next Gateway start (#161438) 2026-09-30 03:28:17 +00:00
tools fix: prevent delegated work from stopping silently (#162567) 2026-10-01 18:39:01 +00:00
web perf(ui): resolve warm chat routes before Gateway connect (#162794) 2026-10-01 08:52:28 -07:00
agent-runtime-architecture.md perf(agents): keep file edits from blocking other chats (#158443) 2026-09-26 03:55:55 -05:00
AGENTS.md fix: exclude repository instructions from public docs sync (#158253) 2026-09-25 13:15:24 -06:00
auth-credential-semantics.md fix(setup): restore credentials before recovery reads auth 2026-09-29 13:42:14 -07:00
ci.md ci: published-driver update cell for updater and identity paths (#162629) 2026-10-01 05:38:00 -07:00
date-time.md
docs.json feat: back up to external disks and Cloudflare R2 with storage locations (#161913) 2026-10-01 02:05:44 -07:00
docs_map.md
index.md docs: remove stale showcase section (#158575) 2026-09-25 21:11:35 -06:00
logging.md fix(agents): stop repeating oversized tool calls (#161082) 2026-09-29 20:41:57 -07:00
network.md
openclaw-agent-runtime.md
prose.md
vps.md
whatsapp-openclaw.jpg