diff --git a/extensions/codex/src/app-server/run-attempt.test.ts b/extensions/codex/src/app-server/run-attempt.test.ts index d25c5df1adc..aabf76b1727 100644 --- a/extensions/codex/src/app-server/run-attempt.test.ts +++ b/extensions/codex/src/app-server/run-attempt.test.ts @@ -6808,6 +6808,7 @@ describe("runCodexAppServerAttempt", () => { } as never; const run = runCodexAppServerAttempt(params); await harness.waitForMethod("turn/start"); + await new Promise((resolve) => setImmediate(resolve)); await harness.notify({ method: "item/agentMessage/delta", params: { diff --git a/scripts/openclaw-npm-postpublish-verify.ts b/scripts/openclaw-npm-postpublish-verify.ts index 8269837aae9..0ba24ed7e0f 100644 --- a/scripts/openclaw-npm-postpublish-verify.ts +++ b/scripts/openclaw-npm-postpublish-verify.ts @@ -71,6 +71,9 @@ const OPTIONAL_OR_EXTERNALIZED_RUNTIME_IMPORTS = new Set([ // lazy chunks from the plugin build even though dist/extensions/feishu is // externalized from the root package scan. "@larksuiteoapi/node-sdk", + // Discord remains an official external plugin. The root package can retain + // orphaned lazy chunks from the plugin build, but the plugin owns prism-media. + "prism-media", "@matrix-org/matrix-sdk-crypto-nodejs", "link-preview-js", "matrix-js-sdk", diff --git a/src/gateway/gateway-models.profiles.live.test.ts b/src/gateway/gateway-models.profiles.live.test.ts index 573558af9f2..77f7daee254 100644 --- a/src/gateway/gateway-models.profiles.live.test.ts +++ b/src/gateway/gateway-models.profiles.live.test.ts @@ -1478,11 +1478,10 @@ describe("sanitizeAuthProfileStoreForLiveGateway", () => { try { const sanitized = sanitizeAuthProfileStoreForLiveGateway(store); expect(sanitized.profiles.openaiProfile).toBeUndefined(); - expect(sanitized.profiles.codexProfile?.type).toBe("oauth"); - expect(sanitized.profiles.codexProfile?.provider).toBe("openai-codex"); - expect(sanitized.order).toEqual({ "openai-codex": ["codexProfile"] }); - expect(sanitized.lastGood).toEqual({ "openai-codex": "codexProfile" }); - expect(sanitized.usageStats).toEqual({ codexProfile: { lastUsed: 2 } }); + expect(sanitized.profiles.codexProfile).toBeUndefined(); + expect(sanitized.order).toBeUndefined(); + expect(sanitized.lastGood).toBeUndefined(); + expect(sanitized.usageStats).toBeUndefined(); } finally { if (previousOpenAiKey === undefined) { delete process.env.OPENAI_API_KEY; diff --git a/test/openclaw-npm-postpublish-verify.test.ts b/test/openclaw-npm-postpublish-verify.test.ts index 4092e6917ae..cbe355b5243 100644 --- a/test/openclaw-npm-postpublish-verify.test.ts +++ b/test/openclaw-npm-postpublish-verify.test.ts @@ -353,7 +353,12 @@ describe("collectInstalledRootDependencyManifestErrors", () => { ); writeFileSync( join(packageRoot, "dist", "externalized-plugin-runtime.js"), - 'import * as lark from "@larksuiteoapi/node-sdk";\nexport { lark };\n', + [ + 'import * as lark from "@larksuiteoapi/node-sdk";', + 'import prism from "prism-media";', + "export { lark, prism };", + "", + ].join("\n"), "utf8", ); mkdirSync(join(packageRoot, "dist", "plugin-sdk"), { recursive: true });