diff --git a/src/plugins/manifest-registry.test.ts b/src/plugins/manifest-registry.test.ts index 1b7105287ef..2a544191656 100644 --- a/src/plugins/manifest-registry.test.ts +++ b/src/plugins/manifest-registry.test.ts @@ -503,6 +503,23 @@ describe("loadPluginManifestRegistry", () => { ); }); + it("accepts media-understanding-style id hints without warning", () => { + const dir = makeTempDir(); + writeManifest(dir, { id: "groq", configSchema: { type: "object" } }); + + const registry = loadRegistry([ + createPluginCandidate({ + idHint: "groq-media-understanding", + rootDir: dir, + origin: "bundled", + }), + ]); + + expect(registry.diagnostics.some((diag) => diag.message.includes("plugin id mismatch"))).toBe( + false, + ); + }); + it("still warns for unrelated id hint mismatches", () => { const dir = makeTempDir(); writeManifest(dir, { id: "openai", configSchema: { type: "object" } }); diff --git a/src/plugins/manifest-registry.ts b/src/plugins/manifest-registry.ts index d45ccf3e126..48729dc9aec 100644 --- a/src/plugins/manifest-registry.ts +++ b/src/plugins/manifest-registry.ts @@ -146,7 +146,8 @@ function isCompatiblePluginIdHint(idHint: string | undefined, manifestId: string return ( normalizedHint === `${manifestId}-provider` || normalizedHint === `${manifestId}-plugin` || - normalizedHint === `${manifestId}-sandbox` + normalizedHint === `${manifestId}-sandbox` || + normalizedHint === `${manifestId}-media-understanding` ); }