From ef36cb8cbcbd8cf7b04a2a92e1782925f48ae1cf Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Sun, 8 Mar 2026 22:47:04 -0500 Subject: [PATCH] chore(acpx): move runtime test fixtures to test-utils (openclaw#40548) Verified: - pnpm install --frozen-lockfile - pnpm build - pnpm check - pnpm test:macmini --- CHANGELOG.md | 1 + extensions/acpx/src/runtime.test.ts | 4 ++-- .../test-fixtures.ts => test-utils/runtime-fixtures.ts} | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename extensions/acpx/src/{runtime-internals/test-fixtures.ts => test-utils/runtime-fixtures.ts} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a9a1716e86..f1832db6255 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai ### Changes +- Extensions/ACPX tests: move the shared runtime fixture helper from `src/runtime-internals/` to `src/test-utils/` so the test-only helper no longer looks like shipped runtime code. - TUI: infer the active agent from the current workspace when launched inside a configured agent workspace, while preserving explicit `agent:` session targets. (#39591) thanks @arceus77-7. - Tools/Brave web search: add opt-in `tools.web.search.brave.mode: "llm-context"` so `web_search` can call Brave's LLM Context endpoint and return extracted grounding snippets with source metadata, plus config/docs/test coverage. (#33383) Thanks @thirumaleshp. - Talk mode: add top-level `talk.silenceTimeoutMs` config so Talk waits a configurable amount of silence before auto-sending the current transcript, while keeping each platform's existing default pause window when unset. (#39607) Thanks @danodoesdesign. Fixes #17147. diff --git a/extensions/acpx/src/runtime.test.ts b/extensions/acpx/src/runtime.test.ts index 53fc3c1f8a3..bb3b94cec9e 100644 --- a/extensions/acpx/src/runtime.test.ts +++ b/extensions/acpx/src/runtime.test.ts @@ -2,13 +2,13 @@ import os from "node:os"; import path from "node:path"; import { afterAll, beforeAll, describe, expect, it } from "vitest"; import { runAcpRuntimeAdapterContract } from "../../../src/acp/runtime/adapter-contract.testkit.js"; +import { AcpxRuntime, decodeAcpxRuntimeHandleState } from "./runtime.js"; import { cleanupMockRuntimeFixtures, createMockRuntimeFixture, NOOP_LOGGER, readMockRuntimeLogEntries, -} from "./runtime-internals/test-fixtures.js"; -import { AcpxRuntime, decodeAcpxRuntimeHandleState } from "./runtime.js"; +} from "./test-utils/runtime-fixtures.js"; let sharedFixture: Awaited> | null = null; let missingCommandRuntime: AcpxRuntime | null = null; diff --git a/extensions/acpx/src/runtime-internals/test-fixtures.ts b/extensions/acpx/src/test-utils/runtime-fixtures.ts similarity index 100% rename from extensions/acpx/src/runtime-internals/test-fixtures.ts rename to extensions/acpx/src/test-utils/runtime-fixtures.ts