diff --git a/src/auto-reply/reply/agent-runner-payloads.test.ts b/src/auto-reply/reply/agent-runner-payloads.test.ts index 9ae934a256c6..47baa560d8c3 100644 --- a/src/auto-reply/reply/agent-runner-payloads.test.ts +++ b/src/auto-reply/reply/agent-runner-payloads.test.ts @@ -1,3 +1,4 @@ +// Tests reply payload construction and metadata propagation from agent runs. import { beforeEach, describe, expect, it } from "vitest"; import { resetPluginRuntimeStateForTest, setActivePluginRegistry } from "../../plugins/runtime.js"; import { createTestRegistry } from "../../test-utils/channel-plugins.js"; diff --git a/src/auto-reply/reply/agent-runner-utils.secret-resolution.test.ts b/src/auto-reply/reply/agent-runner-utils.secret-resolution.test.ts index b09bd081058d..3cb447083081 100644 --- a/src/auto-reply/reply/agent-runner-utils.secret-resolution.test.ts +++ b/src/auto-reply/reply/agent-runner-utils.secret-resolution.test.ts @@ -1,3 +1,4 @@ +// Tests queued reply runtime secret resolution for agent and channel scopes. import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../../config/config.js"; diff --git a/src/auto-reply/reply/agent-runner-utils.test.ts b/src/auto-reply/reply/agent-runner-utils.test.ts index 53eedd979d78..aa7e1f5d1b1f 100644 --- a/src/auto-reply/reply/agent-runner-utils.test.ts +++ b/src/auto-reply/reply/agent-runner-utils.test.ts @@ -1,3 +1,4 @@ +// Tests agent runner utility decisions for fallbacks, channels, and reasoning tags. import { beforeEach, describe, expect, it, vi } from "vitest"; import type { FollowupRun } from "./queue.js"; diff --git a/src/auto-reply/reply/commands-allowlist.test.ts b/src/auto-reply/reply/commands-allowlist.test.ts index 3146ae8b97e9..66bcf2902fba 100644 --- a/src/auto-reply/reply/commands-allowlist.test.ts +++ b/src/auto-reply/reply/commands-allowlist.test.ts @@ -1,3 +1,4 @@ +// Tests allowlist command edits across legacy and scoped channel configuration. import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; diff --git a/src/auto-reply/reply/commands-btw.test.ts b/src/auto-reply/reply/commands-btw.test.ts index 7dc1b5a41755..c31456223b0a 100644 --- a/src/auto-reply/reply/commands-btw.test.ts +++ b/src/auto-reply/reply/commands-btw.test.ts @@ -1,3 +1,4 @@ +// Tests background side-question command routing and typing controller integration. import { describe, expect, it, vi, beforeEach } from "vitest"; import type { OpenClawConfig } from "../../config/config.js"; import { diff --git a/src/auto-reply/reply/commands-export-session.test.ts b/src/auto-reply/reply/commands-export-session.test.ts index 33b6d0273098..96f9835b54ec 100644 --- a/src/auto-reply/reply/commands-export-session.test.ts +++ b/src/auto-reply/reply/commands-export-session.test.ts @@ -1,3 +1,4 @@ +// Tests session export command packaging, filesystem writes, and prompt bundle capture. import path from "node:path"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import type { HandleCommandsParams } from "./commands-types.js"; diff --git a/src/auto-reply/reply/commands-info.test.ts b/src/auto-reply/reply/commands-info.test.ts index 7a4b3460806e..9b7db1006c2a 100644 --- a/src/auto-reply/reply/commands-info.test.ts +++ b/src/auto-reply/reply/commands-info.test.ts @@ -1,3 +1,4 @@ +// Tests info-style commands that report context, status, skills, and trajectory exports. import { beforeEach, describe, expect, it, vi } from "vitest"; import { resolveSessionAgentId } from "../../agents/agent-scope.js"; import type { OpenClawConfig } from "../../config/config.js"; diff --git a/src/auto-reply/reply/commands-models.test.ts b/src/auto-reply/reply/commands-models.test.ts index c460385bc6ec..2ee12830af10 100644 --- a/src/auto-reply/reply/commands-models.test.ts +++ b/src/auto-reply/reply/commands-models.test.ts @@ -1,3 +1,4 @@ +// Tests model command output, catalog loading, and provider auth status rendering. import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { testing as cliBackendsTesting } from "../../agents/cli-backends.js"; import type { ChannelPlugin } from "../../channels/plugins/types.js"; diff --git a/src/auto-reply/reply/commands-slash-parse.test.ts b/src/auto-reply/reply/commands-slash-parse.test.ts index 1f8ba1cb3e8b..76ccc84398a8 100644 --- a/src/auto-reply/reply/commands-slash-parse.test.ts +++ b/src/auto-reply/reply/commands-slash-parse.test.ts @@ -1,5 +1,5 @@ +// Tests slash command parsing boundaries, defaults, and invalid-action handling. import { describe, expect, it } from "vitest"; - import { parseSlashCommandOrNull } from "./commands-slash-parse.js"; describe("parseSlashCommandOrNull", () => { @@ -15,7 +15,10 @@ describe("parseSlashCommandOrNull", () => { }); it("returns the default action on an empty body", () => { - const result = parseSlashCommandOrNull("/config", "/config", { ...opts, defaultAction: "show" }); + const result = parseSlashCommandOrNull("/config", "/config", { + ...opts, + defaultAction: "show", + }); expect(result).toEqual({ ok: true, action: "show", args: "" }); }); diff --git a/src/auto-reply/reply/commands-subagents-shared.test.ts b/src/auto-reply/reply/commands-subagents-shared.test.ts index 12205efdb317..d74b7cdb29b9 100644 --- a/src/auto-reply/reply/commands-subagents-shared.test.ts +++ b/src/auto-reply/reply/commands-subagents-shared.test.ts @@ -1,3 +1,4 @@ +// Tests shared subagent command text extraction and assistant marker cleanup. import { describe, expect, it } from "vitest"; import { extractMessageText } from "./commands-subagents-text.js"; diff --git a/src/auto-reply/reply/commands-tts.test.ts b/src/auto-reply/reply/commands-tts.test.ts index 79872b7eefbf..788e9a63a167 100644 --- a/src/auto-reply/reply/commands-tts.test.ts +++ b/src/auto-reply/reply/commands-tts.test.ts @@ -1,3 +1,4 @@ +// Tests text-to-speech command configuration, preference persistence, and summaries. import fs from "node:fs"; import os from "node:os"; import path from "node:path"; diff --git a/src/auto-reply/reply/directive-handling.model-picker.test.ts b/src/auto-reply/reply/directive-handling.model-picker.test.ts index 382bb7407ff9..4b1569087cff 100644 --- a/src/auto-reply/reply/directive-handling.model-picker.test.ts +++ b/src/auto-reply/reply/directive-handling.model-picker.test.ts @@ -1,3 +1,4 @@ +// Tests model picker item construction and provider endpoint labeling. import { describe, expect, it } from "vitest"; import { buildModelPickerItems, diff --git a/src/auto-reply/reply/dispatch-from-config.acp-abort.test.ts b/src/auto-reply/reply/dispatch-from-config.acp-abort.test.ts index ebe9e2d565ea..4bc68f9028df 100644 --- a/src/auto-reply/reply/dispatch-from-config.acp-abort.test.ts +++ b/src/auto-reply/reply/dispatch-from-config.acp-abort.test.ts @@ -1,3 +1,4 @@ +// Tests ACP dispatch abort behavior and emitted lifecycle hooks. import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../../config/config.js"; import type { diff --git a/src/auto-reply/reply/followup-runner.test.ts b/src/auto-reply/reply/followup-runner.test.ts index f733a1963f5d..03effa5995eb 100644 --- a/src/auto-reply/reply/followup-runner.test.ts +++ b/src/auto-reply/reply/followup-runner.test.ts @@ -1,3 +1,4 @@ +// Tests follow-up runner delivery, transcript persistence, and no-reply contracts. import fs from "node:fs/promises"; import { tmpdir } from "node:os"; import path from "node:path"; diff --git a/src/auto-reply/reply/get-reply-run-queue.test.ts b/src/auto-reply/reply/get-reply-run-queue.test.ts index 58c2481b0d87..20273d4fa9c4 100644 --- a/src/auto-reply/reply/get-reply-run-queue.test.ts +++ b/src/auto-reply/reply/get-reply-run-queue.test.ts @@ -1,3 +1,4 @@ +// Tests prepared reply queue state resolution before get-reply starts a run. import { describe, expect, it, vi } from "vitest"; import { resolvePreparedReplyQueueState } from "./get-reply-run-queue.js"; diff --git a/src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts b/src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts index feccb45104a1..e0ed1e44a15b 100644 --- a/src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts +++ b/src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts @@ -1,3 +1,4 @@ +// Tests reset hook fallback behavior inside the get-reply directive pipeline. import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { buildNativeResetContext, diff --git a/src/auto-reply/reply/groups.test.ts b/src/auto-reply/reply/groups.test.ts index 6fed97955e44..3ed6d26a07d0 100644 --- a/src/auto-reply/reply/groups.test.ts +++ b/src/auto-reply/reply/groups.test.ts @@ -1,3 +1,4 @@ +// Tests group prompt helpers and lazy runtime loading for group metadata. import { beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../../config/config.js"; import { resetPluginRuntimeStateForTest } from "../../plugins/runtime.js"; diff --git a/src/auto-reply/reply/origin-routing.test.ts b/src/auto-reply/reply/origin-routing.test.ts index d45186ad918c..1e0bb59711e6 100644 --- a/src/auto-reply/reply/origin-routing.test.ts +++ b/src/auto-reply/reply/origin-routing.test.ts @@ -1,3 +1,4 @@ +// Tests origin routing helpers that preserve message provider, account, and target ids. import { describe, expect, it } from "vitest"; import { resolveOriginAccountId, diff --git a/src/auto-reply/reply/pending-tool-task-drain.test.ts b/src/auto-reply/reply/pending-tool-task-drain.test.ts index 9e920922fc3a..b712c1e7a863 100644 --- a/src/auto-reply/reply/pending-tool-task-drain.test.ts +++ b/src/auto-reply/reply/pending-tool-task-drain.test.ts @@ -1,3 +1,4 @@ +// Tests pending tool task drain ordering, settlement, and failure handling. import { afterEach, describe, expect, it, vi } from "vitest"; import { drainPendingToolTasks } from "./pending-tool-task-drain.js"; diff --git a/src/auto-reply/reply/queue.dedupe.test.ts b/src/auto-reply/reply/queue.dedupe.test.ts index e95b2ed83b43..122d0e10138d 100644 --- a/src/auto-reply/reply/queue.dedupe.test.ts +++ b/src/auto-reply/reply/queue.dedupe.test.ts @@ -1,3 +1,4 @@ +// Tests follow-up queue message-id dedupe and drain scheduling behavior. import { importFreshModule } from "openclaw/plugin-sdk/test-fixtures"; import { beforeEach, describe, expect, it } from "vitest"; import type { FollowupRun, QueueSettings } from "./queue.js"; diff --git a/src/auto-reply/reply/reply-threading.test.ts b/src/auto-reply/reply/reply-threading.test.ts index f80baf5c84ea..b9acec0f4d16 100644 --- a/src/auto-reply/reply/reply-threading.test.ts +++ b/src/auto-reply/reply/reply-threading.test.ts @@ -1,3 +1,4 @@ +// Tests reply-to threading mode resolution across global and plugin config. import { afterEach, beforeEach, describe, expect, it } from "vitest"; import type { OpenClawConfig } from "../../config/config.js"; import { setActivePluginRegistry } from "../../plugins/runtime.js"; diff --git a/src/auto-reply/reply/session-delivery.test.ts b/src/auto-reply/reply/session-delivery.test.ts index 5e66ba85a975..ee57835692cf 100644 --- a/src/auto-reply/reply/session-delivery.test.ts +++ b/src/auto-reply/reply/session-delivery.test.ts @@ -1,3 +1,4 @@ +// Tests how session delivery preserves previous channel and target routing state. import { describe, expect, it } from "vitest"; import { resolveLastChannelRaw, resolveLastToRaw } from "./session-delivery.js"; diff --git a/src/auto-reply/reply/source-reply-delivery-mode.test.ts b/src/auto-reply/reply/source-reply-delivery-mode.test.ts index 6867a0fc892b..aa4f38dadf87 100644 --- a/src/auto-reply/reply/source-reply-delivery-mode.test.ts +++ b/src/auto-reply/reply/source-reply-delivery-mode.test.ts @@ -1,3 +1,4 @@ +// Tests source reply delivery visibility across message tool and visible reply modes. import { describe, expect, it } from "vitest"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; import type { CommandTurnContext } from "../command-turn-context.js"; diff --git a/src/auto-reply/reply/strip-inbound-meta.test.ts b/src/auto-reply/reply/strip-inbound-meta.test.ts index fde7f8d0f04b..cee4e5d72a73 100644 --- a/src/auto-reply/reply/strip-inbound-meta.test.ts +++ b/src/auto-reply/reply/strip-inbound-meta.test.ts @@ -1,3 +1,4 @@ +// Tests stripping untrusted inbound metadata while preserving user-visible content. import { describe, it, expect } from "vitest"; import type { TemplateContext } from "../templating.js"; import { buildInboundUserContextPrefix } from "./inbound-meta.js";