                                                                    :clear-cache? true}])}
                   "& clear cache"])
 
-                (forms/managed-button
-                 [:button.ssh_build
-                  {:data-loading-text "Rebuilding",
-                   :title "Retry with SSH in VM",
-                   :on-click #(raise! owner [:ssh-build-clicked {:build-id build-id
-                                                                 :vcs-url vcs-url
-                                                                 :build-num build-num}])}
-                  "& enable ssh"])])
+                ;; XXX Temporarily remove the ssh button for OSX builds
+                (when (not (get-in project [:feature_flags :osx]))
+                  (forms/managed-button
+                   [:button.ssh_build
+                    {:data-loading-text "Rebuilding",
+                     :title "Retry with SSH in VM",
+                     :on-click #(raise! owner [:ssh-build-clicked {:build-id build-id
+                                                                   :vcs-url vcs-url
+                                                                   :build-num build-num}])}
+                    "& enable ssh"]))])
              [:div.actions
               (when logged-in? ;; no intercom for logged-out users
                 [:button.report_build

                                                       :stop (or (:start_time build) (:stop_time build))})
                   ")"])]])

            (when (has-scope :write-settings data)
              [:li {:class (when (= :ssh-info selected-tab) "active")}
               [:a {:on-click #(raise! owner [:build-header-tab-clicked {:tab :ssh-info}])}
                "SSH info"]])

            usage-queue-data (:usage-queue-data build-data)
            run-queued? (build-model/in-run-queue? build)
            usage-queued? (build-model/in-usage-queue? build)
            project (get-in data [:project-data :project])
            plan (get-in data [:project-data :plan])
            user (:user data)
            logged-in? (not (empty? user))
