From 30bafcd019fbd987ca947045b29e271bd275ae6f Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sun, 23 Nov 2025 21:53:18 -0800 Subject: [PATCH] hide "unload models" and "unload cache" menu entries on cloud (#6879) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hides these features which the user does not need when on cloud. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6879-hide-unload-models-and-unload-cache-menu-entries-on-cloud-2b46d73d3650816a8e22e913a848e4ac) by [Unito](https://www.unito.io) --- src/constants/coreMenuCommands.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/constants/coreMenuCommands.ts b/src/constants/coreMenuCommands.ts index 917dffcc5..6444b8309 100644 --- a/src/constants/coreMenuCommands.ts +++ b/src/constants/coreMenuCommands.ts @@ -1,3 +1,5 @@ +import { isCloud } from '@/platform/distribution/types' + export const CORE_MENU_COMMANDS = [ [[], ['Comfy.NewBlankWorkflow']], [[], []], // Separator after New @@ -18,8 +20,12 @@ export const CORE_MENU_COMMANDS = [ ['Edit'], [ 'Comfy.RefreshNodeDefinitions', - 'Comfy.Memory.UnloadModels', - 'Comfy.Memory.UnloadModelsAndExecutionCache' + ...(isCloud + ? [] + : [ + 'Comfy.Memory.UnloadModels', + 'Comfy.Memory.UnloadModelsAndExecutionCache' + ]) ] ], [['View'], []],