From 774c095d5b8c91efa7086525f16d543a549e6753 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Mon, 8 Dec 2025 10:27:25 -0700 Subject: [PATCH] fix: use correct global commands path and add missing i18n parameter - MarketplaceManager: Use getGlobalRooDirectory() instead of extension settings path for global commands detection, matching SimpleInstaller behavior - MarketplaceInstallModal: Pass name parameter to whatNextCommand translation --- src/services/marketplace/MarketplaceManager.ts | 3 ++- .../marketplace/components/MarketplaceInstallModal.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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")}