diff options
| author | Shreya Keshive <[email protected]> | 2025-08-18 16:42:45 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-18 16:42:45 +0000 |
| commit | 0215811c4c899c75e3c216a6c96b7e6cad67d2da (patch) | |
| tree | 7e511954f994a0e54328cbb203f53834dcba2f9b /packages/cli/src/ui/commands/ideCommand.ts | |
| parent | 065eb7897d89033cfd6602c911ad5b01af1a161e (diff) | |
Revert "Show /ide enable & /ide disable commands based on connection status" (#6486)
Diffstat (limited to 'packages/cli/src/ui/commands/ideCommand.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/ideCommand.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/ui/commands/ideCommand.ts b/packages/cli/src/ui/commands/ideCommand.ts index ffc9df40..b7cbea3d 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 connectionStatus = ideClient.getConnectionStatus().status; - if (connectionStatus === IDEConnectionStatus.Connected) { + const ideModeEnabled = config.getIdeMode(); + if (ideModeEnabled) { ideSlashCommand.subCommands = [ disableCommand, statusCommand, |
