File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crates/terminator-mcp-agent/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -280,15 +280,17 @@ async fn main() -> Result<()> {
280280 } ) ) ;
281281
282282 // Fix Windows encoding issues (IBM437 -> UTF-8)
283+ // NOTE: Using spawn() instead of output() to avoid blocking startup.
284+ // On some Azure VMs, chcp can take 6+ seconds which causes health check failures.
283285 #[ cfg( target_os = "windows" ) ]
284286 {
285287 use std:: os:: windows:: process:: CommandExt ;
286288 const CREATE_NO_WINDOW : u32 = 0x08000000 ;
287289 let _ = std:: process:: Command :: new ( "cmd" )
288290 . args ( [ "/c" , "chcp" , "65001" ] )
289291 . creation_flags ( CREATE_NO_WINDOW )
290- . output ( ) ;
291- eprintln ! ( "Set Windows console to UTF-8 mode" ) ;
292+ . spawn ( ) ; // Non-blocking - don't wait for completion
293+ eprintln ! ( "Set Windows console to UTF-8 mode (async) " ) ;
292294 }
293295
294296 // Initialize job object for automatic child process cleanup on exit
You can’t perform that action at this time.
0 commit comments