   function processRunLogsStackTraces() {
              processStackTracesForElement('runLogsPreview');
            }
          </script>
          <div x-data="{
            detailsOpen: false,
            ansiProcessed: false,
            toggleDetails() {
              this.detailsOpen = !this.detailsOpen;
              if (this.detailsOpen && !this.ansiProcessed) {
                this.$nextTick(() => {
                  processStackTraces();
                  this.ansiProcessed = true;
                