






















@@ -91,16 +91,22 @@ describe("plugin control-plane context", () => {
9191it("keeps the canonical context inspectable for cache diagnostics", () => {
9292const context = resolvePluginControlPlaneContext({
9393config: { plugins: { load: { paths: ["/opt/plugins"] } } },
94-env: { HOME: "/home/a", OPENCLAW_HOME: "/openclaw/a" } as NodeJS.ProcessEnv,
94+env: {
95+HOME: "/home/a",
96+OPENCLAW_HOME: "/openclaw/a",
97+OPENCLAW_DISABLE_BUNDLED_PLUGINS: "1",
98+} as NodeJS.ProcessEnv,
9599inventoryFingerprint: "inventory",
96100policyHash: "policy",
97101});
9810299-expect(context).toMatchObject({
103+expect(context).toStrictEqual({
100104discovery: {
101105loadPaths: ["/opt/plugins"],
102106roots: {
107+stock: "/tmp/openclaw-empty-bundled-plugins",
103108global: "/openclaw/a/.openclaw/extensions",
109+workspace: undefined,
104110},
105111},
106112inventoryFingerprint: "inventory",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。