From 8d972bf6666d932a2d357cde60640cfd30b2700d Mon Sep 17 00:00:00 2001 From: Arthur King <137037208+ArthurKing0629@users.noreply.github.com> Date: Fri, 20 Nov 2026 03:08:01 +0800 Subject: [PATCH] fix(plugins): recognize legacy workflow MCP snapshots --- crates/plugins/src/official_mcp.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/crates/plugins/src/official_mcp.rs b/crates/plugins/src/official_mcp.rs index cc439cab8..47d0ae2b6 100644 --- a/crates/plugins/src/official_mcp.rs +++ b/crates/plugins/src/official_mcp.rs @@ -458,7 +458,7 @@ pub fn host_family_product(spec: &Value) -> Option<&'static str> { match (managed.get("product").and_then(Value::as_str), binary_id) { (Some("session"), _) => Some("session"), (Some("delegation"), _) => Some("delegation"), - (Some("workflow"), _) | (_, "dimo-workflow-mcp") => Some("workflow"), + (Some("workflow"), _) | (_, "dimo-workflow-mcp" | "vibex-workflow-mcp") => Some("workflow"), _ => None, } } @@ -1064,6 +1064,17 @@ mod tests { ); } + #[test] + fn workflow_snapshots_project_to_the_current_product_name() { + for binary_id in ["vibex-workflow-mcp", "dimo-workflow-mcp"] { + let spec = json!({ + "managedRuntime": { "kind": "hostFamilyBinary", "binaryId": binary_id } + }); + assert_eq!(host_family_product(&spec), Some("workflow")); + assert_eq!(official_product_mcp_name(&spec), Some(WORKFLOW_MCP_NAME)); + } + } + #[test] fn host_family_stdio_spec_is_plugin_lifetime_not_session_scoped() { let spec = host_family_stdio_spec(