From a84f749310556d85c85ccd56f2bc7f3481d90ce4 Mon Sep 17 00:00:00 2001 From: Shreya Keshive Date: Fri, 15 Aug 2025 00:22:32 +0000 Subject: Show /ide enable & /ide disable commands based on connection status (#6248) Co-authored-by: matt korwel --- packages/cli/src/ui/commands/ideCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/cli/src/ui/commands/ideCommand.ts') diff --git a/packages/cli/src/ui/commands/ideCommand.ts b/packages/cli/src/ui/commands/ideCommand.ts index b7cbea3d..ffc9df40 100644 --- a/packages/cli/src/ui/commands/ideCommand.ts +++ b/packages/cli/src/ui/commands/ideCommand.ts @@ -237,8 +237,8 @@ export const ideCommand = (config: Config | null): SlashCommand | null => { }, }; - const ideModeEnabled = config.getIdeMode(); - if (ideModeEnabled) { + const connectionStatus = ideClient.getConnectionStatus().status; + if (connectionStatus === IDEConnectionStatus.Connected) { ideSlashCommand.subCommands = [ disableCommand, statusCommand, -- cgit v1.2.3