diff --git a/src/services/marketplace/MarketplaceManager.ts b/src/services/marketplace/MarketplaceManager.ts index 231793f61f..c192f60f71 100644 --- a/src/services/marketplace/MarketplaceManager.ts +++ b/src/services/marketplace/MarketplaceManager.ts @@ -12,6 +12,7 @@ import { GlobalFileNames } from "../../shared/globalFileNames" import { ensureSettingsDirectoryExists } from "../../utils/globalContext" import { t } from "../../i18n" import type { CustomModesManager } from "../../core/config/CustomModesManager" +import { getGlobalRooDirectory } from "../roo-config" import { RemoteConfigLoader } from "./RemoteConfigLoader" import { SimpleInstaller } from "./SimpleInstaller" @@ -345,7 +346,7 @@ export class MarketplaceManager { } // Check global commands - const globalCommandsDir = path.join(globalSettingsPath, "commands") + const globalCommandsDir = path.join(getGlobalRooDirectory(), "commands") try { const entries = await fs.readdir(globalCommandsDir, { withFileTypes: true }) for (const entry of entries) { diff --git a/webview-ui/src/components/marketplace/components/MarketplaceInstallModal.tsx b/webview-ui/src/components/marketplace/components/MarketplaceInstallModal.tsx index d7ef844f37..96237ed54f 100644 --- a/webview-ui/src/components/marketplace/components/MarketplaceInstallModal.tsx +++ b/webview-ui/src/components/marketplace/components/MarketplaceInstallModal.tsx @@ -246,7 +246,7 @@ export const MarketplaceInstallModal: React.FC = ( {item.type === "mcp" ? t("marketplace:install.whatNextMcp") : item.type === "command" - ? t("marketplace:install.whatNextCommand") + ? t("marketplace:install.whatNextCommand", { name: item.id }) : t("marketplace:install.whatNextMode")}