diff --git a/extensions/anthropic/cli-shared.execution-env.test.ts b/extensions/anthropic/cli-shared.execution-env.test.ts index 46246009124b..e4acd399dc74 100644 --- a/extensions/anthropic/cli-shared.execution-env.test.ts +++ b/extensions/anthropic/cli-shared.execution-env.test.ts @@ -1,21 +1,7 @@ import { describe, expect, it } from "vitest"; -import { buildAnthropicCliBackend } from "./cli-backend.js"; import { resolveClaudeCliThinkingEnv } from "./cli-shared.js"; describe("Claude CLI execution environment", () => { - it("preserves the prepared launch environment for the same context budget", () => { - const backend = buildAnthropicCliBackend(); - - expect( - backend.prepareExecution?.({ - workspaceDir: "/tmp/openclaw-claude-cli", - provider: "claude-cli", - modelId: "claude-opus-4-8", - contextTokenBudget: 100_000, - }), - ).toEqual({ env: { CLAUDE_CODE_AUTO_COMPACT_WINDOW: "100000" } }); - }); - it.each([ ["high", { CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: "1", MAX_THINKING_TOKENS: "16384" }], ["off", { MAX_THINKING_TOKENS: "0" }], diff --git a/extensions/codex/src/app-server/client.test.ts b/extensions/codex/src/app-server/client.test.ts index cbd5c89a347e..855f04a09122 100644 --- a/extensions/codex/src/app-server/client.test.ts +++ b/extensions/codex/src/app-server/client.test.ts @@ -438,8 +438,6 @@ describe("CodexAppServerClient", () => { }); it.each([ - ["0.148.0-alpha.9", 0], - ["0.148.0-alpha.15", 0], ["0.148.0-alpha.23", 0], ["0.148.0", 0], ["1.0.0", 1], diff --git a/extensions/crabbox/src/crabbox-worker-provider.test.ts b/extensions/crabbox/src/crabbox-worker-provider.test.ts index 2a03f0cb03aa..3da9f640ae7c 100644 --- a/extensions/crabbox/src/crabbox-worker-provider.test.ts +++ b/extensions/crabbox/src/crabbox-worker-provider.test.ts @@ -531,10 +531,6 @@ describe("Crabbox worker provider", () => { "bind_xfdesktop_renderer", ); expect(desktopSetupText).not.toMatch(/pkill -(?:TERM|KILL) -x xfdesktop/u); - expect(desktopSetupText).not.toContain("def ellipse"); - expect(desktopSetupText).not.toContain("import struct"); - expect(desktopSetupText).not.toContain(".svg"); - expect(desktopSetupText).not.toContain("sshUser"); const setup = calls.find( (call) => call.argv[1] === "run" && String(call.options.input).includes("node run"), )?.options.input; diff --git a/extensions/discord/src/monitor/message-text.test.ts b/extensions/discord/src/monitor/message-text.test.ts index a3e5bb3bfaa4..0489ca098755 100644 --- a/extensions/discord/src/monitor/message-text.test.ts +++ b/extensions/discord/src/monitor/message-text.test.ts @@ -275,22 +275,6 @@ describe("resolveDiscordMessageText", () => { ).toBe("Breaking\nDetails"); }); - it("preserves ordered text from all embeds while skipping textless embeds", () => { - expect( - resolveDiscordMessageText( - asMessage({ - content: "", - embeds: [ - { image: { url: "https://cdn.discordapp.com/image.png" } }, - { title: "Breaking", description: "Details" }, - {}, - { description: "Follow-up" }, - ], - }), - ), - ).toBe("Breaking\nDetails\nFollow-up"); - }); - it("prefers message content over embed fallback text", () => { expect( resolveDiscordMessageText( diff --git a/extensions/discord/src/monitor/native-command.options.test.ts b/extensions/discord/src/monitor/native-command.options.test.ts index e76ae391eff0..ef837d1bcca8 100644 --- a/extensions/discord/src/monitor/native-command.options.test.ts +++ b/extensions/discord/src/monitor/native-command.options.test.ts @@ -711,10 +711,6 @@ describe("createDiscordNativeCommand option wiring", () => { ko: "현지화된 설명", "en-GB": "k".repeat(99), }); - expect(loggerDebugMock).toHaveBeenCalledExactlyOnceWith( - `discord: truncating native command description (command:localized locale:en-GB) from ${longDescription.length} to 100: ${JSON.stringify(longDescription)}`, - ); - expect(loggerWarnMock).not.toHaveBeenCalled(); expect(command.serialize()).toEqual({ name: "localized", description: "Default description", diff --git a/extensions/ollama/src/stream-runtime.test.ts b/extensions/ollama/src/stream-runtime.test.ts index 32101c26a944..e297b341604c 100644 --- a/extensions/ollama/src/stream-runtime.test.ts +++ b/extensions/ollama/src/stream-runtime.test.ts @@ -1136,15 +1136,6 @@ describe("buildAssistantMessage", () => { }); }); - it("rejects malformed stringified tool call arguments", () => { - const response = createToolCallResponse([ - { function: { name: "bash", arguments: '{"command":"ls"' } }, - ]); - expect(() => buildAssistantMessage(response, modelInfo)).toThrow( - "Provider completed tool call with malformed JSON arguments", - ); - }); - it("sets all costs to zero for local models", () => { const response = createAssistantResponse({ content: "ok" }); const result = buildAssistantMessage(response, modelInfo); diff --git a/extensions/perplexity/src/perplexity-web-search-provider.test.ts b/extensions/perplexity/src/perplexity-web-search-provider.test.ts index c85883334f18..5745e2486b0a 100644 --- a/extensions/perplexity/src/perplexity-web-search-provider.test.ts +++ b/extensions/perplexity/src/perplexity-web-search-provider.test.ts @@ -96,29 +96,7 @@ describe("perplexity web search provider", () => { it.each([ { name: "missing choices", response: {} }, - { name: "empty choices", response: { choices: [] } }, - { name: "missing message", response: { choices: [{}] } }, - { name: "missing content", response: { choices: [{ message: {} }] } }, - { name: "null content", response: { choices: [{ message: { content: null } }] } }, - { name: "empty content", response: { choices: [{ message: { content: "" } }] } }, { name: "whitespace content", response: { choices: [{ message: { content: " \n " } }] } }, - { - name: "citations without an answer", - response: { - choices: [{ message: { content: null } }], - citations: ["https://example.test/source"], - }, - }, - { - name: "tool calls without an answer", - response: { - choices: [{ finish_reason: "tool_calls", message: { content: null, tool_calls: [] } }], - }, - }, - { - name: "audio without an answer", - response: { choices: [{ message: { content: null, audio: { id: "audio-response" } } }] }, - }, ])("rejects and does not cache chat-completions $name", async ({ name, response }) => { withTrustedWebSearchEndpointMock.mockReset(); mockPerplexityResponseOnce(response); diff --git a/extensions/policy/src/cli.agent-owner.test.ts b/extensions/policy/src/cli.agent-owner.test.ts index 0e0eca59644d..22a7bfcc89cf 100644 --- a/extensions/policy/src/cli.agent-owner.test.ts +++ b/extensions/policy/src/cli.agent-owner.test.ts @@ -182,13 +182,6 @@ describe("policy CLI agent ownership", () => { container: "", hint: "openclaw --profile testprof agents list", }, - { - name: "watch with an active profile", - args: ["watch", "--agent", "ghost", "--once", "--json"], - profile: "testprof", - container: "", - hint: "openclaw --profile testprof agents list", - }, { name: "relative compare with an active container", args: ["compare", "--agent", "ghost", "--baseline", "baseline.policy.jsonc", "--json"],