openclaw/src/process
openperf e777a2b230 fix(process ): migrate legacy command-queue singleton missing activeTaskWaiters
After a SIGUSR1 in-process restart following an npm upgrade from v2026.4.2
to v2026.4.5, the globalThis singleton created by the old code version
lacks the activeTaskWaiters field added in v2026.4.5.  resolveGlobalSingleton
returns the stale object as-is, causing notifyActiveTaskWaiters() to call
Array.from(undefined) and crash the gateway in a loop.

Add a schema migration step in getQueueState() that patches the missing
field on legacy singleton objects.  Add a regression test that plants a
v2026.4.2-shaped state object and verifies resetAllLanes() and
waitForActiveTasks() succeed without throwing.

Fixes #61905
2026-04-06 15:41:14 +01:00
..
supervisor test: speed up core runtime suites 2026-03-31 02:25:02 +01:00
child-process-bridge.ts
command-queue.test.ts fix(process ): migrate legacy command-queue singleton missing activeTaskWaiters 2026-04-06 15:41:14 +01:00
command-queue.ts fix(process ): migrate legacy command-queue singleton missing activeTaskWaiters 2026-04-06 15:41:14 +01:00
exec.no-output-timer.test.ts test: reduce agent test import churn 2026-04-03 04:41:09 +01:00
exec.test.ts test(ci): type-safe exec timeout stub 2026-04-03 22:14:59 +01:00
exec.ts fix: support corepack cmd shim on windows 2026-04-06 03:48:47 +01:00
exec.windows.test.ts fix: support corepack cmd shim on windows 2026-04-06 03:48:47 +01:00
kill-tree.test.ts test: trim more core importOriginal usage 2026-04-03 19:49:43 +01:00
kill-tree.ts
lanes.ts
restart-recovery.ts
spawn-utils.test.ts
spawn-utils.ts
test-timeouts.ts
windows-command.test.ts fix: support corepack cmd shim on windows 2026-04-06 03:48:47 +01:00
windows-command.ts