@@ -753,21 +753,14 @@ async function triggerThreadBlock() {
753753async function triggerCrash ( ) {
754754 const crashType = document . getElementById ( 'crashType' ) . value ;
755755 const delaySeconds = parseInt ( document . getElementById ( 'crashDelay' ) . value ) || 0 ;
756- const synchronous = document . getElementById ( 'crashSynchronous' ) . checked ;
757-
758- // Confirmation dialog
759- const modeText = synchronous
760- ? "SYNCHRONOUS (Azure Mode) - No response will be received"
761- : `ASYNC - Response sent, crash in ${ delaySeconds } s` ;
762756
757+ // Confirmation dialog - always synchronous for Azure Crash Monitoring
763758 const confirmed = confirm (
764759 `⚠️ WARNING: This will CRASH the application!\n\n` +
765760 `Crash Type: ${ crashType } \n` +
766- `Mode : ${ modeText } \n\n` +
761+ `Delay : ${ delaySeconds } seconds \n\n` +
767762 `The application will terminate and Azure will auto-restart it.\n` +
768- ( synchronous
769- ? `✓ Azure Crash Monitoring WILL capture this crash.\n`
770- : `⚠️ Azure Crash Monitoring may NOT capture this crash (async mode).\n` ) +
763+ `✓ Azure Crash Monitoring will capture this crash.\n` +
771764 `\nAre you sure you want to proceed?`
772765 ) ;
773766
@@ -777,19 +770,15 @@ async function triggerCrash() {
777770 }
778771
779772 try {
780- if ( synchronous ) {
781- logEvent ( 'danger' , `💥 SYNCHRONOUS CRASH: ${ crashType } - Connection will be lost!` ) ;
782- } else {
783- logEvent ( 'warning' , `💥 CRASH TRIGGERED: ${ crashType } in ${ delaySeconds } s...` ) ;
784- }
773+ logEvent ( 'danger' , `💥 CRASH: ${ crashType } ${ delaySeconds > 0 ? ` in ${ delaySeconds } s` : '' } - Connection will be lost!` ) ;
785774
786775 const response = await fetch ( `${ CONFIG . apiBaseUrl } /crash/trigger` , {
787776 method : 'POST' ,
788777 headers : { 'Content-Type' : 'application/json' } ,
789778 body : JSON . stringify ( {
790779 crashType : crashType ,
791- delaySeconds : synchronous ? 0 : delaySeconds ,
792- synchronous : synchronous ,
780+ delaySeconds : delaySeconds ,
781+ synchronous : true ,
793782 message : `Crash triggered from dashboard at ${ new Date ( ) . toISOString ( ) } `
794783 } )
795784 } ) ;
0 commit comments