I have a few more posts exploring this topic, but before proceeding further in my analysis / presentation, it is worthwhile to see the excellent write-up and analysis at Yediah. Here is a bit of historical background he provides, from an article from Dr. David Assaf.
However, as Prof. Assaf points out, the Ohr Hachaim himself on Breishit 6:3 decries the fact that Ruach Hakodesh no longer exists nowadays and is the major source of all the trouble that Jews suffer. Apparently the OH felt the same way as the teacher!See also, at the end of the post, the story about how Rabbi Menasheh Klein paskened in like manner about the Mishnah Brurah.
Professor Assaf found in a collection of writings by R. Shlomo Kluger (1785 – 1869), the Gadol of Galicia at the time, a letter by a certain Avraham Cohen of Sivan. The letter was dated 1865 and asked R. Shlomo to intervene in protecting him from being fired. Apparently a shochet responded to an attack by what he terms “Chassidei Am Ha’aretz” - unlearned Chassidim - on contemporary Geonim who claimed that they lacked mystical apprehension. He told them that earlier Gedolim who did have Ruach Hakodesh would never use it in Halachik matters, as the Torah is not in heaven and the only way to know it is through hard work. They then asked him if he held the same opinion about the Ohr Hachaim. He answered that the Ohr Hachaim probably had Ruach Hakodesh but would not use it when learning or writing his commentary on the Chumash. They then declared him an Apikores and persecuted him. This teacher came to his defense and was persecuted too. He argued that he could not hold back seeing how these people do not respect scholarship and instead follow a different Derech which includes sitting and drinking in each other’s company. The son of Rabbi Yisroel Friedman of , (-), R. Nachum Friedman of Stefanesti (Moldova) who lived in the area, saw to it that this teacher lose his position. He is therefore asking R. Shlomo Kluger to intercede on his behalf and rule whether they had the right to punish him for holding this opinion. There is no response from R. Shlomo Kluger that we know of.
Prof. Assaf feels that this is the same teacher that the Divrei Chaim so vigorously castigated in the above Teshuvah.