 (defn maybe-set-containers-filter!
   "Depending on the status and outcome of the build, set active
   container filter to failed."
-  [state comms]
+  [state comms build-changed?]
   (let [build (get-in state state/build-path)
         containers (get-in state state/containers-path)
         build-running? (not (build-model/finished? build))

    ;; set filter
    (when (and (not build-running?)
               (seq failed-containers)
               failed-filter-valid?)
      (put! controls-ch [:container-filter-changed {:new-filter :failed
                                                    :containers failed-containers}]))))


               (= project-name (vcs-url/project-name (get-in args [:resp :vcs_url]))))
      (fetch-visible-output current-state comms build-num (get-in args [:resp :vcs_url]))
      (frontend.favicon/set-color! (build-model/favicon-color (get-in current-state state/build-path)))
      (maybe-set-containers-filter! current-state comms build-changed?))))

(defmethod api-event [:cancel-build :success]
  [target message status {:keys [context resp]} state]
