Repository navigation
feat: run Code Mode on Node or isolated QuickJS - #154522
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: blocked before merge. Reviewed September 21, 2026, 8:09 PM ET / September 22, 2026, 00:09 UTC (Revision 13). ClawSweeper reviewWhat this changesAdds selectable Node and QuickJS execution for Code Mode, moves QuickJS into a bundled plugin, migrates explicit legacy settings, and adds a Settings selector. Merge readiness⛔ Blocked before merge - 5 items remain This remains useful, distinct work: current main and v2026.9.5 still use QuickJS-only execution. No blocking correctness defect was found in the inspected changes. Priority: P2 Review scores
Verification
How this fits togetherCode Mode lets agents compose OpenClaw tools using JavaScript. Core manages tool permissions, results, and run ownership, while the selected executor runs the JavaScript and retains suspended execution. flowchart TD
A[Agent JavaScript] --> B[Code Mode controller]
C[Operator configuration] --> D[Executor selection]
B --> D
D --> E[Node worker]
D --> F[QuickJS plugin]
E --> G[Authorized tool bridge]
F --> G
G --> H[Results or suspended continuation]
Decision needed
Why: The maintainer has stated the intended tradeoff, but the separately enforced security-policy owner must approve this documentation change. Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain shared tool authorization and executor-owned lifecycle, preserve explicit QuickJS choices during upgrade, and land the documented trust boundary with independent SecOps approval. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this adds an executor choice. Current main and the latest release confirm the existing QuickJS-only behavior. Is this the best way to solve the issue? Yes: keeping orchestration and authorization in core while moving QuickJS behind a documented executor contract provides a coherent ownership boundary; the intentional Node trust model remains subject to security-owner approval. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 73f058a4e653. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
da2dc82 to
51e48c9
Compare
Default enabled Code Mode to trusted Node execution and move QuickJS into a bundled executor plugin. Preserve typed discovery, JavaScript-only execution, tool authorization, continuation ownership, and explicit legacy QuickJS selections. Add a web settings selector and document both security boundaries.
Remove the retired core worker copies and regenerate config documentation for the requested QuickJS plugin. The 21 added plugin paths are standard plugin management fields; core and channel counts stay unchanged.
Keep only the executor and guest protocol exports consumed by the QuickJS plugin, budget that generic contract, and load the public plugin artifact through the existing runtime test boundary.
Use the worker-side task server, keep asynchronous cleanup ownership explicit, and model the real Promise contracts in lifecycle fixtures. Regenerate the requested plugin config surface and budget the exact 35 public executor exports.
|
Merged via squash.
|
* feat: add selectable Code Mode executors Default enabled Code Mode to trusted Node execution and move QuickJS into a bundled executor plugin. Preserve typed discovery, JavaScript-only execution, tool authorization, continuation ownership, and explicit legacy QuickJS selections. Add a web settings selector and document both security boundaries. * refactor: finish Code Mode executor source cutover Remove the retired core worker copies and regenerate config documentation for the requested QuickJS plugin. The 21 added plugin paths are standard plugin management fields; core and channel counts stay unchanged. * refactor: narrow the Code Mode plugin contract Keep only the executor and guest protocol exports consumed by the QuickJS plugin, budget that generic contract, and load the public plugin artifact through the existing runtime test boundary. * refactor: align Code Mode workers with current runtime boundaries Use the worker-side task server, keep asynchronous cleanup ownership explicit, and model the real Promise contracts in lifecycle fixtures. Regenerate the requested plugin config surface and budget the exact 35 public executor exports. * refactor: keep executor implementation types private * chore: regenerate code mode config baseline * fix: satisfy Code Mode executor integration contracts * test: cover QuickJS plugin metadata and exact settings titles * test: retain QuickJS integration in the agent runtime suite * test: keep Code Mode validation within lint and type-shard contracts
## Problem Full Release Validation run 35742760135 for the 2026.9.6 candidate failed on deterministic checks that reproduce on any release branch cut from current main: - `CI / checks-node-core-tooling-15`: `test/scripts/tsgo-core-test-shards.test.ts` reported `gateway-server: 701 test roots exceeds the 700 limit` (the candidate was cut before the rebalance in #155734). - `Plugin Prerelease / checks-node-extensions-shard-*`: `extensions/facetime/tests/package-manifest.test.ts:86` hardcodes the `>=2026.9.4` host contract, so the release-prep version bump to `2026.9.6` fails the test on every release branch. - `Plugin Prerelease / checks-node-agentic-plugins`: `src/plugins/bundled-plugin-icons.test.ts` ENOENT on `extensions/code-mode-quickjs/assets/icon.png`, and `src/plugins/bundled-plugin-metadata.test.ts:545` found no `activation.onStartup` on the new QuickJS Code Mode manifest (#154522). - `Plugin Prerelease / plugin-npm-security-scan`: five unreviewed `dangerous-exec` findings (`@openclaw/acpx test/codex-app-server.test.ts:15`, `@openclaw/codex src/app-server/managed-launcher-failure.ts:28`, `@openclaw/codex src/node-exec-server.test.ts:664`, `@openclaw/facetime src/audio-pump.ts:216`, `@openclaw/onnx src/worker-client.ts:162`) plus an `@openclaw/codex` reviewed inventory mismatch after #155612 removed two bounded child launches from `attempt-startup-retry.test.ts`. ## Solution One commit per fix, no new configuration: 1. Shard cap: already fixed on main by #155734 (worker-environments roots moved to `gateway-other`; gateway-server now holds 481 roots). Verified here, no further change. 2. FaceTime manifest test derives the host contract (`peerDependencies`, `install.minHostVersion`, `compat.pluginApi`, `build.openclawVersion`) from the package version that release preparation bumps in lockstep. 3. QuickJS Code Mode ships the OpenClaw fallback identity tile and the sandbox activity glyph (both byte-for-byte reuse, recorded in `ICON_SOURCES.md` / `ACTIVITY_ICON_SOURCES.md`) and declares `activation.onStartup: false`; the executor is resolved lazily through its `codeModeExecutors` contract. 4. Plugin npm security scan inventory: each new site was read and is a fixed trusted launch with no untrusted interpolation. - `@openclaw/facetime src/audio-pump.ts:216`: `spawn(captureBinary, [], { env: sanitized })` where `captureBinary` comes from the plugin's own staged native install (`ensureCaptureBinary`). Required runtime entry. - `@openclaw/onnx src/worker-client.ts:162`: `spawn(process.execPath, resolveRuntimeWorkerArgv(workerUrl), { shell: false })` forking the plugin's bundled worker entry. Required runtime entry. - `@openclaw/codex src/app-server/managed-launcher-failure.ts:28`: no process launch; the `spawn(` match is inside a regex literal that classifies stderr. Reviewed as a current-only packed entry. - `@openclaw/acpx test/codex-app-server.test.ts:15`: `execFileSync(process.execPath, [checked-in fixture], { env: {}, timeout })`. Test-only packed entry. - `@openclaw/codex src/node-exec-server.test.ts:664`: inline `-e` script for `process.execPath` inside the exec server's owned workspace fixture. Test-only packed entry. - `@openclaw/codex src/app-server/attempt-startup-retry.test.ts`: reviewed count 6 -> 4 for the current inventory only. The pre-9.6 required-source inventory is frozen as `RELEASE_2026_9_5_REQUIRED_REVIEWED_SOURCE_FINDING_COUNTS` and pinned to the 9.3/9.4/9.5 contexts, so shipped release rescans do not start requiring files they never had. ## Impact Unblocks 2026.9.6 validation on the next candidate cut. No runtime behaviour change except the QuickJS plugin now declaring lazy activation, which matches how the executor was already loaded. ## Evidence - `test/scripts/tsgo-core-test-shards.test.ts`, `extensions/facetime/tests/package-manifest.test.ts`, `src/plugins/bundled-plugin-icons.test.ts`, `src/plugins/bundled-plugin-metadata.test.ts`: pass locally. - `test/scripts/plugin-npm-security-scan.test.ts`: 44/44 pass. - Local end-to-end scan (`plugin-npm-security-prepare.mts plan/prepare` + `plugin-npm-security-scan-runner.mjs`) for both the `""` and `release/2026.9.6` contexts: `unexpectedCriticalFindingCount: 0`, no inventory mismatch, layout `current`. The only remaining local errors are the gitignored `extensions/diffs/assets/viewer-runtime.js` build output exceeding the per-file byte limit, which is absent from the unbuilt CI candidate. - `src/plugins/bundled-plugin-metadata.public-surfaces.test.ts` and `src/plugins/manifest-registry.test.ts` have three pre-existing host-only failures here (synthetic temp-root public-surface loading) unrelated to this change; CI is authoritative. - FRV run: https://github.com/openclaw/openclaw/actions/runs/35742760135 Co-authored-by: Peter Steinberger <[email protected]>
## Problem Full Release Validation run 35742760135 for the 2026.9.6 candidate failed on deterministic checks that reproduce on any release branch cut from current main: - `CI / checks-node-core-tooling-15`: `test/scripts/tsgo-core-test-shards.test.ts` reported `gateway-server: 701 test roots exceeds the 700 limit` (the candidate was cut before the rebalance in openclaw#155734). - `Plugin Prerelease / checks-node-extensions-shard-*`: `extensions/facetime/tests/package-manifest.test.ts:86` hardcodes the `>=2026.9.4` host contract, so the release-prep version bump to `2026.9.6` fails the test on every release branch. - `Plugin Prerelease / checks-node-agentic-plugins`: `src/plugins/bundled-plugin-icons.test.ts` ENOENT on `extensions/code-mode-quickjs/assets/icon.png`, and `src/plugins/bundled-plugin-metadata.test.ts:545` found no `activation.onStartup` on the new QuickJS Code Mode manifest (openclaw#154522). - `Plugin Prerelease / plugin-npm-security-scan`: five unreviewed `dangerous-exec` findings (`@openclaw/acpx test/codex-app-server.test.ts:15`, `@openclaw/codex src/app-server/managed-launcher-failure.ts:28`, `@openclaw/codex src/node-exec-server.test.ts:664`, `@openclaw/facetime src/audio-pump.ts:216`, `@openclaw/onnx src/worker-client.ts:162`) plus an `@openclaw/codex` reviewed inventory mismatch after openclaw#155612 removed two bounded child launches from `attempt-startup-retry.test.ts`. ## Solution One commit per fix, no new configuration: 1. Shard cap: already fixed on main by openclaw#155734 (worker-environments roots moved to `gateway-other`; gateway-server now holds 481 roots). Verified here, no further change. 2. FaceTime manifest test derives the host contract (`peerDependencies`, `install.minHostVersion`, `compat.pluginApi`, `build.openclawVersion`) from the package version that release preparation bumps in lockstep. 3. QuickJS Code Mode ships the OpenClaw fallback identity tile and the sandbox activity glyph (both byte-for-byte reuse, recorded in `ICON_SOURCES.md` / `ACTIVITY_ICON_SOURCES.md`) and declares `activation.onStartup: false`; the executor is resolved lazily through its `codeModeExecutors` contract. 4. Plugin npm security scan inventory: each new site was read and is a fixed trusted launch with no untrusted interpolation. - `@openclaw/facetime src/audio-pump.ts:216`: `spawn(captureBinary, [], { env: sanitized })` where `captureBinary` comes from the plugin's own staged native install (`ensureCaptureBinary`). Required runtime entry. - `@openclaw/onnx src/worker-client.ts:162`: `spawn(process.execPath, resolveRuntimeWorkerArgv(workerUrl), { shell: false })` forking the plugin's bundled worker entry. Required runtime entry. - `@openclaw/codex src/app-server/managed-launcher-failure.ts:28`: no process launch; the `spawn(` match is inside a regex literal that classifies stderr. Reviewed as a current-only packed entry. - `@openclaw/acpx test/codex-app-server.test.ts:15`: `execFileSync(process.execPath, [checked-in fixture], { env: {}, timeout })`. Test-only packed entry. - `@openclaw/codex src/node-exec-server.test.ts:664`: inline `-e` script for `process.execPath` inside the exec server's owned workspace fixture. Test-only packed entry. - `@openclaw/codex src/app-server/attempt-startup-retry.test.ts`: reviewed count 6 -> 4 for the current inventory only. The pre-9.6 required-source inventory is frozen as `RELEASE_2026_9_5_REQUIRED_REVIEWED_SOURCE_FINDING_COUNTS` and pinned to the 9.3/9.4/9.5 contexts, so shipped release rescans do not start requiring files they never had. ## Impact Unblocks 2026.9.6 validation on the next candidate cut. No runtime behaviour change except the QuickJS plugin now declaring lazy activation, which matches how the executor was already loaded. ## Evidence - `test/scripts/tsgo-core-test-shards.test.ts`, `extensions/facetime/tests/package-manifest.test.ts`, `src/plugins/bundled-plugin-icons.test.ts`, `src/plugins/bundled-plugin-metadata.test.ts`: pass locally. - `test/scripts/plugin-npm-security-scan.test.ts`: 44/44 pass. - Local end-to-end scan (`plugin-npm-security-prepare.mts plan/prepare` + `plugin-npm-security-scan-runner.mjs`) for both the `""` and `release/2026.9.6` contexts: `unexpectedCriticalFindingCount: 0`, no inventory mismatch, layout `current`. The only remaining local errors are the gitignored `extensions/diffs/assets/viewer-runtime.js` build output exceeding the per-file byte limit, which is absent from the unbuilt CI candidate. - `src/plugins/bundled-plugin-metadata.public-surfaces.test.ts` and `src/plugins/manifest-registry.test.ts` have three pre-existing host-only failures here (synthetic temp-root public-surface loading) unrelated to this change; CI is authoritative. - FRV run: https://github.com/openclaw/openclaw/actions/runs/35742760135 Co-authored-by: Peter Steinberger <[email protected]>
|
Executor follow-up: #160217 fixes error-origin attribution in the Node and QuickJS execution paths introduced here. The shared controller records original rejected bridge errors, and both executors preserve that origin through |
Related: #153889. Follow-up to #154001 and #154209.
What Problem This Solves
Code Mode currently couples tool orchestration to QuickJS-WASI, so operators cannot choose trusted Node execution or retain hardened guest isolation through a separate executor.
User Impact
Code Mode stays opt-in. When enabled, its default executor becomes Node.js
node:vmin a worker thread. This is an intentional trusted-host execution choice:node:vmis not a security boundary and runs with the Gateway's OS privileges. Calls through OpenClaw tools retain their normal authorization and approvals; those checks cannot contain code that escapes the Node VM context.Operators can select the bundled QuickJS executor with
tools.codeMode.executor: "quickjs", per-agent configuration, or the new Settings → Agents & Tools → Labs → Code Mode executor control. QuickJS has no ambient host APIs and retains its existing guest isolation and limits. Explicit legacyruntime: "quickjs-wasi"settings migrate toexecutor: "quickjs"; configurations without an explicit runtime adopt Node. Selected bundled QuickJS remains available under general plugin disablement or restrictive allowlists, preserving the former core capability without enabling unrelated plugins. An explicit deny or disabled entry for its owner still blocks it; external executors retain normal plugin policy. Unavailable selected executors fail explicitly without fallback. Activation and existing tool limits remain separate from executor selection.Why This Change Was Made
Core continues to own the JavaScript tool surface, typed discovery, tool dispatch and approvals, results, settlement, cancellation, and expiry. Executors own execution and suspended state. Node retains a live worker/context across
wait; QuickJS owns its WASM implementation, dependency, worker, and serialized snapshots in a bundled plugin. A run keeps its selected executor through all resumes, and cleanup joins worker execution and continuation disposal before releasing ownership.Node compiles fixed controller scripts once per worker while creating a fresh context for every cell. Tool exchange still drains guest promises under a timeout before admitting queued calls.
The dedicated executor guide, existing Code Mode documentation, config help, and SECURITY.md describe the supported boundaries. Node's V8 heap budget is best-effort, includes runtime allocations, and excludes external buffers and total RSS;
maxSnapshotBytescontinues to bound QuickJS snapshots, not live Node heaps. The real-model matrix now accepts an explicit executor for Gateway-backed tasks and records it in the evidence.Evidence
Current head
f6e1b0b888ff15985f4b3bbe9780feaac6ff6bb0integrates main48883d72753bfe7f90ce6871b2cc8b41b9c789da. Only the generated config checksum conflicted. Independent audit and the lead each verified all 148 introduced file patches remain identical to the previously reviewed feature, excluding that regenerated checksum. Upstream agent schema 23, transcript-codec reading in the model matrix, the SQLite worker build entry, and assertion-baseline reductions are preserved. Canonical generation (48.872 seconds) and config verification (27.796 seconds) passed on exact final tree142e24bdac28088fb0d1e9f55f7b8467f070202a; the two synthetic Gateway producer/transcript-reader cases passed in 16.219 seconds. This is integration proof, not a new real-engine/model benchmark. Existing engine, package, upgrade, and live-model proof keeps its original attribution and remains applicable to the unchanged feature. Final-head hosted gates remain required before landing.The first CI attempt for
8801849b5deafailed only in the existing session-owner-filter empty-section case: the involving-me view retained eight groups instead of one. The filter/controller source is unchanged by this PR. One original-order replay of exact CI merge67c7f11b333a462b57c6d48f42c069b5fcdfbf46passed all 53 files / 235 tests in 284.685 seconds, using Node 24.19.0, Playwright 1.63.0, Chromium 153.0.8010.12, 16 CPUs, and the unchanged two-worker configuration. All test files were byte-identical; a temporary helper-only diagnostic patch recorded the selection, scopedsessions.listrequest, and one-row response. The fresh AWS host and passive instrumentation differ from the original hosted timing. This is a non-reproduced failure, not a claimed fix; no production code, assertion, or timeout changed. The original failure is retained. One targeted hosted rerun with debug logging also passed on the same head; its browser-test step took 503 seconds. Both replays are non-reproductions, not claimed fixes.Previous head
8801849b5dea2aac55bc1babf449061ebcbf9377integrates main1b90b88f7eb81662f481653d9e16fd21acac6f58and canonically regenerates the sole conflicting config checksum. Its feature delta is byte-identical after normalizing patch locations to the fully reviewed900c2a6fe338769287ef812bf974fd44411d0fa3candidate, except for the generated checksum. Both the independent merge audit and the lead verified that equivalence. The canonical generator and config check passed on final tree85ae3fb323db3a3c67e458170820c2bcf2443461; no repeated runtime proof is claimed for this mechanical refresh.Head
900c2a6fe338769287ef812bf974fd44411d0fa3passed all hosted CI, a fresh full two-pass review, and focused remote integration proof on tree735b17ee75e684c24ae6d6bad32c580302ca400e: 163 tests covering both engines and resolver policy, config verification, core and affected test types, SDK surface, and plugin inventory. Executor source and dependencies were unchanged in that integration. Current-head CI remains required before landing.Exact head
667a9ebe1b248b75622bf2168e84123129d4fecapassed CI and the combined security gate. The native completed-gate preparation passed against this head.The CI follow-up
667a9ebe1b248b75622bf2168e84123129d4feca/ tree60f5c24773a69077ffee651a05be471b1335b604removes a test-table map-spread lint violation and moves the existing 60 System Agent type-test roots into the existing services shard. Coverage remains exact once-only for all 12,248 roots; shard counts are 641 and 495, with the 700 cap unchanged. Targeted lint, all 24 shard-invariant cases (32.99 seconds with--maxWorkers=1), both affected type graphs, and independent review passed. The unrelated upstream rendered-code test mismatch is fixed on main by087ccde18c3042c902a575e76b4bbdce97f71ca7; no duplicate repair is included here. A separate unchanged SQLite reclamation test observed zero optional cleanup progress in CI. One replay of its exact CI merge and original 86-pattern group passed 1,554 tests with the same single skip in 168.07 seconds on Node 24.19.0 with two workers; the failing case passed. This remains non-reproduced, not claimed fixed, with no storage behavior or assertion changes.The previously reviewed
be77c0c495db4a7881326bb87b6992c540de2a35head passed all hosted CI/security checks. The landing update merges main atd61156bb5cfa22e15d19121d6ab4c073bfeac33e, preserves its early JavaScript syntax-admission fix, and extends the affected guest regressions to both executors. Canonical config checksums were regenerated. Selectable executor IDs are explicitly documented as core-ownednodeand plugin-suppliedquickjs; plugin installation IDs are separate. Final candidate82674abd2d72a6304eb5e5e6079828828c8cf46e/ tree263149c4a3a83b2ec6dabf592a0962d1509f8500passed fresh independent review and focused remote proof: 33 guest cases, 99 runtime cases, the headless syntax case, affected test types, SDK surface, and plugin inventory. The changed guest suite took 33.74 seconds with--maxWorkers=1on an AWS 8-vCPU worker. The replacement head and subsequent CI correction passed the hosted gates linked above.The clean
da2dc8267a36candidate passed production typechecking, lint, SDK/config/core graph guards, import-cycle checks, a canonical private-QA build (320.3 seconds), and a separate canonical public build with tarball integrity and clean npm installation. The broader affected regression pass covered 1,164 cases; later focused runtime passes covered 249 and 254 cases. Timeout output, cancellation, retained-state cleanup, worker heap budgeting, and cross-cell encoding isolation have direct regression coverage.Both real OpenAI
gpt-5.6-lunaJavaScript-contract trials passed on their first attempt, with Code Mode engagement, task behavior, and interview consistency verified for Node and QuickJS. These single functional trials do not establish a model-latency advantage. Installed-package probes separately verified bridge dispatch, park/resume, lexical state, Unicode encoding, plugin-owned WASM assets, and explicit failures before dispatch for missing/corrupt copied assets.Six installed
agent execselection cases passed through a scripted loopback provider: Node default, QuickJS under global plugin disablement and restrictive allowlists, per-agent override, explicit owner denial, and explicit owner disablement. The published 2026.9.4 updater → 2026.9.5 candidate passed three upgrade cases preserving explicit QuickJS, implicit Node selection, global/per-agent activation and limits, plugin policy, roster migration, and original backups; all three migrated configurations then selected the expected engine through the installed CLI. The first strict-allowlist fixture observed unrelated Codex Doctor activation; its existing explicit opt-out isolated that behavior without weakening assertions.Rebase proof passed 92 worker GC/retention/lifecycle/state/wait/session cases on
51e48c948e1, then 20 plugin resolver cases onaf0649e6bc2. Executor source stayed unchanged. Hosted CI exposed integration omissions; repairs passed fresh independent Codex review and focused remote checks: zero type/import cycles, 13 boundary cases, seven QuickJS lifecycle cases, affected production/test types, SDK surface, generated inventory, static-asset metadata, labeler coverage, and the curated-settings browser E2E. UI screenshots below were inspected, delivered in chat, and verified rendering in this PR.Same-host source-loaded microbenchmarks (Linux, Node 24): warm Node cells with 0/32/256 tools take 1.47/2.00/5.00 ms, versus 3.46/4.43/11.55 ms for QuickJS. The 128-call sequential bridge workload takes 89.0 ms on Node versus 42.1 ms on QuickJS; caching fixed controller scripts and removing a redundant timed evaluation improved Node from 109.7 ms. These are executor microbenchmarks, not model response time or packaged cold-start measurements.
The hosted run also observed a maintenance-heartbeat loss in an unchanged state-migration test. One original-order replay of the same 56-pattern infra group on Node 24.19.0 with two workers passed all 1,356 tests and the same seven skips in 594.55 seconds, including the failing case; the heartbeat failure remains non-reproduced, not claimed fixed. The AWS host has 32 cores versus eight in CI. The exact CI Bun binary reproduced a missing public SDK import in the source worker before guest execution. Test extraction had changed automatic suite selection; the existing owner-routing mechanism restores the six cases to the Node agent-runtime suite, with assertions unchanged. All six integration cases and all 17 routing-regression cases passed on final tree
5a0fcaaa51cdc57f131c323e128471e9adbcf7c2; the canonical runner selected Node 24.19.0 without an override. All three repair batches passed independent Codex review. Security Review hit a file-fetch HTTP 429 and later Actions-installation rate-limit 403s. Required final-head GitHub CI/security/review gates remain enforced separately from the recorded remote proof above.Focused test cost
Measured with
pnpm test <file> --maxWorkers=1on the same AWS host. Wall time includes compiler and runner startup. Worker termination, encoding isolation, and real VM snapshot tests require the actual engines. Mechanical teardown changes reuse the recorded broader-suite results. Relocated QuickJS cases were measured after moving them to their owning suites. Additional repair proof: the static-asset inventory case took 3.12 seconds, labeler coverage 2.26 seconds, and the curated-settings browser E2E 23.45 seconds. These focused timings are reported separately from the full-file costs below. Exact final-head CI and security gates passed as linked above.src/agents/code-mode-node.test.tssrc/agents/code-mode-node.lifecycle.test.tssrc/agents/code-mode-executor.test.tssrc/agents/code-mode-state.test.tssrc/agents/code-mode-headless.budget.test.tssrc/agents/code-mode-headless.cancellation.test.tssrc/agents/code-mode-worker-lifecycle.test.tssrc/plugins/code-mode-executor.test.tssrc/agents/code-mode-quickjs.integration.test.tssrc/agents/code-mode-quickjs.worker-lifecycle.test.tsextensions/code-mode-quickjs/src/live-vm.test.tsextensions/code-mode-quickjs/src/worker-lifecycle.test.tssrc/agents/code-mode.config.test.tssrc/config/zod-schema.code-mode.test.tssrc/commands/doctor/shared/legacy-config-migrations.runtime.code-mode.test.tsextensions/qa-lab/src/code-mode-model-matrix.options.test.tsui/src/pages/labs/labs-page.test.tstest/vitest-unit-fast-config.test.tsSettings screenshots
Before:
After, with Node selected by default:
After selecting QuickJS and reloading: