




















@@ -1,5 +1,6 @@
1-import { beforeAll, describe, expect, it, vi } from "vitest";
1+import { describe, expect, it, vi } from "vitest";
22import type { OpenClawConfig } from "../config/config.js";
3+import { resolveTranscriptPolicy } from "./transcript-policy.js";
3445vi.mock("../plugins/provider-hook-runtime.js", () => ({
56resolveProviderRuntimePlugin: vi.fn(({ provider }: { provider?: string }) =>
@@ -14,7 +15,6 @@ vi.mock("../plugins/provider-hook-runtime.js", () => ({
1415),
1516}));
161717-let resolveTranscriptPolicy: typeof import("./transcript-policy.js").resolveTranscriptPolicy;
1818const MISTRAL_PLUGIN_CONFIG = {
1919plugins: {
2020entries: {
@@ -41,10 +41,6 @@ function createProviderRuntimeSmokeContext(): {
4141};
4242}
434344-beforeAll(async () => {
45-({ resolveTranscriptPolicy } = await import("./transcript-policy.js"));
46-});
47-4844describe("resolveTranscriptPolicy provider replay policy", () => {
4945it("uses images-only sanitization without tool-call id rewriting for OpenAI models", () => {
5046const policy = resolveTranscriptPolicy({
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。